实验拓扑
实验要求
1、R4为ISP,其上只配置IP地址;R4与其他所直连设备间均使用公有IP;
2、R3-R5、R6、R7为MGRE环境,R3为中心站点;
3、整个OSPF环境IP基于172.16.0.0/16划分;除了R12有两个环回,其他路由器均有一个环回IP
4、所有设备均可访问R4的环回;
5、减少LSA的更新量,加快收敛,保障更新安全;
6、全网可达;
配置步骤
1.Ip配置
R1
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 172.16.33.1 24
Apr 16 2024 18:12:13-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R1-GigabitEthernet0/0/0]int l0
[R1-LoopBack0]ip add 172.16.34.1 24
R2
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 172.16.33.2 24
Apr 16 2024 18:13:44-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R2-GigabitEthernet0/0/0]int l0
[R2-LoopBack0]ip add 172.16.35.2 24
R3
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 172.16.33.3 24
[R3-GigabitEthernet0/0/0]
Apr 16 2024 18:15:09-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R3-GigabitEthernet0/0/0]int s4/0/0
[R3-Serial4/0/0]ip add 34.0.0.3 24
[R3-Serial4/0/0]int l0
[R3-LoopBack0]ip add 172.16.36.3 24
R4
[R4]int s4/0/0
[R4-Serial4/0/0]ip add 34.0.0.4 24
[R4-Serial4/0/0]
Apr 16 2024 18:17:45-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
IPCP on the interface Serial4/0/0 has entered the UP state.
[R4-Serial4/0/0]int s4/0/1
[R4-Serial4/0/1]ip add 45.0.0.4 24
[R4-Serial4/0/1]int s3/0/0
[R4-Serial3/0/0]ip add 46.0.0.4 24
[R4-Serial3/0/0]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 47.0.0.4 24
[R4-GigabitEthernet0/0/0]
Apr 16 2024 18:19:06-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R4-GigabitEthernet0/0/0]int l0
[R4-LoopBack0]ip add 172.16.2.4 24
R5
[R5]int s4/0/0
[R5-Serial4/0/0]ip add 45.0.0.5 24
[R5-Serial4/0/0]
Apr 16 2024 18:20:44-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
IPCP on the interface Serial4/0/0 has entered the UP state.
[R5-Serial4/0/0]int l0
[R5-LoopBack0]ip add 172.16.3.5 24
[R5-LoopBack0]
R6
[R6]int s4/0/0
[R6-Serial4/0/0]ip add 46.0.0.6 24
[R6-Serial4/0/0]
Apr 16 2024 18:21:56-08:00 R6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
IPCP on the interface Serial4/0/0 has entered the UP state.
[R6-Serial4/0/0]int g0/0/0
[R6-GigabitEthernet0/0/0]ip add 172.16.65.6 24
Apr 16 2024 18:22:13-08:00 R6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R6-GigabitEthernet0/0/0]int l0
[R6-LoopBack0]ip add 172.16.5.6 24
R7
[R7]int g0/0/0
[R7-GigabitEthernet0/0/0]ip add 47.0.0.7 24
Apr 16 2024 18:23:24-08:00 R7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R7-GigabitEthernet0/0/0]int g0/0/1
[R7-GigabitEthernet0/0/1]ip add 172.16.97.1 30
Apr 16 2024 18:25:44-08:00 R7 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[R7-GigabitEthernet0/0/1]int l0
[R7-LoopBack0]ip add 172.16.5.7 24
R8
[R8]int g0/0/0
[R8-GigabitEthernet0/0/0]ip add 172.16.97.2 30
Apr 16 2024 18:27:36-08:00 R8 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R8-GigabitEthernet0/0/0]int g0/0/1
[R8-GigabitEthernet0/0/1]ip add 172.16.97.5 30
Apr 16 2024 18:28:19-08:00 R8 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[R8-GigabitEthernet0/0/1]int l0
[R8-LoopBack0]ip add 172.16.98.8 24
[R8-LoopBack0]
R9
[R9]int g0/0/0
[R9-GigabitEthernet0/0/0]ip add 172.16.97.6 30
[R9-GigabitEthernet0/0/0]
Apr 16 2024 18:29:32-08:00 R9 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R9-GigabitEthernet0/0/0]int g0/0/1
[R9-GigabitEthernet0/0/1]ip add 172.16.129.1 30
Apr 16 2024 18:30:24-08:00 R9 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[R9-GigabitEthernet0/0/1]int l0
[R9-LoopBack0]ip add 172.16.130.9 24
R10
[R10]int g0/0/0
[R10-GigabitEthernet0/0/0]ip add 172.16.129.2 30
[R10-GigabitEthernet0/0/0]
Apr 16 2024 18:31:44-08:00 R10 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R10-GigabitEthernet0/0/0]int l0
[R10-LoopBack0]ip add 172.16.131.10 24
R11
[R11]int g0/0/0
[R11-GigabitEthernet0/0/0]ip add 172.16.65.2 30
Apr 16 2024 18:34:06-08:00 R11 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R11-GigabitEthernet0/0/0]int g0/0/1
[R11-GigabitEthernet0/0/1]ip add 172.16.65.5 30
Apr 16 2024 18:34:37-08:00 R11 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[R11-GigabitEthernet0/0/1]int l0
[R11-LoopBack0]ip add 172.16.66.11 24
[R11-LoopBack0]
R12
[R12]int g0/0/0
[R12-GigabitEthernet0/0/0]ip add 172.16.65.6 30
[R12-GigabitEthernet0/0/0]
Apr 16 2024 18:35:51-08:00 R12 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R12-GigabitEthernet0/0/0]int l0
[R12-LoopBack0]ip add 172.16.160.12 24
[R12-LoopBack0]int l1
[R12-LoopBack1]ip add 172.16.161.12 24
2.宣告网段
R1
[R1]ospf 1 router-id
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]a 1
[R1-ospf-1-area-0.0.0.1]net 172.16.33.0 0.0.0.255
[R1-ospf-1-area-0.0.0.1]net 172.16.34.0 0.0.0.255
R2
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]a 1
[R2-ospf-1-area-0.0.0.1]net 172.16.33.0 0.0.0.255
[R2-ospf-1-area-0.0.0.1]net 172.16.35.0 0.0.0.255
R3
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]a 1
[R3-ospf-1-area-0.0.0.1]net 172.16.33.0 0.0.0.255
[R3-ospf-1-area-0.0.0.1]net 172.16.35.0 0.0.0.255
R5
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]a 0
[R5-ospf-1-area-0.0.0.0]net 172.16.3.0 0.0.0.255
R6
[R6]ospf 1 router-id 6.6.6.6
[R6-ospf-1]a 0
[R6-ospf-1-area-0.0.0.0]net 172.16.4.0 0.0.0.255
[R6-ospf-1-area-0.0.0.0]q
[R6-ospf-1]a 2
[R6-ospf-1-area-0.0.0.2]net 172.16.65.1 0.0.0.0
R7
[R7]ospf 1 router-id 7.7.7.7
[R7-ospf-1]a 0
[R7-ospf-1-area-0.0.0.0]net 172.16.5.0 0.0.0.255
[R7-ospf-1-area-0.0.0.0]q
[R7-ospf-1]a 3
[R7-ospf-1-area-0.0.0.3]net 172.16.97.1 0.0.0.0
R8
[R8]ospf 1 router-id 8.8.8.8
[R8-ospf-1]a 3
[R8-ospf-1-area-0.0.0.3]net 172.16.97.2 0.0.0.0
[R8-ospf-1-area-0.0.0.3]net 172.16.97.5 0.0.0.0
[R8-ospf-1-area-0.0.0.3]net 172.16.98.0 0.0.0.255
R9
[R9]ospf 1 router-id 9.9.9.9
[R9-ospf-1]a 3
[R9-ospf-1-area-0.0.0.3]net 172.16.97.6 0.0.0.0
[R9-ospf-1-area-0.0.0.3]q
[R9-ospf-1]q
[R9]ospf 2 ro
[R9]ospf 2 router-id 9.9.9.9
[R9-ospf-2]a 4
[R9-ospf-2-area-0.0.0.4]net 172.16.129.1 0.0.0.0
[R9-ospf-2-area-0.0.0.4]net 172.16.130.0 0.0.0.255
[R9]ospf 1
[R9-ospf-1]import-route ospf 2
[R9]ospf 2
[R9-ospf-2]import-route ospf 1
R10
[R10]ospf 1 router-id 10.10.10.10
[R10-ospf-1]a 4
[R10-ospf-1-area-0.0.0.4]net 172.16.129.2 0.0.0.0
[R10-ospf-1-area-0.0.0.4]net 172.16.131.0 0.0.0.255
R11
[R11]OS
[R11]ospf 1 ro
[R11]ospf 1 router-id 11.11.11.11
[R11-ospf-1]a 2
[R11-ospf-1-area-0.0.0.2]net
[R11-ospf-1-area-0.0.0.2]network 172.16.65.2 0.0.0.0
[R11-ospf-1-area-0.0.0.2]net 172.16.65.5 0.0.0.0
[R11-ospf-1-area-0.0.0.2]net 172.16.66.0 0.0.0.255
R12
[R12]rip 1
[R12-rip-1]v 2
[R12-rip-1]un
[R12-rip-1]undo sum
[R12-rip-1]undo summary
[R12-rip-1]net 172.16.0.0
[R12-rip-1]q
[R12]ospf 1
[R12-ospf-1]im
[R12-ospf-1]import-route rip
查看配置情况:
验证私网通
3.配置公网通
配置静态缺省:
[R3]ip route-static 0.0.0.0 0 34.0.0.4
[R5]ip route-static 0.0.0.0 0 45.0.0.4
[R6]ip route-static 0.0.0.0 0 46.0.0.4
[R7]ip route-static 0.0.0.0 0 47.0.0.4
验证公网通
4.搭建隧道
中心站点:
[R3]int t0/0/0
[R3-Tunnel0/0/0]
[R3-Tunnel0/0/0]ip add 172.16.6.3 24
[R3-Tunnel0/0/0]tu
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp
[R3-Tunnel0/0/0]so
[R3-Tunnel0/0/0]source se
[R3-Tunnel0/0/0]source Serial 4/0/0
Apr 16 2024 19:52:17-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[R3-Tunnel0/0/0]
[R3-Tunnel0/0/0]nhrp net
[R3-Tunnel0/0/0]nhrp network-id 100
[R3-Tunnel0/0/0]nhrp en
[R3-Tunnel0/0/0]nhrp entry mu
[R3-Tunnel0/0/0]nhrp entry multicast dy
[R3-Tunnel0/0/0]nhrp entry multicast dynamic
[R3-Tunnel0/0/0]
分支站点:
R5
[R5]int t0/0/0
[R5-Tunnel0/0/0]ip add 172.16.6.5 24
[R5-Tunnel0/0/0]tu
[R5-Tunnel0/0/0]tunnel-protocol gre p2mp
[R5-Tunnel0/0/0]s
[R5-Tunnel0/0/0]so
[R5-Tunnel0/0/0]source s4/0/0
Apr 16 2024 19:55:00-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[R5-Tunnel0/0/0]
[R5-Tunnel0/0/0]nhrp nt
[R5-Tunnel0/0/0]nhrp ne
[R5-Tunnel0/0/0]nhrp network-id 100
[R5-Tunnel0/0/0]nhrp en
[R5-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 re
[R5-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 register
R6
[R6]int t0/0/0
[R6-Tunnel0/0/0]ip add 172.16.6.6 24
[R6-Tunnel0/0/0]tu
[R6-Tunnel0/0/0]tunnel-protocol gre p2mp
[R6-Tunnel0/0/0]so
[R6-Tunnel0/0/0]source s4/0/0
Apr 16 2024 19:57:12-08:00 R6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[R6-Tunnel0/0/0]nhrp ne
[R6-Tunnel0/0/0]nhrp network-id 100
[R6-Tunnel0/0/0]nhrp en
[R6-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 re
[R6-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 register
[R6-Tunnel0/0/0]
R7
[R7]int t0/0/0
[R7-Tunnel0/0/0]ip add
[R7-Tunnel0/0/0]ip address 172.16.6.7 24
[R7-Tunnel0/0/0]tu
[R7-Tunnel0/0/0]tunnel-protocol gre p2mp
[R7-Tunnel0/0/0]so
[R7-Tunnel0/0/0]source g0/0/0
Apr 16 2024 20:00:05-08:00 R7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[R7-Tunnel0/0/0]
[R7-Tunnel0/0/0]nhrp ne
[R7-Tunnel0/0/0]nhrp network-id 100
[R7-Tunnel0/0/0]nhrp en
[R7-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 re
[R7-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 register
查看注册信息:
5.宣告隧道
R3
[R3]ospf
[R3-ospf-1]a 0
[R3-ospf-1-area-0.0.0.0]net 172.16.6.0 0.0.0.255
R5
[R5]ospf 1
[R5-ospf-1]a 0
[R5-ospf-1-area-0.0.0.0]net 172.16.6.0 0.0.0.255
R6
[R6]ospf
[R6-ospf-1]a 0
[R6-ospf-1-area-0.0.0.0]net 172.16.6.0 0.0.0.255
R7
[R7]ospf 1
[R7-ospf-1]a 0
[R7-ospf-1-area-0.0.0.0]net 172.16.6.0 0.0.0.255
6.更改隧道接口类型
[R3]int t0/0/0
[R3-Tunnel0/0/0]ospf ne
[R3-Tunnel0/0/0]ospf network-type br
[R3-Tunnel0/0/0]ospf network-type broadcast
[R5]int t0/0/0
[R5-Tunnel0/0/0]ospf net
[R5-Tunnel0/0/0]ospf network-type br
[R5-Tunnel0/0/0]ospf network-type broadcast
[R6]int t0/0/0
[R6-Tunnel0/0/0]ospf net
[R6-Tunnel0/0/0]ospf network-type br
[R6-Tunnel0/0/0]ospf network-type broadcast
[R7]int t0/0/0
[R7-Tunnel0/0/0]ospf net
[R7-Tunnel0/0/0]ospf network-type br
[R7-Tunnel0/0/0]ospf network-type broadcast
7.更改隧道选举:
R5:
[R5-Tunnel0/0/0]ospf dr
[R5-Tunnel0/0/0]ospf dr-priority 0
R6
[R6-Tunnel0/0/0]os
[R6-Tunnel0/0/0]ospf dr
[R6-Tunnel0/0/0]ospf dr-priority 0
R7
[R7-Tunnel0/0/0]os
[R7-Tunnel0/0/0]ospf dr
[R7-Tunnel0/0/0]ospf dr-priority 0
8.每个设备都可以访问R4环回
[R3]acl 2000
[R3-acl-basic-2000]ru
[R3-acl-basic-2000]rule p
[R3-acl-basic-2000]rule permit so
[R3-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[R3-acl-basic-2000]q
[R3]int s4/0/0
[R3-Serial4/0/0]nat ou
[R3-Serial4/0/0]nat outbound 2000
[R3-Serial4/0/0]
[R5]acl 2000
[R5-acl-basic-2000]ru
[R5-acl-basic-2000]rule p
[R5-acl-basic-2000]rule permit so
[R5-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[R5-acl-basic-2000]q
[R5]int s4/0/0
[R5-Serial4/0/0]nat o
[R5-Serial4/0/0]nat outbound 2000
[R5-Serial4/0/0]
[R6]acl 2000
[R6-acl-basic-2000]ru
[R6-acl-basic-2000]rule p
[R6-acl-basic-2000]rule permit so
[R6-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[R6-acl-basic-2000]q
[R6]int s4/0/0
[R6-Serial4/0/0]nat o
[R6-Serial4/0/0]nat outbound 2000
[R6-Serial4/0/0]
[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 o
[R7-GigabitEthernet0/0/0]nat outbound 2000
9.路由汇总
[R3]ospf 1
[R3-ospf-1]a 1
[R3-ospf-1-area-0.0.0.1]ab
[R3-ospf-1-area-0.0.0.1]abr-summary 172.16.32.0 255.255.224.0
[R6]ospf 1
[R6-ospf-1]a 1
[R6-ospf-1-area-0.0.0.1]ab
[R6-ospf-1-area-0.0.0.1]abr-summary 172.16.32.0 255.255.224.0
[R7]ospf 1
[R7-ospf-1]a 2
[R7-ospf-1-area-0.0.0.2]ab
[R7-ospf-1-area-0.0.0.2]abr-summary 172.16.96.0 255.255.224.0
[R9]ospf 1
[R9-ospf-1]as
[R9-ospf-1]asbr-summary 172.16.128.0 255.255.224.0
[R12]ospf 1
[R12-ospf-1]asb
[R12-ospf-1]asbr-summary 172.16.160.0 255.255.224.0
特殊区域:
[R1-ospf-1-area-0.0.0.1]stub no-s
[R2-ospf-1-area-0.0.0.1]stub no-s
[R2-ospf-1-area-0.0.0.1]stub no-summary
[R3]ospf 1
[R3-ospf-1]a 1
[R3-ospf-1-area-0.0.0.1]stub no-s
[R3-ospf-1-area-0.0.0.1]stub no-summary
[R6-ospf-1]a 2
[R6-ospf-1-area-0.0.0.2]nssa no-
[R6-ospf-1-area-0.0.0.2]nssa no-s
[R6-ospf-1-area-0.0.0.2]nssa no-summary
[R7]ospf
[R7-ospf-1]a 3
[R7-ospf-1-area-0.0.0.3]nssa no-s
[R7-ospf-1-area-0.0.0.3]nssa no-summary
[R7-ospf-1-area-0.0.0.3]
[R8-ospf-1]a 3
[R8-ospf-1-area-0.0.0.3]nssa no-s
[R8-ospf-1-area-0.0.0.3]nssa no-summary
[R9-ospf-1]
[R9-ospf-1]a 3
[R9-ospf-1-area-0.0.0.3]nssa no-s
[R9-ospf-1-area-0.0.0.3]nssa no-summary
[R9-ospf-1-area-0.0.0.3]
[R11]ospf 1
[R11-ospf-1]a 2
[R11-ospf-1-area-0.0.0.2]nss
[R11-ospf-1-area-0.0.0.2]nssa no-s
[R11-ospf-1-area-0.0.0.2]nssa no-summary
[R11-ospf-1-area-0.0.0.2]
[R12]ospf 1
[R12-ospf-1]a 2
[R12-ospf-1-area-0.0.0.2]nssa no-s
10.给R10下发缺省
[R9]ospf 2
[R9-ospf-2]de
[R9-ospf-2]default-r
[R9-ospf-2]default-route-advertise
[R9-ospf-2]
11.加快收敛
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ospf timer h
[R1-GigabitEthernet0/0/0]ospf timer hello 1
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]os
[R2-GigabitEthernet0/0/0]ospf timer he
[R2-GigabitEthernet0/0/0]ospf timer hello 1
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ospf timer he
[R3-GigabitEthernet0/0/0]ospf timer hello 1
[R3-GigabitEthernet0/0/0]int s4/0/0
[R3-Serial4/0/0]ospf ti
[R3-Serial4/0/0]ospf timer h
[R3-Serial4/0/0]ospf timer hello 1
[R3-Serial4/0/0]
[R4]int s4/0/0
[R4-Serial4/0/0]ospf ti
[R4-Serial4/0/0]ospf timer h
[R4-Serial4/0/0]ospf timer hello 1
[R4-Serial4/0/0]int s4/0/1
[R4-Serial4/0/1]ospf timer hello 1
[R4-Serial4/0/1]int s3/0/0
[R4-Serial3/0/0]ospf timer hello 1
[R4-Serial3/0/0]int g0/0/0
[R4-GigabitEthernet0/0/0]ospf timer hello 1
[R4-GigabitEthernet0/0/0]
[R5]int s4/0/0
[R5-Serial4/0/0]ospf timer hello 1
[R5-Serial4/0/0]
[R6]int s4/0/0
[R6-Serial4/0/0]ospf timer hello 1
[R6-Serial4/0/0]
[R6-Serial4/0/0]int g0/0/0
[R6-GigabitEthernet0/0/0]ospf timer hello 1
[R6-GigabitEthernet0/0/0]
[R7]int g0/0/0
[R7-GigabitEthernet0/0/0]ospf timer hello 1
[R7-GigabitEthernet0/0/0]int g0/0/1
[R7-GigabitEthernet0/0/1]ospf timer hello 1
[R7-GigabitEthernet0/0/1]
[R8]int g0/0/0
[R8-GigabitEthernet0/0/0]ospf timer hello 1
[R8-GigabitEthernet0/0/0]int g0/0/1
[R8-GigabitEthernet0/0/1]ospf timer hello 1
[R8-GigabitEthernet0/0/1]
[R9]int g0/0/0
[R9-GigabitEthernet0/0/0]ospf timer hello 1
[R9-GigabitEthernet0/0/0]int g0/0/1
[R9-GigabitEthernet0/0/1]ospf timer hello 1
[R10]int g0/0/0
[R10-GigabitEthernet0/0/0]ospf timer hello 1
[R11]int g0/0/0
[R11-GigabitEthernet0/0/0]ospf timer hello 1
[R11-GigabitEthernet0/0/0]int g0/0/1
[R11-GigabitEthernet0/0/1]ospf timer hello 1
[R11-GigabitEthernet0/0/1]
[R12]int g0/0/0
[R12-GigabitEthernet0/0/0]ospf timer hello 1
[R12-GigabitEthernet0/0/0]
12.区域认证:
[R1]ospf 1
[R1-ospf-1]a 1
[R1-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher 12345
[R2-ospf-1]a 1
[R2-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher 12345
[R3]ospf 1
[R3-ospf-1]a 1
[R3-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher 12345
[R6]ospf 1
[R6-ospf-1]a 2
[R6-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher 12345
[R7]ospf 1
[R7-ospf-1]a 3
[R7-ospf-1-area-0.0.0.3]authentication-mode md5 1 cipher 12345
[R8]ospf 1
[R8-ospf-1]a 3
[R8-ospf-1-area-0.0.0.3]authentication-mode md5 1 cipher 12345
[R9]ospf 1
[R9-ospf-1]a 3
[R9-ospf-1-area-0.0.0.3]authentication-mode md5 1 cipher 12345
[R11]ospf 1
[R11-ospf-1]a 2
[R11-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher 12345
[R12]ospf
[R12-ospf-1]a 2
[R12-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher 12345