1.根据区域划分IP地址
2.使公网可通---写缺省
3.使R3成为MGRE中心站点,R5、R6、R7为分支站点
4.一个个去配置ospf区域和RIP区域,确保每个区域配置无误
5.区域0要更改OSPF在接口的工作类型为broadcast ,并使R3为DR没有BDR
6.区域1及RIP正常宣告,区域2也是正常宣告,但要把RIP的路由重发布到OSPF
7.区域3-4正常宣告,在R9启用双OSPF进程一个宣告区域3,另一个宣告区域4,并把区域4的路由重发布到区域1、2、3
8.各区域进行路由汇总,区域1 完全末梢,区域2 完全NSSA,区域3 完全NSSA,以减少LSA更新量
9.统一更改OSPF更新时间及做区域或接口认证,以加快收敛,和保障更新安全
10.注意在特殊区域下发缺省:在R9上配置缺省。
11.及写空口防环及nat---IP地址转换
[r3]int g0/0/1
[r3-GigabitEthernet0/0/1]ip add 34.1.1.1 24
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip add 34.1.1.2 24
[r4-GigabitEthernet0/0/0]int g0/0/1
[r4-GigabitEthernet0/0/1]ip add 45.1.1.2 24
[r4-GigabitEthernet0/0/1]int g0/0/2
[r4-GigabitEthernet0/0/2]ip add 46.1.1.2 24
[r4-GigabitEthernet0/0/2]int g4/0/0
[r4-GigabitEthernet4/0/0]ip add 47.1.1.2 24
[r4]int l0
[r4-LoopBack0]ip add 4.4.4.4 24
[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]ip add 45.1.1.1 24
[r5-GigabitEthernet0/0/0]int l0
[r5-LoopBack0]ip add 172.16.1.1 24
[r6]int g0/0/0
[r6-GigabitEthernet0/0/0]ip add 46.1.1.1 24
[r6-GigabitEthernet0/0/0]int l0
[r6-LoopBack0]ip add 172.16.2.1 24
[r7]int g0/0/0
[r7-GigabitEthernet0/0/0]ip add 47.1.1.1 24
[r7-GigabitEthernet0/0/0]int l0
[r7-LoopBack0]ip add 172.16.3.1 24
[r3]ip route-static 0.0.0.0 0 34.1.1.2
[r5]ip route-static 0.0.0.0 0 45.1.1.2
[r6]ip route-static 0.0.0.0 0 46.1.1.2
[r7]ip route-static 0.0.0.0 0 47.1.1.2
[r3]int t0/0/0
[r3-Tunnel0/0/0]ip add 172.16.0.1 29
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]source 34.1.1.1
[r3-Tunnel0/0/0]nhrp entry multicast dynamic
[r3-Tunnel0/0/0]nhrp network-id 100
[r5]int t0/0/0
[r5-Tunnel0/0/0]ip add 172.16.0.2 29
[r5-Tunnel0/0/0]tunnel-protocol gre p2mp
[r5-Tunnel0/0/0]source g0/0/0
[r5-Tunnel0/0/0]nhrp entry 172.16.0.1 34.1.1.1 register
[r5-Tunnel0/0/0]nhrp network-id 100
[r6]int t0/0/0
[r6-Tunnel0/0/0]ip add 172.16.0.3 29
[r6-Tunnel0/0/0]tunnel-protocol gre p2mp
[r6-Tunnel0/0/0]source g0/0/0
[r6-Tunnel0/0/0]nhrp entry 172.16.0.1 34.1.1.1 register
[r6-Tunnel0/0/0]nhrp network-id 100
[r7]int t0/0/0
[r7-Tunnel0/0/0]ip add 172.16.0.4 29
[r7-Tunnel0/0/0]tunnel-protocol gre p2mp
[r7-Tunnel0/0/0]source g0/0/0
[r7-Tunnel0/0/0]nhrp entry 172.16.0.1 34.1.1.1 register
[r7-Tunnel0/0/0]nhrp network-id 100
[r5-Tunnel0/0/0]int l0
[r5-LoopBack0]ip add 172.16.1.1 24
[r6-Tunnel0/0/0]int l0
[r6-LoopBack0]ip add 172.16.2.1 24
[r7-Tunnel0/0/0]int l0
[r7-LoopBack0]ip add 172.16.3.1 24
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]network 172.16.0.1 0.0.0.0
[r5]ospf 1 router-id 5.5.5.5
[r5-ospf-1]area 0
[r5-ospf-1-area-0.0.0.0]network 172.16.1.1 0.0.0.0
[r5-ospf-1-area-0.0.0.0]network 172.16.0.2 0.0.0.0
[r6]ospf 1 router-id 6.6.6.6
[r6-ospf-1]area 0
[r6-ospf-1-area-0.0.0.0]network 172.16.2.1 0.0.0.0
[r6-ospf-1-area-0.0.0.0]network 172.16.0.3 0.0.0.0
[r7]ospf 1 router-id 7.7.7.7
[r7-ospf-1]area 0
[r7-ospf-1-area-0.0.0.0]network 172.16.3.1 0.0.0.0
[r7-ospf-1-area-0.0.0.0]network 172.16.0.4 0.0.0.0
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 172.16.32.1 29
[r1-GigabitEthernet0/0/0]int l0
[r1-LoopBack0]ip add 172.16.33.1 24
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0] ip add 172.16.32.2 29
[r2-GigabitEthernet0/0/0]int l0
[r2-LoopBack0]ip add 172.16.34.1 24
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 172.16.32.3 29
[r3-GigabitEthernet0/0/0]int l0
[r3-LoopBack0]ip add 172.16.35.1 24
[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1]a 1
[r1-ospf-1-area-0.0.0.1]network 172.16.33.1 0.0.0.0
[r1-ospf-1-area-0.0.0.1]network 172.16.32.1 0.0.0.0
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]area 1
[r2-ospf-1-area-0.0.0.1]network 172.16.34.1 0.0.0.0
[r2-ospf-1-area-0.0.0.1]network 172.16.32.2 0.0.0.0
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]area 1
[r3-ospf-1-area-0.0.0.1]network 172.16.32.3 0.0.0.0
[r3-ospf-1-area-0.0.0.1]network 172.16.35.1 0.0.0.0
[r6]int g0/0/1
[r6-GigabitEthernet0/0/1]ip add 172.16.64.1 30
[r11]int g0/0/0
[r11-GigabitEthernet0/0/0]ip add 172.16.64.2 30
[r11-GigabitEthernet0/0/0]int g0/0/1
[r11-GigabitEthernet0/0/1]ip add 172.16.64.5 30
[r11-GigabitEthernet0/0/1]int l0
[r11-LoopBack0]ip add 172.16.65.1 24
[r12]int g0/0/0
[r12-GigabitEthernet0/0/0]ip add 172.16.64.6 30
[r6]ospf 1
[r6-ospf-1]area 2
[r6-ospf-1-area-0.0.0.2]network 172.16.64.1 0.0.0.0
[r11]ospf 1 router-id 11.11.11.11
[r11-ospf-1]area 2
[r11-ospf-1-area-0.0.0.2]network 172.16.65.1 0.0.0.0
[r11-ospf-1-area-0.0.0.2]network 172.16.64.5 0.0.0.0
[r11-ospf-1-area-0.0.0.2]network 172.16.64.2 0.0.0.0
[r12]ospf 1 router-id 12.12.12.12
[r12-ospf-1]area 2
[r12-ospf-1-area-0.0.0.2]network 172.16.64.6 0.0.0.0
[r7]int g0/0/1
[r7-GigabitEthernet0/0/1]ip add 172.16.96.1 30
[r8]int g0/0/0
[r8-GigabitEthernet0/0/0]ip add 172.16.96.2 30
[r8-GigabitEthernet0/0/0]int g0/0/1
[r8-GigabitEthernet0/0/1]ip add 172.16.96.5 30
[r8-GigabitEthernet0/0/1]int l0
[r8-LoopBack0]ip add 172.16.97.1 24
[r9]int g0/0/0
[r9-GigabitEthernet0/0/0]ip add 172.16.96.6 30
[r7]ospf 1
[r7-ospf-1]area 3
[r7-ospf-1-area-0.0.0.3]network 172.16.96.1 0.0.0.0
[r8]ospf 1 router-id 8.8.8.8
[r8-ospf-1]area 3
[r8-ospf-1-area-0.0.0.3]network 172.16.97.1 0.0.0.0
[r8-ospf-1-area-0.0.0.3]network 172.16.96.5 0.0.0.0
[r8-ospf-1-area-0.0.0.3]network 172.16.96.2 0.0.0.0
[r9]ospf 1 router-id 9.9.9.9
[r9-ospf-1]area 3
[r9-ospf-1-area-0.0.0.3]network 172.16.96.6 0.0.0.0
[r9-GigabitEthernet0/0/0]int l0
[r9-LoopBack0]ip add 172.16.129.1 24
[r9-GigabitEthernet0/0/0]int g0/0/1
[r9-GigabitEthernet0/0/1]ip add 172.16.128.1 30
[r10]int g0/0/0
[r10-GigabitEthernet0/0/0]ip add 172.16.128.2 30
[r10-GigabitEthernet0/0/0]int l0
[r10-LoopBack0]ip add 172.16.130.1 24
[r9]ospf 2
[r9-ospf-2]area 4
[r9-ospf-2-area-0.0.0.4]network 172.16.129.1 0.0.0.0
[r9-ospf-2-area-0.0.0.4]network 172.16.128.1 0.0.0.0
[10]ospf 1 router-id 10.10.10.10
[10-ospf-1]area 4
[10-ospf-1-area-0.0.0.4]network 172.16.130.1 0.0.0.0
[10-ospf-1-area-0.0.0.4]network 172.16.128.2 0.0.0.0
[12]int l0
[12-LoopBack0]ip add 172.16.160.1 24
[12-LoopBack0]int l1
[12-LoopBack1]ip add 172.16.161.1 24
[r12]rip 1
[r12-rip-1]version 2
[r12-rip-1]network 172.16.0.0
[r3-ospf-1]int t0/0/0
[r3-Tunnel0/0/0]ospf network-type broadcast
[r5-ospf-1-area-0.0.0.0]int t0/0/0
[r5-Tunnel0/0/0]ospf network-type broadcast
[r5-Tunnel0/0/0]ospf dr-priority 0
[r6-ospf-1-area-0.0.0.0]int t0/0/0
[r6-Tunnel0/0/0]ospf network-type broadcast
[r6-Tunnel0/0/0]ospf dr-priority 0
[r7-ospf-1-area-0.0.0.0]int t0/0/0
[r7-Tunnel0/0/0]ospf network-type broadcast
[r7-Tunnel0/0/0]ospf dr-priority 0
[r9-ospf-2]ospf 1
[r9-ospf-1]import-route ospf 2
[12]ospf
[12-ospf-1]import-route rip
[r3]ospf
[r3-ospf-1]area 1
[r3-ospf-1-area-0.0.0.1]abr-summary 172.167.32.0 255.255.224.0
[r6]ospf
[r6-ospf-1]area 2
[r6-ospf-1-area-0.0.0.2]abr-summary 172.16.64.0 255.255.224.0
[r7]ospf
[r7-ospf-1]area 2
[r7-ospf-1-area-0.0.0.2]abr-summary 172.16.96.0 255.255.224.0
[r1]ospf
[r1-ospf-1]area 1
[r1-ospf-1-area-0.0.0.1]stub
[r2]ospf
[r2-ospf-1]area 1
[r2-ospf-1-area-0.0.0.1]stub
[r3]ospf
[r3-ospf-1]area 1
[r3-ospf-1-area-0.0.0.1]stub no-summary
r6]ospf
[r6-ospf-1]area 2
[r6-ospf-1-area-0.0.0.2]nssa no-summary
[11]ospf
[11-ospf-1]area 2
[11-ospf-1-area-0.0.0.2]nssa
[12]ospf
[12-ospf-1]area 2
[12-ospf-1-area-0.0.0.2]nssa
[r7]ospf
[r7-ospf-1]area 3
[r7-ospf-1-area-0.0.0.3]nssa no-summary
[r8]ospf
[r8-ospf-1]are 3
[r8-ospf-1-area-0.0.0.3]nssa
[r9]ospf
[r9-ospf-1]are 3
[r9-ospf-1-area-0.0.0.3]nssa
减小发送hello包的间隔时间 (统一修改)
[r1-GigabitEthernet0/0/0]ospf timer hello 5
[r2-GigabitEthernet0/0/0]ospf timer hello 5
[r3-GigabitEthernet0/0/0]ospf timer hello 5
[r3-Tunnel0/0/0]ospf timer hello 5
[r5-Tunnel0/0/0]ospf timer hello 5
[r6-Tunnel0/0/0]ospf timer hello 5
[r7-Tunnel0/0/0]ospf timer hello 5
[r6-GigabitEthernet0/0/1]ospf timer hello 5
[11-GigabitEthernet0/0/0]ospf timer hello 5
[12-GigabitEthernet0/0/0]ospf timer hello 5
[r7-GigabitEthernet0/0/1]ospf timer hello 5
[r8-GigabitEthernet0/0/0]ospf timer hello 5
[r8-GigabitEthernet0/0/1]ospf timer hello 5
[r9-GigabitEthernet0/0/0]ospf timer hello 5
[r9-GigabitEthernet0/0/1]ospf timer hello 5
[10-GigabitEthernet0/0/0]ospf timer hello 5
[r3-ospf-1-area-0.0.0.0]authentication-mode simple cipher 000000
[r5-ospf-1-area-0.0.0.0]authentication-mode simple cipher 000000
[r6-ospf-1-area-0.0.0.0]authentication-mode simple cipher 000000
[r7-ospf-1-area-0.0.0.0]authentication-mode simple cipher 000000
[r1-ospf-1-area-0.0.0.1]authentication-mode simple cipher 111111
[r2-ospf-1-area-0.0.0.1]authentication-mode simple cipher 111111
[r3-ospf-1-area-0.0.0.1]authentication-mode simple cipher 111111
[r6-ospf-1-area-0.0.0.2]authentication-mode simple cipher 222222
[11-ospf-1-area-0.0.0.2]authentication-mode simple cipher 222222
[12-ospf-1-area-0.0.0.2]authentication-mode simple cipher 222222
[r7-ospf-1-area-0.0.0.3]authentication-mode simple cipher 333333
[r8-ospf-1-area-0.0.0.3]authentication-mode simple cipher 333333
[r9-ospf-1-area-0.0.0.3]authentication-mode simple cipher 333333
[r9-ospf-1-area-0.0.0.4]authentication-mode simple cipher 444444
[10-ospf-1-area-0.0.0.4]authentication-mode simple cipher 444444
[R9]ospf 2
[R9-ospf-2]default-route-advertise
[R3]ip route-static 172.16.32.0 19 NULL 0
[R6]ip route-static 172.16.64.0 19 NULL 0
[R7]ip route-static 172.16.96.0 19 NULL 0
[R9]ip route-static 172.16.128.0 19 NULL 0
[R12]ip route-static 172.16.160.0 19 NULL 0
[r3]acl 2000
[r3-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[r3-acl-basic-2000]q
[r3]int g0/0/1
[r3-GigabitEthernet0/0/1]nat outbound 2000
[r5]acl 2000
[r5-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[r5-acl-basic-2000]q
[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]nat outbound 2000
[r6]acl 2000
[r6-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[r6-acl-basic-2000]q
[r6]int g0/0/0
[r6-GigabitEthernet0/0/0]nat outbound 2000
[r7]acl 2000
[r7-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[r7-acl-basic-2000]q
[r7]int g0/0/0
[r7-GigabitEthernet0/0/0]nat outbound 2000