Configuring a static ip route – Brocade Virtual ADX Switch and Router Guide (Supporting ADX v03.1.00) User Manual

Page 84

Advertising
background image

70

Brocade Virtual ADX Switch and Router Guide

53-1003246-01

Configuring IP parameters

4

When you configure a static IP route, you specify the destination address for the route and the
next-hop gateway or Virtual ADX interface through which the Layer 3 Switch can reach the route.
The Virtual ADX adds the route to the IP route table. In this case, Router A knows that 10.95.6.157
is reachable through port 1/2, and also assumes that local interfaces within that subnet are on the
same port. Router A deduces that IP interface 10.95.7.188 is also on port 1/2.

The software automatically removes a static IP route from the IP route table if the port used by that
route becomes unavailable. When the port becomes available again, the software automatically
re-adds the route to the IP route table.

Configuring a static IP route

To configure an IP static route with a destination address of 10.0.0.0 255.0.0.0 and a next-hop
router IP address of 10.1.1.1, enter the following commands.

Virtual ADX(config)# ip route 10.0.0.0 255.0.0.0 10.1.1.1

To configure a static IP route with an Ethernet port instead of a next-hop address, enter a command
such as the following.

Virtual ADX(config)# ip route 10.128.2.69 255.255.255.0 ethernet 4/1

The command in the example above configures a static IP route for destination network
10.128.2.69/24. Since an Ethernet port is specified instead of a gateway IP address as the next
hop, the Virtual ADX always forwards traffic for the 10.128.2.69/24 network to port 4/1. The
command in the following example configures an IP static route that uses virtual interface 3 as its
next hop.

Virtual ADX(config)# ip route 10.128.2.71 255.255.255.0 ve 3

Syntax: ip route dest-ip-addr dest-mask

next-hop-ip-addr |
ethernet portnum | ve num
[metric
] [distance num]

or

Syntax: ip route dest-ip-addr/mask-bits

next-hop-ip-addr |
ethernet portnum | ve num
[metric] [distance num]

The dest-ip-addr is the route’s destination. The dest-mask is the network mask for the route’s
destination IP address. Alternatively, you can specify the network mask information by entering a
forward slash followed by the number of bits in the network mask. For example, you can enter
10.0.0.0 255.255.255.0 as 10.0.0.0/.24.

The next-hop-ip-addr is the IP address of the next-hop router (gateway) for the route.

If you do not want to specify a next-hop IP address, you can instead specify a port or interface
number on the Virtual ADX. The num parameter is a virtual interface number. If you instead specify
an Ethernet port, the portnum is the port’s number. In this case, the Virtual ADX forwards packets
destined for the static route’s destination network to the specified interface. Conceptually, this
feature makes the destination network like a directly connected network, associated with a specific
Virtual ADX interface.

Advertising