Cisco Cisco SG300-28 28-Port Gigabit Managed Switch Technical References

Page of 1117
IP Routing Protocol-Independent Commands
471
OL-32830-01 Command Line Interface Reference Guide
23
S>     10.10.0.0/16     1/128       10.120.254.244  00:02:22  vlan3
S>     10.16.2.0/24     1/128       10.119.254.244  00:02:22  vlan2
C>      10.119.0.0/16    0/1         0.0.0.0                                vlan2
C>      10.120.0.0/16    0/1         0.0.0.0                                vlan3
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           Last Time Outgoing
                                  Metric       IP Address        Updated   Interface
------  -------------------  -----------    ---------------       ------------- ------------
C>      10.159.0.0/16    0/1             0.0.0.0                              vlan2
C>      10.170.0.0/16    0/1             0.0.0.0                              vlan2
S>      10.175.0.0/16     1/1            10.119.254.240                vlan2
S>      10.180.0.0/16    1/1             10.119.254.240                vlan2
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