365
15.2.3.2.2 show ip route
Command: show ip route [dest <destination>] [mask <destMask>] [nextHop
<nextHopValue>] [protocol {connected | static | rip| ospf | ospf_ase | bgp
| dvmrp}] [<vlan-id>] [preference <pref>] [count]
Function: Display the route table.
Parameter: <destination> is the destination network address; <destMask> is the mask
for destination network; <nextHopValue> stands for the IP address of next
hop; connected for direct route; static for static route; rip for RIP route; ospf
for OSPF route; ospf_ase for route introduced by OSPF; ospf_asebgp for
BGP route; bgpdvmrp for DVMRP route; <vlan-id> for VLAN identifier;
<pref> for router priority, ranging from 0 to 255; count displays the number of
IP route table entries.
Command mode: Admin Mode
Usage Guide: Display the content of core route table including: route type, destination
network, mask, next hop address, and interface, etc.
Example:
Switch#show ip route
Codes: C - connected, S - static, R - RIP derived, O - OSPF derived
A - OSPF ASE, B - BGP derived
Destination Mask Nexthop Interface Pref
C 2.2.2.0 255.255.255.0 0.0.0.0 vlan2 0
C 4.4.4.0 255.255.255.0 0.0.0.0 vlan4 0
S 6.6.6.0 255.255.255.0 9.9.9.9 vlan9 1
R 7.7.7.0 255.255.255.0 8.8.8.8 vlan8 120
Displayed information Explanation
C - connected Direct route, the segment directly connects
to the layer3 switch.
S – static Static route, route are manually configured
by the user
R - RIP derived RIP route, route are obtained through RIP
protocol in layer3 switch
O - OSPF derived OSPF route, route obtained through OSPF
protocol in layer3 switch
A- OSPF ASE Route introduced by OSPF
B- BGP derived BGP route, the route obtained through BGP
protocol.
Destination destination network