Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To add a static route to a network, in other words to an IP address representing a range of IP addresses, use the following command:  ip route add 192.168.1.0/24 via 192.168.0.115
Where 192.168.1.0 is the IP address of the destination network in dotted-decimal notation and /24 is the network prefix. The network prefix is the number of enabled bits in the subnet mask.
Where 192.168.0.115 is the address of the gateway, usually this is a router connecting two networks. 

Restart the unit for the changes to take effect. Each time the system starts, the specified commands apply. The log will show the set up new routes or errors if it occurs.

...