Brocade FastIron Ethernet Switch Layer 3 Routing Configuration Guide User Manual
Page 141
Syntax: show ip route [ ip-addr [ip-mask ] [longer ] [none-bgp ] ] {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: 10.157.22.0/24 for 10.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. Refer to the following example.
The none-bgp parameter displays only the routes that did not come from BGP4.
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.
The default routes are displayed first.
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, enter the following command.
device# show ip route direct
Start index: 1 B:BGP D:Connected R:RIP S:Static O:OSPF *:Candidate default
Destination NetMask Gateway Port Cost Type
10.157.22.0 255.255.255.0 0.0.0.0 4/11 1 D
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, enter the
following command.
device# show ip route static
Start index: 1 B:BGP D:Connected R:RIP S:Static O:OSPF *:Candidate default
Destination NetMask Gateway Port Cost Type
10.144.33.11 255.255.255.0
10.157.22.12 1/1 2 S
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.
device# show
ip route 10.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
52 10.159.38.0 255.255.255.0 10.95.6.101 1/1 1 S
53 10.159.39.0 255.255.255.0 10.95.6.101 1/1 1 S
54 10.159.40.0 255.255.255.0 10.95.6.101 1/1 1 S
55 10.159.41.0 255.255.255.0 10.95.6.101 1/1 1 S
56 10.159.42.0 255.255.255.0 10.95.6.101 1/1 1 S
57 10.159.43.0 255.255.255.0 10.95.6.101 1/1 1 S
58 10.159.44.0 255.255.255.0 10.95.6.101 1/1 1 S
59 10.159.45.0 255.255.255.0 10.95.6.101 1/1 1 S
60 10.159.46.0 255.255.255.0 10.95.6.101 1/1 1 S
IP Configuration
FastIron Ethernet Switch Layer 3 Routing Configuration Guide
141
53-1003087-04