Here is an example
sh ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
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
o - ODR
Gateway of last resort is not set
100.0.0.0/24 is subnetted, 1 subnets
C 100.100.100.0 is directly connected, POS7/0
101.0.0.0/24 is subnetted, 1 subnets
C 101.101.101.0 is directly connected, POS7/3
223.255.254.0/32 is subnetted, 1 subnets
S 223.255.254.254 is directly connected, Ethernet0
21.0.0.0/32 is subnetted, 4 subnets
C 21.21.21.4 is directly connected, Loopback3
C 21.21.21.1 is directly connected, Loopback0
C 21.21.21.3 is directly connected, Loopback2
C 21.21.21.2 is directly connected, Loopback1
20.0.0.0/32 is subnetted, 4 subnets
B 20.20.20.4 [20/0] via 100.100.100.1, 2d22h
B 20.20.20.1 [20/0] via 100.100.100.1, 2d22h
B 20.20.20.2 [20/0] via 100.100.100.1, 2d22h
B 20.20.20.3 [20/0] via 100.100.100.1, 2d22h
5.0.0.0/16 is subnetted, 2 subnets
C 5.19.0.0 is directly connected, Ethernet0
B 5.18.0.0 [20/0] via 110.110.110.2, 01:26:46
22.0.0.0/32 is subnetted, 4 subnets
B 22.22.22.4 [20/0] via 110.110.110.2, 01:26:46
B 22.22.22.2 [20/0] via 110.110.110.2, 01:26:46
B 22.22.22.3 [20/0] via 110.110.110.2, 01:26:46
B 22.22.22.1 [20/0] via 110.110.110.2, 01:26:47
110.0.0.0/24 is subnetted, 1 subnets
C 110.110.110.0 is directly connected, POS3/0
111.0.0.0/24 is subnetted, 1 subnets
C 111.111.111.0 is directly connected, POS3/1
最初由 胡说之 发布
Is it possible to check the code of a route in VRF's routing table?
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Thanks.