A SERVICE OF

logo

Chapter 11: Command Line Interface 207
SWITCH PARAMETER DEFINITION STATUS EXAMPLE
-ip
IP ADDRESS IP ADDRESS TO
REMOVE FROM THE
NETWORK
INTERFACE PORT
MANDATORY
212.199.43.70
Example
ip config remove –ip 212.199.43.70
ip route add
This command adds an IP route to a network port.
ip route add
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
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