Personal tools
You are here: Home Networking Linux Add a static route to a Netonix WS-6-MINI switch
 

Add a static route to a Netonix WS-6-MINI switch

The standard Netonix WS-6-MINI configuration does not support adding additional static routes via it's configuration interface. This workaround adds the static routes at boot time via a custom init.d script.

The Netonix switch appears to be running an older OpenWRT v8.09 distribution. This allows this change to be made and saved to the flash filesystem. Changes are likely to be lost during an upgrade.

Create a script file '/etc/init.d/networkstaticroute'. The IPv4 and/or IPv6 lines should be changed to meet the specific circumstances.

#!/bin/sh /etc/rc.common

START=41
STOP=41

boot() {
  ip route add 10.20.0.0/16 via 10.20.0.2
  ip route add fd0c:898b:471c::/48 via fd0c:898b:471c::2
}

start() {
  echo Nothing to start
}

stop() {
  echo Nothing to stop
}

Enable the script:

/etc/init.d/networkstaticroute enable

Links

 

Document Actions