Setting a default gateway – SANRAD I3.1.1205 User Manual

Page 77

Advertising
background image

Chapter 4: V-Switch Configuration

4-25

S

WITCH

P

ARAMETER

D

EFINITION

S

TATUS

E

XAMPLE

-if

INTERFACE
ALIAS

NETWORK PORT TO
OPEN
COMMUNICATION
THROUGH

MANDATORY

eth2

Example:

An IP routing path to Network D, IP 10.10.20.0, (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.0 –dmask 255.255.255.0 –gw
30.30.20.20 –if eth2

Setting a Default Gateway

You can configure the default gateway for IP routes from two interfaces: 10/100
MBits Mgnt Interface or 1GBits ETH1 Interface. This gateway is used for any
IP address not specified in the V-Switch routing table. Use the CLI command
ip route default to

set the default gateway IP address for management

and Eth1. To change the default gateway, repeat the command with the new
default gateway IP address.

ip route default

You need two parameters to configure a default IP routing path.

S

WITCH

P

ARAMETER

D

EFINITION

S

TATUS

E

XAMPLE

-gw

GATEWAY

IP

ADDRESS OF

DEFAULT GATEWAY

MANDATORY

20.20.10.20

-if

INTERFACE
ALIAS

NETWORK PORT TO
OPEN
COMMUNICATION
THROUGH

OPTIONAL

MGNT OR ETH

1

DEFAULT

:

ETH

1

eth1

ip route default –gw 20.20.10.20

Advertising