This is an example on setting up a static route via the CLI in our device.
*This example is not to be used for our cell unit. Please search for Static Route for Cell Units or click on the link below:
https://www.wti.com/blogs/knowledge-base/static-route-cell-example/
Issue a “/N”. (this will connect you to ETH0) EH0 will be your local network.
- Define the IP Address.
- Define the Subnet Mask
- Leave the gateway undefined.
- This will be defined under the “/n1” parameters
- Set fallback to “OFF”
- Define the static route
Below is an example:
- route add -net 10.209.18.0 netmask 255.255.254.0 gw 10.209.18.1
(below is the reference for dual Ethernet interface)
- route add -net 192.0.0.0 netmask 255.0.0.0 dev eth0
- route add -net 12.23.0.0 netmask 255.255.0.0 dev eth1
Where the bold portion represents the ip address/range you will be connecting from.
The italicized portion is the subnet from where you will connect from.
And the bold and italicized portion will be the gateway you are connecting from.
Issue a “N1”. (this will connect you to ETH1) ETH1 will be your external network.
- Define the IP address
- Define the Subnet Mask
- Define the gateway
- Only one gateway should be defined.