Ip route show, Ip route remove – SANRAD I3.1.1205 User Manual
Page 228

11-14
SANRAD V-Switch CLI User Manual
ip route add
S
WITCH
P
ARAMETER
D
EFINITION
S
TATUS
E
XAMPLE
-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
ip route show
This command shows all IP routes on a V Switch.
ip route show
Dest
IP
Address
Dest Mask
Interface
Gateway
10.10.20.20
255.255.255.0
Eth2
30.30.20.20
10.12.40.40
255.255.255.0
Eth3
20.22.11.11
ip route remove
This command removes an IP route from a network port.
ip route remove