
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 1/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/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 1 S
53 10.159.39.0 255.255.255.0 10.95.6.101 1/1/1 1 S
54 10.159.40.0 255.255.255.0 10.95.6.101 1/1/1 1 S
55 10.159.41.0 255.255.255.0 10.95.6.101 1/1/1 1 S
56 10.159.42.0 255.255.255.0 10.95.6.101 1/1/1 1 S
57 10.159.43.0 255.255.255.0 10.95.6.101 1/1/1 1 S
58 10.159.44.0 255.255.255.0 10.95.6.101 1/1/1 1 S
59 10.159.45.0 255.255.255.0 10.95.6.101 1/1/1 1 S
60 10.159.46.0 255.255.255.0 10.95.6.101 1/1/1 1 S
This example shows all the routes for networks beginning with 10.159. The mask value and
longer
parameter specify the range of
network addresses to be displayed. In this example, all routes within the range 10.159.0.0 - 10.159.255.255 are listed.
The
summary
option displays a summary of the information in the IP route table. The following is an example of the output from this
command.
device# show ip route summary
IP Routing Table - 35 entries:
6 connected, 28 static, 0 RIP, 1 OSPF, 0 BGP, 0 ISIS, 0 MPLS
Number of prefixes:
/0: 1 /16: 27 /22: 1 /24: 5 /32: 1
Syntax: show ip route summary
In this example, the IP route table contains 35 entries. Of these entries, 6 are directly connected devices, 28 are static routes, and 1 route
was calculated through OSPF. One of the routes has a zero-bit mask (this is the default route), 27 have a 22-bit mask, 5 have a 24-bit
mask, and 1 has a 32-bit mask.
The following table lists the information displayed by the
show ip route
command.
TABLE 24
CLI display of IP route table
Field
Description
Destination
The destination network of the route.
NetMask
The network mask of the destination address.
Gateway
The next-hop router.
Port
The port through which this router sends packets to reach the route's
destination.
Displaying IP configuration information and statistics
FastIron Ethernet Switch Layer 3 Routing
53-1003627-04
133
Summary of Contents for FastIron SX 1600
Page 2: ...FastIron Ethernet Switch Layer 3 Routing 2 53 1003627 04 ...
Page 16: ...FastIron Ethernet Switch Layer 3 Routing 16 53 1003627 04 ...
Page 20: ...FastIron Ethernet Switch Layer 3 Routing 20 53 1003627 04 ...
Page 142: ...FastIron Ethernet Switch Layer 3 Routing 142 53 1003627 04 ...
Page 150: ...FastIron Ethernet Switch Layer 3 Routing 150 53 1003627 04 ...
Page 200: ...FastIron Ethernet Switch Layer 3 Routing 200 53 1003627 04 ...
Page 214: ...FastIron Ethernet Switch Layer 3 Routing 214 53 1003627 04 ...
Page 350: ...FastIron Ethernet Switch Layer 3 Routing 350 53 1003627 04 ...
Page 476: ...FastIron Ethernet Switch Layer 3 Routing 476 53 1003627 04 ...
Page 588: ...FastIron Ethernet Switch Layer 3 Routing 588 53 1003627 04 ...