验证使用出站接口配置的静态路由管理距离

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

你可能感兴趣的:(职场,路由,休闲,ad,管理距离)