SANRAD V-Switch Switch User Manual


 
180 SANRAD V-Switch User Manual
IP Routing
Adding an IP route
If you are working in
a V-Switch cluster,
the IP route must be
added on both V-
Switches.
You can add an IP route to a network port.
ip route add
You need to define four parameters to add an IP route:
SWITCH PARAMETER DEFINITION STATUS EXAMPLE
-dip
DESTINATION IP IP OF HOST
STATION
MANDATORY
10.10.20.20
-dmask
DESTINATION
MASK
IP
MASK OF HOST
STATION
MANDATORY
255.255.255.0
-gw
GATEWAY IP
ADDRESS
IP
ADDRESS OF
THE GATEWAY
ROUTER
MANDATORY
30.30.20.20
-if
INTERFACE
ALIAS
NETWORK PORT TO
OPEN
COMMUNICATION
THROUGH
MANDATORY
eth2
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