CCNP官方教材强调是0,实际上无论使用出站接口配置或使用下一跳地址配置的由管理距离都为1.实验如下:
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 - 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
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, 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
亿恩科技地址(ADD):郑州市黄河路129号天一大厦608室 邮编(ZIP):450008 传真(FAX):0371-60123888
联系:亿恩小凡
QQ:89317007
电话:0371-63322206
本文出自:亿恩科技【www.enkj.com】
服务器租用/服务器托管中国五强!虚拟主机域名注册顶级提供商!15年品质保障!--亿恩科技[ENKJ.COM]
|