CCNP官方教材強(qiáng)調(diào)是0,實(shí)際上無論使用出站接口配置或使用下一跳地址配置的由管理距離都為1.實(shí)驗(yàn)如下:
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
聯(lián)系:億恩小凡
QQ:89317007
電話:0371-63322206
本文出自:億恩科技【mszdt.com】
服務(wù)器租用/服務(wù)器托管中國五強(qiáng)!虛擬主機(jī)域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]
|