Ip add 12.0.0.1 255.255.255.0 No sh Int lo0
Ip add 1.1.1.1 255.255.255.0 Router ospf 1
Net 12.0.0.0 0.0.0.255 a 0 Net 1.1.1.1 0.0.0.0 a 0 R2 En Conf t Int s0/0
Ip add 12.0.0.2 255.255.255.0 No sh
Int s0/1
Ip add 23.0.0.2 255.255.255.0 No sh Int lo0
Ip add 2.2.2.2 255.255.255.0 Router ospf 1
Net 12.0.0.0 0.0.0.255 a 0 Net 2.2.2.2 0.0.0.0 a 0 Net 23.0.0.0 0.0.0.255 a 1 R3
En
Conf t Int s0/1
Ip add 23.0.0.2 255.255.255.0 No sh Int s0/0
Ip add 34.0.0.3 255.255.255.0 No sh Int lo0
Ip add 3.3.3.3 255.255.255.0 Router ospf 1
Net 23.0.0.0 0.0.0.255 a 1 Net 34.0.0.0 0.0.0.255 a 0 Net 3.3.3.3 0.0.0.0 a 1 R4 En Conf t Int s0/0
Ip add 34.0.0.4 255.255.255.0 No sh Int lo0
Ip add 4.4.4.4 255.255.255.0 Router ospf 1
Net 34.0.0.0 0.0.0.255 a 0 Net 4.4.4.4 0.0.0.0 a 0
实验结果
R2#sh ip ospf vir
Virtual Link OSPF_VL0 to router 3.3.3.3 is up Run as demand circuit DoNotAge LSA allowed.
Transit area 1, via interface Serial0/1, Cost of using
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:01
Adjacency State FULL (Hello suppressed)
Index 2/3, retransmission queue length 0, number of retransmission 0 First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
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
R1#sh 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
34.0.0.0/24 is subnetted, 1 subnets
O 34.0.0.0 [110/192] via 12.0.0.2, 00:07:55, Serial0/0 1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0 2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/65] via 12.0.0.2, 00:07:55, Serial0/0 3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/129] via 12.0.0.2, 00:07:55, Serial0/0 4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/193] via 12.0.0.2, 00:07:55, Serial0/0 23.0.0.0/24 is subnetted, 1 subnets
O IA 23.0.0.0 [110/128] via 12.0.0.2, 00:07:57, Serial0/0 12.0.0.0/24 is subnetted, 1 subnets C 12.0.0.0 is directly connected, Serial0/0
R4#sh 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
34.0.0.0/24 is subnetted, 1 subnets
C 34.0.0.0 is directly connected, Serial0/0 1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/193] via 34.0.0.3, 00:10:22, Serial0/0 2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/129] via 34.0.0.3, 00:10:22, Serial0/0 3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/65] via 34.0.0.3, 00:10:22, Serial0/0 4.0.0.0/24 is subnetted, 1 subnets
C 4.4.4.0 is directly connected, Loopback0 23.0.0.0/24 is subnetted, 1 subnets
O IA 23.0.0.0 [110/128] via 34.0.0.3, 00:10:23, Serial0/0 12.0.0.0/24 is subnetted, 1 subnets
O 12.0.0.0 [110/192] via 34.0.0.3, 00:10:25, Serial0/0
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- sarr.cn 版权所有 赣ICP备2024042794号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务