Foundry Networks Switch and Router Installation And Configuration Manual page 537

Switch and router
Table of Contents

Advertisement

Start index: 1
Destination
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
1.6.0.0
1.7.0.0
1.8.0.0
1.9.0.0
1.10.0.0
Syntax: show ip route [<ip-addr> [<ip-mask>] [longer]] | <num> | bgp | direct | ospf | rip | static]
The <ip-addr> parameter displays the route to the specified IP address.
The <ip-mask> parameter lets you specify a network mask or, if you prefer CIDR format, the number of bits in the
network mask. If you use CIDR format, enter a forward slash immediately after the IP address, then enter the
number of mask bits (for example: 209.157.22.0/24 for 209.157.22.0 255.255.255.0).
The longer parameter applies only when you specify an IP address and mask. This option displays only the
routes for the specified IP address and mask. See the example below.
The <num> option display the route table entry whose row number corresponds to the number you specify. For
example, if you want to display the tenth row in the table, enter "10".
The bgp option displays the BGP4 routes.
The direct option displays only the IP routes that are directly attached to the Layer 3 Switch.
The ospf option displays the OSPF routes.
The rip option displays the RIP routes.
The static option displays only the static IP routes.
Here is an example of how to use the direct option. To display only the IP routes that go to devices directly
attached to the Layer 3 Switch:
BigIron(config)# show ip route direct
Start index: 1
Destination
209.157.22.0
Notice that the route displayed in this example has "D" in the Type field, indicating the route is to a directly
connected device.
Here is an example of how to use the static option. To display only the static IP routes:
BigIron(config)# show ip route static
Start index: 1
Destination
192.144.33.11
Notice that the route displayed in this example has "S" in the Type field, indicating the route is static.
Here is an example of how to use the longer option. To display only the routes for a specified IP address and
mask, enter a command such as the following:
BigIron(config)# show ip route 209.159.0.0/16 longer
Starting index: 1 B:BGP D:Directly-Connected R:RIP S:Static O:OSPF
Destination NetMask Gateway Port Cost Type
December 2000
B:BGP D:Connected
R:RIP
NetMask
255.255.0.0
255.255.0.0
255.255.0.0
255.255.0.0
255.255.0.0
255.255.0.0
255.255.0.0
255.255.0.0
255.255.0.0
255.255.0.0
B:BGP D:Connected
R:RIP
NetMask
255.255.255.0
B:BGP D:Connected
R:RIP
NetMask
255.255.255.0
S:Static
O:OSPF *:Candidate default
Gateway
Port
99.1.1.2
1/1
99.1.1.2
1/1
99.1.1.2
1/1
99.1.1.2
1/1
99.1.1.2
1/1
99.1.1.2
1/1
99.1.1.2
1/1
99.1.1.2
1/1
99.1.1.2
1/1
99.1.1.2
1/1
S:Static
O:OSPF *:Candidate default
Gateway
0.0.0.0
S:Static
O:OSPF *:Candidate default
Gateway
209.157.22.12
Configuring IP
Cost
Type
2
R
2
R
2
R
2
R
2
R
2
R
2
R
2
R
2
R
2
S
Port
Cost
Type
4/11
1
D
Port
Cost
Type
1/1
2
S
15 - 95

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents