Successfully pass the free certification exam at IW Academy and become an Infinet Certified Engineer.
The "route" command provides with manual management of system routing tables. In the normal mode, when a dynamic routing is active, this command is not needed. However, in some cases it allows to achieve more precise, non-standard configuration.
cmd: add, delete args: NET[/MASK] GATEWAY [-iface] [-nostatic]
add NET[/MASK] GATEWAY
Adds a route to a table.
Deletes a route from a table.
|[-iface]||Routing through the network interface. An IP-address of the interface through which routing is assigned becomes a gateway IP-address.|
All routes that are described using the "route add" command have absolute priority. No dynamic routing protocols including DHCP can replace the static route in the routing table. "nostatic" option deny that.
E.g. DHCP may place a new default route in the table, after it disappears a static route will be restored to the previous value.
Add the route to the table.
route add default 188.8.131.52 route add 184.108.40.206/27 220.127.116.11 route add 18.104.22.168:255.255.255.224 22.214.171.124.