Ferimex E-4000 User Manual - page 12
route del
# delete a static route
route del
# delete route(s) by number(s)
[-net]
default gw
- reload route is needed to apply the changes
add|del|show route is also accepted syntax
Route params:
add
add route to the routing table
del
delete the route from the table. Use theroutespec, or route number as
shown in the show route command (note, that numbers change after
deletion).
show
displays the configured routing table (will be efficent after reload)
displays the current routing table
flush
flushes the current routing table IMMEDIATELY. This could result in
disconnection, if you are connected via ssh and route is needed for the
connection.
reload
apply changes made to the routing table
-net
specifies that the target is a network
-host
specifies that the target is a host
IP address of the target
netmask of the target in a prefix notation
next hop router – gateway address
Example (listing current routing table):
manager$ route print
Kernel IP routing table
Destination
Gateway
Genmask
Flags Metric Ref
Use Iface
191.168.33.65
0.0.0.0
255.255.255.255
UH
0
0
0
eth0
191.168.33.69
0.0.0.0
255.255.255.255
UH
0
0
0
eth1
191.168.33.72
195.168.233.70
255.255.255.252
UG
0
0
0
eth1
191.168.33.64
0.0.0.0
255.255.255.252
U
0
0
0
eth0
191.168.33.68
0.0.0.0
255.255.255.252
U
0
0
0
eth1
127.0.0.0
0.0.0.0
255.0.0.0
U
0
0
0
lo
0.0.0.0
191.168.33.66
0.0.0.0
UG
0
0
0
eth0
Example (setting default gateway):
manager$ route add default gw 191.168.33.66
13
TRAFFIC MANAGER E-4000