Configuring IP
December 2000
15 - 41
Static Route States Follow Port States
IP static routes remain in the IP route table only so long as the next-hop gateway, port, or virtual interface used by
the route is available. If the gateway or port becomes unavailable, the software removes the static route from the
IP route table. If the gateway or port later becomes available again, the software adds the route back to the route
table.
This feature allows the Layer 3 Switch to adjust to changes in network topology. The Layer 3 Switch does not
continue trying to use routes on unavailable paths but instead uses routes only when their paths are available.
Figure 15.2 shows an example of a network containing a static route. The static route is configured on Router A,
as shown in the CLI example following the figure.
Figure 15.2
Example of a static route
The following command configures a static route to 207.95.7.0, using 207.95.6.157 as the next-hop gateway.
BigIron(config)# ip route 207.95.7.0/24 207.95.6.157
When you configure a static IP route, you specify the destination address for the route and the next-hop gateway
or Layer 3 Switch interface through which the Layer 3 Switch can reach the route. The Layer 3 Switch adds the
route to the IP route table. In this case, Router A knows that 207.95.6.157 is reachable through port 1/2, and also
assumes that local interfaces within that sub-net are on the same port. Router A deduces that IP interface
207.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, use either of the following methods.
USING THE CLI
To configure an IP static route with a destination address of 192.0.0.0 255.0.0.0 and a next-hop router IP address
of 195.1.1.1, enter the following commands:
BigIron(config)# ip route 192.0.0.0 255.0.0.0 195.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.
BigIron(config)# ip route 192.128.2.69 255.255.255.0 ethernet 4/1
The command in the example above configures a static IP route for destination network 192.128.2.69/24. Since
an Ethernet port is specified instead of a gateway IP address as the next hop, the Layer 3 Switch always forwards
traffic for the 192.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.
BigIron(config)# ip route 192.128.2.71 255.255.255.0 ve 3
The command in the following example configures an IP static route that uses POS port 2/2 as its next hop.
Router A
Router B
207.95.7.69/24
207.95.6.188/24
e 1/2
207.95.6.157/24
207.95.7.7/24
Summary of Contents for Switch and Router
Page 2: ...December 2000 Copyright 2000 by Foundry Networks Inc ...
Page 26: ...Foundry Switch and Router Installation and Configuration Guide xxvi December 2000 ...
Page 64: ...Foundry Switch and Router Installation and Configuration Guide 2 34 December 2000 ...
Page 162: ...Foundry Switch and Router Installation and Configuration Guide 5 38 December 2000 ...
Page 196: ...Foundry Switch and Router Installation and Configuration Guide 6 34 December 2000 ...
Page 208: ...Foundry Switch and Router Installation and Configuration Guide 7 12 December 2000 ...
Page 236: ...Foundry Switch and Router Installation and Configuration Guide 8 28 December 2000 ...
Page 258: ...Foundry Switch and Router Installation and Configuration Guide 9 22 December 2000 ...
Page 420: ...Foundry Switch and Router Installation and Configuration Guide 13 32 December 2000 ...
Page 442: ...Foundry Switch and Router Installation and Configuration Guide 14 22 December 2000 ...
Page 554: ...Foundry Switch and Router Installation and Configuration Guide 15 112 December 2000 ...
Page 574: ...Foundry Switch and Router Installation and Configuration Guide 16 20 December 2000 ...
Page 626: ...Foundry Switch and Router Installation and Configuration Guide 17 52 December 2000 ...
Page 682: ...Foundry Switch and Router Installation and Configuration Guide 18 56 December 2000 ...
Page 826: ...Foundry Switch and Router Installation and Configuration Guide 20 20 December 2000 ...
Page 994: ...Foundry Switch and Router Installation and Configuration Guide 26 10 December 2000 ...
Page 1004: ...Foundry Switch and Router Installation and Configuration Guide B 6 December 2000 ...
Page 1044: ...Foundry Switch and Router Installation and Configuration Guide C 40 December 2000 ...
Page 1048: ...Foundry Switch and Router Installation and Configuration Guide D 4 December 2000 ...
Page 1070: ...Foundry Switch and Router Installation and Configuration Guide Index 18 December 2000 ...