rge0 (2.5 Gbps) seems to work fine, I had iperf running over 1 Gbps
Ethernet for a few minutes (that's the only configuration I can easily
test right now):

$ iperf -c myrouter -P 5
[SUM]   0.00-10.01  sec   542 MBytes   455 Mbits/sec        sender
[SUM]   0.00-10.01  sec   540 MBytes   452 Mbits/sec        receiver

$ iperf -c myrouter -P 5 -R
Reverse mode, remote host is sending
[SUM]   0.00-10.01  sec  1.10 GBytes   940 Mbits/sec    0   sender
[SUM]   0.00-10.01  sec  1.09 GBytes   938 Mbits/sec        receiver

Will see long-term. Hopefully the throughput will increase some more
once the CPU gets unleashed.  :)

https://www.mail-archive.com/arm@openbsd.org/msg02874.html

dwqe0 (1 Gbps) is connected to a modem. Whenever that modem reboots and
the link goes down briefly, connectivity is lost (ping). Set up a
watchdog as a temporary fix:


#!/bin/ksh

# Define the target IP address and the network interface to reset
TARGET_IP="192.168.8.1"
INTERFACE="dwqe0"
PPPOE_INTERFACE="pppoe0"

# Function to check connectivity and reset network interfaces
# if ping fails
check_connectivity() {
  while true; do
    if ! ping -c 1 $TARGET_IP >/dev/null 2>&1; then
      logger "Ping to DSL modem ($TARGET_IP) failed. Resetting network 
interfaces..."
      ifconfig $INTERFACE down
      sleep 2
      ifconfig $INTERFACE up
      ifconfig $PPPOE_INTERFACE up
    fi
    sleep 10
  done
}

check_connectivity &


Calling that file from rc.local, I was surprised that it "daemonises"
reasonably well.

Reply via email to