SANRAD V-Switch manual Ip route add, Ip route show, 10.10.20.20 255.255.255.0 30.30.20.20

Models: V-Switch

1 300
Download 300 pages 15.92 Kb
Page 214
Image 214

SWITCH

PARAMETER

DEFINITION

STATUS

EXAMPLE

 

 

 

 

 

-ip

IP ADDRESS

IP ADDRESS TO

MANDATORY

212.199.43.70

 

 

REMOVE FROM THE

 

 

 

 

NETWORK

 

 

 

 

INTERFACE PORT

 

 

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

MANDATORY

 

 

STATION

 

-dmask

DESTINATION

IP MASK OF HOST

MANDATORY

 

MASK

STATION

 

-gw

GATEWAY IP

IP ADDRESS OF

MANDATORY

 

ADDRESS

THE GATEWAY

 

 

 

ROUTER

 

10.10.20.20

255.255.255.0

30.30.20.20

-if

INTERFACE

NETWORK PORT TO

MANDATORY

eth2

ALIAS

OPEN

 

 

 

COMMUNICATION

 

 

 

THROUGH

 

 

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

Dest Mask

Interface

Gateway

Address

 

 

 

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

Chapter 11: Command Line Interface

207

Page 214
Image 214
SANRAD V-Switch manual Ip route add, Ip route show, 10.10.20.20 255.255.255.0 30.30.20.20, Command Line Interface 207