23
471
S>
10.10.0.0/16
1/128
S>
10.16.2.0/24
1/128
C>
10.119.0.0/16 0/1
C>
10.120.0.0/16 0/1
Example 2. The following is sample output from the show ip route command when
IP Routing is enabled:
switchxxxxxx#
show ip route
Maximum Parallel Paths: 1 (1 after reset)
IP Forwarding: enabled
Codes: > - best, C - connected, S - static
Codes: > - best, C - connected, S - static
IP Routing Table - 4 entries
Code
IP Route
Distance/ Next Hop
Metric
------ ------------------- ----------- ---------------
C>
10.159.0.0/16 0/1
C>
10.170.0.0/16 0/1
S>
10.175.0.0/16
1/1
S>
10.180.0.0/16 1/1
Example 3. In the following example, the logical AND operation is performed on
the address 10.16.0.0 and the mask 255.255.0.0, resulting in 10.16.0.0. On each
destination in the routing table the logical AND operation is also performed with
the mask and the result is compared with 10.16.0.0. Any destinations that fall into
that range are displayed in the output:
switchxxxxxx#
show ip route 10.16.0.0 255.255.0.0 longer-prefix
Maximum Parallel Paths: 1 (1 after reset)
IP Forwarding: enabled
Codes: > - best, C - connected, S - static
IP Routing Table - 6 entries
10.120.254.244 00:02:22 vlan3
10.119.254.244 00:02:22 vlan2
0.0.0.0
vlan2
0.0.0.0
vlan3
Last Time Outgoing
IP Address
Updated Interface
------------- ------------
0.0.0.0
vlan2
0.0.0.0
vlan2
10.119.254.240
vlan2
10.119.254.240
vlan2
OL-32830-01 Command Line Interface Reference Guide
IP Routing Protocol-Independent Commands