staticroute n enable subnet netmask gw ifname

Supports configuration of up to 8 user-defined static routes.

n = 1 to 8route number
enable = 0 or 1enable(1)/disable (0) the static route
subnet = xxx.xxx.xxx.xxxSpecifies the IP address of the static route subnet
netmask = 1-32Specifies the CIDR netmask value for the static route subnet
gw = xxx.xxx.xxx.xxxSpecifies the gateway IP address for the static route subnet
ifname=cell,wifi,eth0,eth1Specifies the interface name for the static route

cmd staticroute n enable subnet netmask gateway ifname

Notes:


Examples:

  1. Define a static route through wifi client interface for subnet 192.168.100.0 :
    cmd staticroute 1 1 192.168.100.0 24 192.168.6.1 wifi
  1. Define a static route to IP address 10.61.31.36/32 through cell interface. Note use of 0.0.0.0 for gateway value :
    cmd staticroute 2 1 10.61.31.36 32 0.0.0.0 cell

Firmware revision 2.0.5.3775

See also: Networking

Last modified 6 years ago Last modified on 14-02-05 09:20:52 AM