Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, m - OMP
n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
H - NHRP, G - NHRP registered, g - NHRP registration summary
o - ODR, P - periodic downloaded static route, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is 192.168.5.1 to network 0.0.0.0
常见代码:L - 本地,C - 直连,S - 静态,R - RIP,B - BGP, D - EIGRP, O - OSPF, i - IS-IS
缺省路由:到网络 0.0.0.0 最后的网关是 192.168.5.1
S* 0.0.0.0/0 [1/0] via 192.168.5.1
192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.3.0/24 is directly connected, Vlan3
L 192.168.3.1/32 is directly connected, Vlan3
192.168.4.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.4.0/30 is directly connected, Vlan4
L 192.168.4.1/32 is directly connected, Vlan4
192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.5.0/30 is directly connected, Port-channel1
L 192.168.5.2/32 is directly connected, Port-channel1
S* 0.0.0.0/0 [1/0] 通过 192.168.5.1
192.168.3.0/24 子网可变,2 个子网,2 个子网掩码
C 192.168.3.0/24 是直连网段,通过 Vlan3 转发到192.168.3.0/24
L 192.168.3.1/32 是直连网段(子网掩码32位,是该网段的网关,是一个具体的IP地址),通过 Vlan3 转发到192.168.3.1/32
192.168.4.0/24 是可变子网,2 个子网,2 个子网掩码
C 192.168.4.0/30 是直连网段,通过 Vlan4 转发到192.168.4.0/30
L 192.168.4.1/32 是直连网段(子网掩码32位,是该网段的网关,是一个具体的IP地址),通过 Vlan4 转发到192.168.4.1/32
192.168.5.0/24 是可变子网,2 个子网,2 个子网掩码
C 192.168.5.0/30 是直连网段,通过 汇聚端口1 转发到192.168.5.0/30
L 192.168.5.2/32 是直连网段(子网掩码32位,是该网段的网关,是一个具体的IP地址),通过 汇聚端口1 转发到192.168.5.2/32
9300#show ip route ?
Hostname or A.B.C.D Network to display information about or hostname
application Application routes
bgp Border Gateway Protocol (BGP)
connected Connected
dhcp Show routes added by DHCP Server or Relay
eigrp Enhanced Interior Gateway Routing Protocol (EIGRP)
isis ISO IS-IS
lisp Locator ID Separation Protocol (LISP)
list IP Access list
loops RIB routes forming loops
mobile Mobile routes
multicast Multicast global information
nat-route Network Address Translation (NAT) Route
next-hop-override Show next-hop-overrides too
nhrp Next Hop Resolution Protocol (NHRP)
odr On Demand stub Routes
omp Overlay Management Protocol
omp-tag Route OMP Tag
ospf Open Shortest Path First (OSPF)
ospfv3 OSPFv3
profile IP routing table profile
repair-paths Show repair paths too
rip Routing Information Protocol (RIP)
secondary Show secondary nexthops too
static Static routes
summary Summary of all routes
supernets-only Show supernet entries only
tag Route Tag
topology Display routes from a topology instance
track-table Tracked static table
vrf Display routes from a VPN Routing/Forwarding instance
| Output modifiers
<cr> <cr>