1、1. area 0 区域要求有区域MD5认证,密码是net。2. area 3 作为NSSA区域,在R6上重发布还回口到到OSPF区域。3. area 3 只能看到默认路由。4. R1、R4作为DR,全网无BDR。5. R1、R2、R3之间点到多点子接口的模式。6. area 1 作为stub区域,只看到默认路由。7. R5-R6之间的链路使用MD5的链路认证。R1R1#show runBuilding configuration.Current configuration : 1300 bytes!version 12.4service timestamps debug datetime m
2、secservice timestamps log datetime msecno service password-encryption!hostname R1!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cefno ip domain lookup! ! !interface Loopback0 ip address 1.1.1.1 255.255.255.0! interface Tunnel1 ip address 51.1.1.1 255.255.255.0 shutdown!inte
3、rface Serial0/0 ip address 15.1.1.1 255.255.255.0 serial restart-delay 0!interface Serial0/1 ip address 123.1.1.1 255.255.255.0 encapsulation frame-relay ip ospf message-digest-key 1 md5 net ip ospf network point-to-multipoint serial restart-delay 0!interface Serial0/2 no ip address shutdown serial
4、restart-delay 0!interface Serial0/3 no ip address shutdown serial restart-delay 0!router ospf 110 router-id 91.1.1.1 log-adjacency-changes area 0 authentication message-digest area 2 virtual-link 95.5.5.5 network 1.1.1.0 0.0.0.255 area 0 network 15.1.1.0 0.0.0.255 area 2 network 51.1.1.0 0.0.0.255 a
5、rea 2 network 123.1.1.0 0.0.0.255 area 0 neighbor 93.3.3.3 neighbor 92.2.2.2!no ip http serverno ip http secure-server!control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4!endR2R2#SHOW RUNBuilding configuration.Current configuration : 1404 bytes!version 12.4service tim
6、estamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R2!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cefno ip domain lookup! ! !interface Loopback0 ip address 2.2.2.2 255.255.255.0! interface Ethernet0/0 no ip address shutd
7、own half-duplex!interface Ethernet0/1 ip address 24.1.1.2 255.255.255.0 half-duplex!interface Ethernet0/2 no ip address shutdown half-duplex!interface Ethernet0/3 no ip address shutdown half-duplex!interface Serial1/0 no ip address shutdown serial restart-delay 0!interface Serial1/1 no ip address sh
8、utdown serial restart-delay 0!interface Serial1/2 ip address 123.1.1.2 255.255.255.0 encapsulation frame-relay ip ospf message-digest-key 1 md5 net ip ospf network point-to-multipoint serial restart-delay 0!interface Serial1/3 no ip address shutdown serial restart-delay 0!router ospf 110 router-id 9
9、2.2.2.2 log-adjacency-changes area 0 authentication message-digest area 1 stub no-summary network 2.2.2.0 0.0.0.255 area 0 network 24.1.1.0 0.0.0.255 area 1 network 123.1.1.0 0.0.0.255 area 0!no ip http serverno ip http secure-server!control-plane! line con 0 exec-timeout 0 0 logging synchronousline
10、 aux 0line vty 0 4!endR3SHOW RUNBuilding configuration.Current configuration : 1404 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R3!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cefno ip
11、domain lookup! ! !interface Loopback0 ip address 3.3.3.3 255.255.255.0! interface Ethernet0/0 no ip address shutdown half-duplex!interface Ethernet0/1 ip address 34.1.1.3 255.255.255.0 half-duplex!interface Ethernet0/2 no ip address shutdown half-duplex!interface Ethernet0/3 no ip address shutdown h
12、alf-duplex!interface Serial1/0 no ip address shutdown serial restart-delay 0!interface Serial1/1 no ip address shutdown serial restart-delay 0!interface Serial1/2 no ip address shutdown serial restart-delay 0!interface Serial1/3 ip address 123.1.1.3 255.255.255.0 encapsulation frame-relay ip ospf me
13、ssage-digest-key 1 md5 net ip ospf network point-to-multipoint serial restart-delay 0!router ospf 110 router-id 93.3.3.3 log-adjacency-changes area 0 authentication message-digest area 1 stub no-summary network 3.3.3.0 0.0.0.255 area 0 network 34.1.1.0 0.0.0.255 area 1 network 123.1.1.0 0.0.0.255 ar
14、ea 0!no ip http serverno ip http secure-server!control-plane! line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4!EndR4R4#SHOW RUNBuilding configuration.Current configuration : 1262 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno servi
15、ce password-encryption!hostname R4!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cefno ip domain lookup! ! !interface Loopback0 ip address 4.4.4.4 255.255.255.0! interface Ethernet0/0 ip address 24.1.1.4 255.255.255.0 half-duplex!interface Ethernet0/1 ip address 34.1.1.4 25
16、5.255.255.0 half-duplex!interface Ethernet0/2 no ip address shutdown half-duplex!interface Ethernet0/3 no ip address shutdown half-duplex!interface Serial1/0 no ip address shutdown serial restart-delay 0! interface Serial1/1 no ip address shutdown serial restart-delay 0!interface Serial1/2 no ip add
17、ress shutdown serial restart-delay 0!interface Serial1/3 no ip address shutdown serial restart-delay 0!router ospf 110 router-id 94.4.4.4 log-adjacency-changes area 1 stub no-summary network 4.4.4.0 0.0.0.255 area 1 network 24.1.1.0 0.0.0.255 area 1 network 34.1.1.0 0.0.0.255 area 1! no ip http serv
18、erno ip http secure-server!control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4!EndR5R5#SHOW RUNBuilding configuration.Current configuration : 1428 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryptio
19、n!hostname R5!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cefno ip domain lookup! ! !interface Loopback0 ip address 5.5.5.5 255.255.255.0! interface Tunnel1 ip address 51.1.1.5 255.255.255.0!interface Ethernet0/0 ip address 56.1.1.5 255.255.255.0 ip ospf authentication me
20、ssage-digest ip ospf message-digest-key 1 md5 123 half-duplex!interface Ethernet0/1 no ip address shutdown half-duplex!interface Ethernet0/2 no ip address shutdown half-duplex!interface Ethernet0/3 no ip address shutdown half-duplex!interface Serial1/0 ip address 15.1.1.5 255.255.255.0 serial restar
21、t-delay 0!interface Serial1/1 no ip address shutdown serial restart-delay 0!interface Serial1/2 no ip address shutdown serial restart-delay 0!interface Serial1/3 no ip address shutdown serial restart-delay 0!router ospf 110 router-id 95.5.5.5 log-adjacency-changes area 0 authentication message-diges
22、t area 2 virtual-link 91.1.1.1 area 3 nssa no-summary network 15.1.1.0 0.0.0.255 area 2 network 56.1.1.0 0.0.0.255 area 3!no ip http serverno ip http secure-server!control-plane! !line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4!EndR6R6#SHOW RUNBuilding configuration.Current con
23、figuration : 1292 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R6!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cefno ip domain lookup! ! !interface Loopback0 ip address 6.6.6.6 255.255.2
24、55.0! interface Ethernet0/0 ip address 56.1.1.6 255.255.255.0 ip ospf authentication message-digest ip ospf message-digest-key 1 md5 123 half-duplex!interface Ethernet0/1 no ip address shutdown half-duplex!interface Ethernet0/2 no ip address shutdown half-duplex!interface Ethernet0/3 no ip address s
25、hutdown half-duplex!interface Serial1/0 no ip address shutdown serial restart-delay 0!interface Serial1/1 no ip address shutdown serial restart-delay 0!interface Serial1/2 no ip address shutdown serial restart-delay 0!interface Serial1/3 no ip address shutdown serial restart-delay 0!router ospf 110
26、router-id 96.6.6.6 log-adjacency-changes area 3 nssa no-summary redistribute connected subnets network 56.1.1.0 0.0.0.255 area 3!no ip http serverno ip http secure-server!control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4!End帧中继交换机R7(config)#do show runBuilding confi
27、guration.Current configuration : 1091 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R7!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cefno ip domain lookup!frame-relay switching! !interfac
28、e Serial0/0 no ip address shutdown serial restart-delay 0!interface Serial0/1 no ip address encapsulation frame-relay serial restart-delay 0 frame-relay intf-type dce frame-relay route 102 interface Serial0/2 201 frame-relay route 103 interface Serial0/3 301!interface Serial0/2 no ip address encapsu
29、lation frame-relay serial restart-delay 0 frame-relay intf-type dce frame-relay route 201 interface Serial0/1 102!interface Serial0/3 no ip address encapsulation frame-relay serial restart-delay 0 frame-relay intf-type dce frame-relay route 301 interface Serial0/1 103!no ip http serverno ip http secure-server!control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4!end