Adding An Ip Route; Setting A Default Gateway - SANRAD V-Switch User Manual

Sanrad v-switch user manual
Table of Contents

Advertisement

Adding an IP Route

You can enable communications to networks outside of your LAN by
configuring an IP routing path. This allows volume access to hosts located
on external networks. Use the CLI command ip route add to add an IP
routing path to your V-Switch. If you are working in a V-Switch cluster,
you must configure the IP route on both V-Switches in the V-Switch cluster.
For more information on V-Switch clusters, see "Introduction to V-Switch
Clusters," page 72.
ip route add
You need four parameters to configure an IP routing path.
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 set a default gateway for Eth1 for working with your local
gateway. 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 Eth1. To change the default gateway,
repeat the command with the new default gateway IP address.
ip route default
You need one parameter to configure a default IP routing path.
Chapter 4: V-Switch Configuration
S
P
WITCH
ARAMETER
-dip
DESTINATION
-dmask
DESTINATION
MASK
IP
-gw
GATEWAY
ADDRESS
-if
INTERFACE
ALIAS
S
P
WITCH
ARAMETER
-gw
GATEWAY
D
S
EFINITION
IP
IP
OF HOST
MANDATORY
NETWORK
IP
MASK OF HOST
MANDATORY
NETWORK
IP
ADDRESS OF
MANDATORY
THE GATEWAY
ROUTER
NETWORK PORT TO
MANDATORY
OPEN
COMMUNICATION
THROUGH
D
S
EFINITION
IP
ADDRESS OF
MANDATORY
DEFAULT GATEWAY
E
TATUS
XAMPLE
10.10.20.0
255.255.255.0
30.30.20.20
eth2
E
TATUS
XAMPLE
20.20.10.20
67

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the V-Switch and is the answer not in the manual?

Table of Contents