SANRAD I3.1.1205 Switch User Manual


 
10-14 SANRAD V-Switch CLI User Manual
Example:
An IP routing path to Network D, IP 10.10.20.20, (IP mask 255.255.255.0) is
mapped from network port Eth2 through router gateway 30.30.20.20.
ip route add –dip 10.10.20.20 –dmask 255.255.255.0 –gw
30.30.20.20 –if eth2
Removing an IP route
If you are working in
a V-Switch cluster,
the IP route must be
removed on both V-
Switches.
You can remove an IP route to a network.
ip route remove
You need to define four parameters to remove an IP routing path
SWITCH PARAMETER DEFINITION STATUS EXAMPLE
-dip
DESTINATION IP DESTINATION
NETWORK
IP
ADDRESS
MANDATORY
10.10.20.20
-dmask
DESTINATION
MASK
DESTINATION
NETWORK
IP MASK
MANDATORY
255.255.255.0
-gw
GATEWAY IP
ADDRESS
IP
ADDRESS OF THE
GATEWAY ROUTER
MANDATORY
30.30.20.20
-if
INTERFACE
ALIAS
I
NTERFACE ALIAS
ROUTING PATH
MAPS TO
MANDATORY
eth2
Example:
The IP route from network port Eth2 to external network 10.10.20.20, with IP
mask 255.255.255.0 is removed from Eth2.
ip route remove –dip 10.10.20.20 –dmask 255.255.255.0
–gw 30.30.20.20 –if eth2