标签:connected efault shu let style .com blog eve use
1): 拓扑图:
2): 配置Piglet站点接口IP
Piglet(config)#interface ethernet 1/1 #备用接口
Piglet(config-if)#ip address 10.1.20.1 255.255.255.0
Piglet(config-if)#no shutdown
Piglet(config)#interface ethernet 1/2 #主用接口
Piglet(config-if)#ip address 10.1.10.1 255.255.255.0
Piglet(config-if)#no shutdown
3):配置到10.1.30.0 网段的静态路由
Piglet(config)#ip route 10.1.30.0 255.255.255.0 10.1.10.2
Piglet(config)#ip route 10.1.30.0 255.255.255.0 10.1.20.2 50
备用链路的下一跳 10.1.20.2,administrative distance = 50
4) 主用链路e1/1和备用链路e1/1都UP时,显示路由表
Piglet#show ip route
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
10.0.0.0/24 is subnetted, 4 subnets
C 10.1.10.0 is directly connected, Ethernet1/2
C 10.1.5.0 is directly connected, Ethernet1/0
S 10.1.30.0 [1/0] via 10.1.10.2 # 走主用链路
C 10.1.20.0 is directly connected, Ethernet1/1
4) 关闭主用接口,显示路由表
Piglet(config)#interface ethernet 1/2
Piglet(config-if)#shutdown
Piglet#show ip route
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
10.0.0.0/24 is subnetted, 3 subnets
C 10.1.5.0 is directly connected, Ethernet1/0
S 10.1.30.0 [50/0] via 10.1.20.2 # 走备用链路
C 10.1.20.0 is directly connected, Ethernet1/1
5) 重新打开主用接口,显示路由表
Piglet(config)#interface ethernet 1/2
Piglet(config-if)#no shutdown
Piglet#show ip route
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
10.0.0.0/24 is subnetted, 4 subnets
C 10.1.10.0 is directly connected, Ethernet1/2
C 10.1.5.0 is directly connected, Ethernet1/0
S 10.1.30.0 [1/0] via 10.1.10.2 # 走主用链路
C 10.1.20.0 is directly connected, Ethernet1/1
标签:connected efault shu let style .com blog eve use
原文地址:http://www.cnblogs.com/ybluo/p/6853713.html