The official CCNP teaching material emphasizes 0. In fact, no matter the outbound interface configuration or the Management Distance configured with the next hop address is 1. The experiment is as follows:
R1 (config) # ip route 1.0.0.0 255.0.0.0 serial 0/0
R1 (config) # do sh ip rou 1.0.0.0
Routing entry for 2.22.0.0/16
Known via "static", distance 1, metric 0 (connected)
Routing Descriptor Blocks:
* 1.1.1.2
Route metric is 0, traffic share count is 1
Directly connected, via Serial0/0
Route metric is 0, traffic share count is 1
R2 (config) # ip route 2.0.0.0 255.0.0.0 serial 0/0
R2 (config) # ip route 2.0.0.0 255.0.0.0 1.1.1.2
R2 (config) # do sh ip rou
Codes: C-connected, S-static, R-RIP, M-mobile, B-BGP
D-OSPF, EX-VPN 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
I-IS, su-IS summary, L1-IS-level-1, L2-IS level-2
Ia-IS inter area, *-candidate default, U-per-user static route
O-ODR, P-periodic downloaded static route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Serial0/0
2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
S 2.0.0.0/8 [1/0] via 1.1.1.2
Is directly connected, Serial0/0
This article is from the "Xin-lu-li-cheng" blog