实验指南:OSPF之-----多区域路由,验证
版权声明:原创作品,谢绝转载!否则将追究法律责任。 |
实验指南
![]() Configure an IP network, as depicted in Figure 12−14, by using OSPF as the routing protocol and 2002 as the Autonomous System ID.
Configure the Frame Relay network as a point−to−point network between dental_ho and the router fillings. Use a Frame Relay multipoint network between the dental_ho, crowns, and root_canals routers.
Configure all the OSPF areas as denoted in the diagram. Area 10 is to be configured as a NSSA area.Inject a default route into the dental_ho router pointing all Internet traffic toward the network 128.10.1.0/24. Propagate the default route within the OSPF domain. Configure Type 2 authentication in Area 200.The root_canals router has a T1 to the dental_ho router. Configure the network so that the pain_center router will use the T1 of root_canals over the crowns router's 64−kbps link when accessing any networks across the WAN. Dental_ho
conf t host Dental_ho int l 0 ip ad 1.1.1.1 255.255.255.255 int l 1 ip ad 128.10.1.5 255.255.255.0 int s2/0 encap f no arp f no frame inver no shut int s 2/0.1 multipoint ip ad 172.16.1.5 255.255.255.0 no arp f no frame inver frame map ip 172.16.1.6 102 b frame map ip 172.16.1.1 103 b ip ospf priority 255 bandwidth 64 int s 2/0.2 point-to-point ip ad 172.16.2.5 255.255.255.252 frame interface-dlci 104 exit ip route 0.0.0.0 0.0.0.0 128.10.1.0 match ip ad 1 router ospf 2002 router-id 1.1.1.1 nei 172.16.1.6 nei 172.16.1.1 net 128.10.1.5 0.0.0.0 a 0 net 172.16.1.5 0.0.0.0 a 0 net 172.16.2.5 0.0.0.0 a 10 area 10 nssa default-information-originate default-information originate always metric 100 metric-type 1 end Crowns conf t host Crowns int l 0 ip ad 2.2.2.2 255.255.255.255 int f 0/0 ip ad 172.16.10.6 255.255.255.240 ip ospf priority 0 /*不推荐这样配置,这里只是为了验证两个priority为0的路由器之间的邻居状态 ip ospf message-digest-key 1 md5 cisco no shut int s 2/0 ip ad 172.16.1.6 255.255.255.0 encap f no arp f no frame inver frame map ip 172.16.1.5 201 b frame map ip 172.16.1.1 201 b ip ospf priority 0 no shut exit router ospf 2002 router-id 2.2.2.2 nei 172.16.1.5 net 172.16.1.6 0.0.0.0 a 0 net 172.16.10.6 0.0.0.0 a 200 area 200 authentication message-digest end Root_canals conf t host Root_canals int l 0 ip ad 3.3.3.3 255.255.255.255 int f 0/0 ip ad 172.16.10.1 255.255.255.240 ip ospf priority 0 /*不推荐这样配置,这里只是为了验证两个priority为0的路由器之间的邻居状态 ip ospf message-digest-key 1 md5 cisco no shut int s2/0 ip ad 172.16.1.1 255.255.255.0 encap f no arp f no frame inver frame map ip 172.16.1.5 301 b frame map ip 172.16.1.6 301 b ip ospf priority 0 no shut exit router ospf 2002 router-id 3.3.3.3 nei 172.16.1.5 net 172.16.1.1 0.0.0.0 a 0 net 172.16.10.1 0.0.0.0 a 200 area 200 authentication message-digest end Fillings conf t host Fillings int l 0 ip ad 4.4.4.4 255.255.255.255 int l 1 ip ad 172.16.3.3 255.255.255.0 int s 2/0 encap f no arp f no shut int s 2/0.1 point-to-point ip ad 172.16.2.6 255.255.255.252 frame interface-dlci 401 exit router ospf 2002 router-id 4.4.4.4 net 172.16.2.6 0.0.0.0 a 10 net 172.16.3.3 0.0.0.0 a 10 area 10 nssa end Pain_center conf t host Pain_center int l 0 ip ad 5.5.5.5 255.255.255.255 int f 0/0 ip ad 172.16.10.8 255.255.255.240 ip ospf message-digest-key 1 md5 cisco no shut exit router ospf 2002 router-id 5.5.5.5 net 172.16.10.8 0.0.0.0 a 200 area 200 authentication message-digest end 校验
Dental_ho#sh ip ospf n Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 0 FULL/DROTHER 00:01:42 172.16.1.6 Serial2/0.1 3.3.3.3 0 FULL/DROTHER 00:01:31 172.16.1.1 Serial2/0.1 4.4.4.4 0 FULL/ - 00:00:34 172.16.2.6 Serial2/0.2 Dental_ho#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 128.10.1.0 to network 0.0.0.0
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0 172.16.0.0/16 is variably subnetted, 4 subnets, 4 masks O IA 172.16.10.0/28 [110/1563] via 172.16.1.6, 00:04:05, Serial2/0.1 [110/1563] via 172.16.1.1, 00:04:05, Serial2/0.1 C 172.16.2.4/30 is directly connected, Serial2/0.2 O 172.16.3.3/32 [110/65] via 172.16.2.6, 00:13:09, Serial2/0.2 C 172.16.1.0/24 is directly connected, Serial2/0.1 128.10.0.0/24 is subnetted, 1 subnets C 128.10.1.0 is directly connected, FastEthernet0/0 S* 0.0.0.0/0 [1/0] via 128.10.1.0 Crowns#sh ip ospf n Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 255 FULL/DR 00:01:30 172.16.1.5 Serial2/0 3.3.3.3 0 2WAY/DROTHER 00:00:36 172.16.10.1 FastEthernet0/0 5.5.5.5 1 FULL/DR 00:00:33 172.16.10.8 FastEthernet0/0 Crowns#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 172.16.1.5 to network 0.0.0.0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0 172.16.0.0/16 is variably subnetted, 4 subnets, 4 masks C 172.16.10.0/28 is directly connected, FastEthernet0/0 O IA 172.16.2.4/30 [110/1626] via 172.16.1.5, 00:04:15, Serial2/0 O IA 172.16.3.3/32 [110/1627] via 172.16.1.5, 00:04:15, Serial2/0 C 172.16.1.0/24 is directly connected, Serial2/0 O*E1 0.0.0.0/0 [110/1662] via 172.16.1.5, 00:04:05, Serial2/0 Root_canals#sh ip ospf n Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 255 FULL/DR 00:01:50 172.16.1.5 Serial2/0 2.2.2.2 0 2WAY/DROTHER 00:00:31 172.16.10.6 FastEthernet0/0 5.5.5.5 1 FULL/DR 00:00:32 172.16.10.8 FastEthernet0/0 Root_canals#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 172.16.1.5 to network 0.0.0.0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0 172.16.0.0/16 is variably subnetted, 4 subnets, 4 masks C 172.16.10.0/28 is directly connected, FastEthernet0/0 O IA 172.16.2.4/30 [110/128] via 172.16.1.5, 00:04:17, Serial2/0 O IA 172.16.3.3/32 [110/129] via 172.16.1.5, 00:04:17, Serial2/0 C 172.16.1.0/24 is directly connected, Serial2/0 O*E1 0.0.0.0/0 [110/164] via 172.16.1.5, 00:04:17, Serial2/0 Fillings#sh ip ospf n Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 0 FULL/ - 00:00:33 172.16.2.5 Serial2/0.1 Fillings#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 172.16.2.5 to network 0.0.0.0
4.0.0.0/32 is subnetted, 1 subnets
C 4.4.4.4 is directly connected, Loopback0 172.16.0.0/16 is variably subnetted, 4 subnets, 3 masks O IA 172.16.10.0/28 [110/1627] via 172.16.2.5, 00:07:55, Serial2/0.1 C 172.16.2.4/30 is directly connected, Serial2/0.1 O IA 172.16.1.0/24 [110/1626] via 172.16.2.5, 00:07:55, Serial2/0.1 C 172.16.3.0/24 is directly connected, Loopback1 O*N1 0.0.0.0/0 [110/164] via 172.16.2.5, 00:13:29, Serial2/0.1 Pain_center#sh ip ospf n Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 0 FULL/DROTHER 00:00:39 172.16.10.6 FastEthernet0/0 3.3.3.3 0 FULL/DROTHER 00:00:33 172.16.10.1 FastEthernet0/0 Pain_center#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 172.16.10.1 to network 0.0.0.0
5.0.0.0/32 is subnetted, 1 subnets C 5.5.5.5 is directly connected, Loopback0 172.16.0.0/16 is variably subnetted, 4 subnets, 4 masks C 172.16.10.0/28 is directly connected, FastEthernet0/0 O IA 172.16.2.4/30 [110/129] via 172.16.10.1, 00:04:27, FastEthernet0/0 O IA 172.16.3.3/32 [110/130] via 172.16.10.1, 00:04:27, FastEthernet0/0 O IA 172.16.1.0/24 [110/65] via 172.16.10.1, 00:04:27, FastEthernet0/0 O*E1 0.0.0.0/0 [110/165] via 172.16.10.1, 00:04:22, FastEthernet0/0 本文出自 “穿过地狱去看海” 博客,谢绝转载! 本文出自 51CTO.COM技术博客 |




cj231210
博客统计信息
热门文章
最新评论
友情链接

