OSPF高级特性实验

实验拓扑


实验需求

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,配IP

2、公网通配静态缺省

3.私网通ospf

4.做MGRE环境,R3为中心站点

6.做easyip使路由可访问R4的环回

7.优化做特殊区域

8.加快收敛

9.安全认证

10.测试


实验步骤

1.划分IP

172.16.0.0   /16

6个线路=1主链路1个大网段再划6个

MGRE隧道一个大网段再划4个

12个路由器环回地址 划13个

172.16.0.0001 0000 /28 =172.16.0.16/28

172.16.0.0010 0000/28 =172.16.0.32/28(没用)

172.16.0.0011 0000/28 =172.16.0.48/28(没用)

172.16.0.0100 0000/28 =172.16.0.64/28

172.16.0.0101 0000/28 =172.16.0.80/28

172.16.0.0110 0000/28 =172.16.0.96/28

172.16.0.0111 0000/28 =172.16.0.112/28

172.16.0.1000 0000/28 =172.16.0.128/28

MGRE

172.16.1.0 /24

中心:

172.16.1.0001 0000 /28 =172.16.1.16/28

分部:

R5 =172.16.1.18/28

R6 =172.16.1.19/28

R7 =172.16.1.20/28

路由器环回

R1-----172.16.2.0/24

R2-----172.16.3.0/24

R3-----172.16.4.0/24

R4-----172.16.5.0/24

R5-----172.16.6.0/24

R6-----172.16.7.0/24

R7-----172.16.8.0/24

R8-----172.16.9.0/24

R9-----172.16.10.0/24

R10-----172.16.11.0/24

R11-----172.16.12.0/24

R12-----172.16.13.0/24

R12-----172.16.14.0/24

2.配IP

[R1]INT GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip add 172.16.0.17 28

[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 172.16.0.18 28
[R2-GigabitEthernet0/0/0]
Jul 26 2024 18:31:08-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R2-GigabitEthernet0/0/0]q
[R2]

[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 172.16.0.19 28
Jul 26 2024 18:40:25-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]q
[R3]int s4/0/0
[R3-Serial4/0/0]ip add 34.0.0.1 24
[R3-Serial4/0/0]
[R3-Serial4/0/0]q

[R4]int Serial 4/0/0
[R4-Serial4/0/0]ip add 34.0.0.2 24
[R4-Serial4/0/0]
Jul 26 2024 18:44:16-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]q
[R4]int s    
[R4]int Serial 4/0/1
[R4-Serial4/0/1]ip add 45.0.0.2 24
[R4-Serial4/0/1]int s3/0/0
[R4-Serial3/0/0]ip add 46.0.0.2 24
[R4-Serial3/0/0]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 47.0.0.2 24
Jul 26 2024 18:47:33-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]

[R5-Serial4/0/0]ip add 45.0.0.1 24
[R5-Serial4/0/0]

[R6]int s4/0/0
[R6-Serial4/0/0]ip add 46.0.0.1 24
[R6-Serial4/0/0]

[R7]int g0/0/0
[R7-GigabitEthernet0/0/0]ip add 47.0.0.1 24

[R7]int g0/0/1
[R7-GigabitEthernet0/0/1]ip add 172.16.0.65 28

[R8]int g0/0/0
[R8-GigabitEthernet0/0/0]ip add 172.16.0.66 28
[R8-GigabitEthernet0/0/0]

[R8]int g0/0/1
[R8-GigabitEthernet0/0/1]
[R8-GigabitEthernet0/0/1]ip add 172.16.0.81 28

[R9]int g0/0/0
[R9-GigabitEthernet0/0/0]ip add 172.16.0.82 28
[R9-GigabitEthernet0/0/0]
Jul 26 2024 19:15:34-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.0.97 28

[R10]int g0/0/0
[R10-GigabitEthernet0/0/0]ip add 172.16.0.98 28
Jul 26 2024 19:17:37-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]q

[R6]int g0/0/0
[R6-GigabitEthernet0/0/0]ip add 172.16.0.113 28

[R11]int g0/0/0
[R11-GigabitEthernet0/0/0]ip add 172.16.0.114 28
[R11-GigabitEthernet0/0/0]
Jul 26 2024 19:20:44-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.0.129 28

[R12]int g0/0/0
[R12-GigabitEthernet0/0/0]ip add 172.16.0.130 28 

[R1]int l0
[R1-LoopBack0]ip add 172.16.2.1 24
[R1-LoopBack0]q
[R1]dis ip int b

[R2]int l0
[R2-LoopBack0]ip add 172.16.3.1 24
[R2-LoopBack0]q
[R2]

[R3]int l0
[R3-LoopBack0]ip add 172.16.4.1 24
[R3-LoopBack0]q
[R3]

[R4]int l0
[R4-LoopBack0]ip add 172.16.5.1 24
[R4-LoopBack0]q
[R4]

[R5]int l0
[R5-LoopBack0]ip add 172.16.6.1 24
[R5-LoopBack0]q
[R5]

[R6]int l0
[R6-LoopBack0]ip add 172.16.7.1 24
[R6-LoopBack0]q
[R6]

[R7]int l0
[R7-LoopBack0]ip add 172.16.8.1 24
[R7-LoopBack0]q
[R7]

[R8]int l0
[R8-LoopBack0]ip add 172.16.9.1 24
[R8-LoopBack0]q
[R8]

[R9]int l0
[R9-LoopBack0]ip add 172.16.10.1 24
[R9-LoopBack0]q
[R9]

[R10]int l0
[R10-LoopBack0]ip add 172.16.11.1 24
[R10-LoopBack0]q
[R10]

[R11]int l0
[R11-LoopBack0]ip add 172.16.12.0 24
Error: The specified IP address is invalid.
[R11-LoopBack0]ip add 172.16.12.1 24
[R11-LoopBack0]ip add 172.16.12.1 24
Error: The address already exists.
[R11-LoopBack0]q
[R11]

[R12]INT L0
[R12-LoopBack0]
[R12-LoopBack0]ip add 172.16.13.1 24
[R12-LoopBack0]int l1
[R12-LoopBack1]ip add 172.16.13.2 24
Error: The specified address conflicts with another address.
[R12-LoopBack1]ip add 172.16.13.6 24
Error: The specified address conflicts with another address.
[R12-LoopBack1]ip add 172.16.14.1 24
[R12-LoopBack1]q
[R12]

[R12]rip 1
[R12-rip-1]v 2
[R12-rip-1]un    
[R12-rip-1]undo su    
[R12-rip-1]undo summary 
[R12-rip-1]
[R12-rip-1]net 172.16.0.0
[R12-rip-1]q
[R12]

3、公网通

配静态缺省

[R3]ip r    
[R3]ip ro    
[R3]ip route-static 0.0.0.0 34.0.0.2
                                     ^
Error:Incomplete command found at '^' position.
[R3]ip route-static 0.0.0.0 34.0.0.2
                                     ^
Error:Incomplete command found at '^' position.
[R3]ip route-static 0.0.0.0 0 34.0.0.2
[R3]pi    
[R3]ping -a 34.0.0.1 46.0.0.2

<R5>sys
Enter system view, return user view with Ctrl+Z.
[R5]ip route-static 0.0.0.0 0 45.0.0.2
[R5]q
<R5>

<R6>sys
Enter system view, return user view with Ctrl+Z.
[R6]ip route-static 0.0.0.0 0 46.0.0.2
[R6]

<R7>sys
Enter system view, return user view with Ctrl+Z.
[R7]ip route-static 0.0.0.0 0 47.0.0.2
[R7]q

4.私网通
area 1

[R1]ospf 1 r    
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]a 1
[R1-ospf-1-area-0.0.0.1] ne 0.0.0.0 255.255.255.255

[R2]ospf 1 ro    
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]a 1
[R2-ospf-1-area-0.0.0.1]ne 0.0.0.0 255.255.255.255
[R2-ospf-1-area-0.0.0.1]q
[R2-ospf-1]

[R3]osp         
[R3]ospf 1    
[R3]ospf 1 r    
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]a 1
[R3-ospf-1-area-0.0.0.1]ne 172.16.0.16 0.0.63.255
[R3-ospf-1-area-0.0.0.1]ne 172.16.4.1 0.0.0.255
[R3-ospf-1-area-0.0.0.1]q
[R3-ospf-1]

area 2

[R6]ospf 1 ro    
[R6]ospf 1 router-id 6.6.6.6
[R6-ospf-1]a 0
[R6-ospf-1-area-0.0.0.0]ne 172.16.7.0 0.0.0.255

[R6]ospf 1 ro    
[R6]ospf 1 router-id 6.6.6.6
[R6-ospf-1]a 2
[R6-ospf-1-area-0.0.0.2]ne 172.16.0.112 0.0.63.255
[R6-ospf-1-area-0.0.0.2]q
[R6-ospf-1]q
[R6]

[R11]ospf 1 r    
[R11]ospf 1 router-id 11.11.11.11
[R11-ospf-1]a 2
[R11-ospf-1-area-0.0.0.2]ne 172.16.0.112 0.0.63.255

[R11-ospf-1-area-0.0.0.2]ne 1ne 172.16.0.112 0.0.63.255    
[R11-ospf-1-area-0.0.0.2]ne 172.16.0.128 0.0.63.255
[R11-ospf-1-area-0.0.0.2]ne 172.16.12.0 0.0.0.255
[R11-ospf-1-area-0.0.0.2]q
[R11-ospf-1]

[R12]ospf 1 ro    
[R12]ospf 1 router-id 12.12.12.12
[R12-ospf-1]a 2
[R12-ospf-1-area-0.0.0.2]ne 172.16.0.128 0.0.63.255
[R12-ospf-1-area-0.0.0.2]

[R12-LoopBack1]q
[R12]rip 1
[R12-rip-1]v 2
[R12-rip-1]un    
[R12-rip-1]undo su    
[R12-rip-1]undo summary 
[R12-rip-1]
[R12-rip-1]net 172.16.0.0
[R12-rip-1]q
[R12]

[R12]ospf 1
[R12-ospf-1]imp    
[R12-ospf-1]import-route rip
[R12-ospf-1]q
[R12]

area 3

[R7]ospf 1 ro    
[R7]ospf 1 router-id 7.7.7.7
[R7-ospf-1]a 0
[R7-ospf-1-area-0.0.0.0]ne 172.16.8.0 0.0.0.255
[R7-ospf-1-area-0.0.0.0]a 3
[R7-ospf-1-area-0.0.0.3]ne 172.16.0.64 0.0.63.255
[R7-ospf-1-area-0.0.0.3]q
[R7-ospf-1]

[R8]ospf 1 router-id 8.8.8.8
[R8-ospf-1]a 3
[R8-ospf-1-area-0.0.0.3]ne 172.16.0.64 0.0.63.255
[R8-ospf-1-area-0.0.0.3]

[R8-ospf-1-area-0.0.0.3]ne 172.16.0.80 0.0.63.255
[R8-ospf-1-area-0.0.0.3]ne 172.16.9.0 0.0.0.255
[R8-ospf-1-area-0.0.0.3]q
[R8-ospf-1]

area 4

[R9]ospf 1 r    
[R9]ospf 1 router-id 9.9.9.9
[R9-ospf-1]a 3
[R9-ospf-1-area-0.0.0.3]ne 172.16.0.80 0.0.63.255
 

[R9]os    
[R9]ospf 2 r    
[R9]ospf 2 router-id 9.9.9.9
[R9-ospf-2]a 4
[R9-ospf-2-area-0.0.0.4]ne 172.16.10.0 0.0.0.255
[R9-ospf-2-area-0.0.0.4]ne 172.16.0.96 0.0.63.255
Error: The specified network command has been occupied by another area or proces
s.
[R9-ospf-2-area-0.0.0.4]ne 172.16.0.97 0.0.0.0
[R9-ospf-2-area-0.0.0.4]q
[R9-ospf-2]q

[R10]ospf 2 router-id 10.10.10.10
[R10-ospf-2]
[R10-ospf-2]a 4
[R10-ospf-2-area-0.0.0.4]ne 172.16.0.96 0.0.63.255
[R10-ospf-2-area-0.0.0.4]ne 172.16.11.0 0.0.0.255
[R10-ospf-2-area-0.0.0.4]q
[R10-ospf-2]q
[R10]

重发布

[R9]ospf 1
[R9-ospf-1]im    
[R9-ospf-1]import-route o    
[R9-ospf-1]import-route ospf 2
[R9-ospf-1]q
[R9]os    
[R9]ospf 2
[R9-ospf-2]im    
[R9-ospf-2]import-route os    
[R9-ospf-2]import-route ospf 1
[R9-ospf-2]q
[R9]

5.R3-R5、R6、R7为MGRE环境,R3为中心站点;

R3 

[R3]int t0/0/0
[R3-Tunnel0/0/0]ip add 172.16.1.17 28
[R3-Tunnel0/0/0]tunnel-protocol g    
[R3-Tunnel0/0/0]tunnel-protocol gre p    
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R3]int t0/0/0
[R3-Tunnel0/0/0]nh    
[R3-Tunnel0/0/0]nhrp n    
[R3-Tunnel0/0/0]nhrp network-id 10
[R3-Tunnel0/0/0]q


开启nhrp的广播功能

[R3-Tunnel0/0/0]nhrp entry multicast dynamic 
[R3-Tunnel0/0/0]


[R3-Tunnel0/0/0]source 34.0.0.1
Jul 26 2024 19:38:32-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]q
[R3]

R5

[R5]int t0/0/0
[R5-Tunnel0/0/0]ip add 172.16.1.33 28
[R5-Tunnel0/0/0]t    
[R5-Tunnel0/0/0]tu    
[R5-Tunnel0/0/0]tunnel-protocol g    
[R5-Tunnel0/0/0]tunnel-protocol gre p    
[R5-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R5-Tunnel0/0/0]s    
[R5-Tunnel0/0/0]so    
[R5-Tunnel0/0/0]source s    
[R5-Tunnel0/0/0]source Serial 4/0/0
Jul 26 2024 19:34:54-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]nh    
[R5-Tunnel0/0/0]nhrp n    
[R5-Tunnel0/0/0]nhrp network-id 10
[R5-Tunnel0/0/0]nh    
[R5-Tunnel0/0/0]nhrp en    
[R5-Tunnel0/0/0]nhrp EN    
[R5-Tunnel0/0/0]nhrp entry 172.16.1.17 34.0.0.1 r    
[R5-Tunnel0/0/0]nhrp entry 172.16.1.17 34.0.0.1 register 
[R5-Tunnel0/0/0]

[R6]int t0/0/0
[R6-Tunnel0/0/0]ip add 172.16.1.65 28
[R6-Tunnel0/0/0]t    
[R6-Tunnel0/0/0]tcp
[R6-Tunnel0/0/0]test-aaa
[R6-Tunnel0/0/0]tracert
[R6-Tunnel0/0/0]traffic-filter
[R6-Tunnel0/0/0]traffic-policy
[R6-Tunnel0/0/0]tu    
[R6-Tunnel0/0/0]tunnel-protocol g    
[R6-Tunnel0/0/0]tunnel-protocol gre p    
[R6-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R6-Tunnel0/0/0]so    
[R6-Tunnel0/0/0]source s    
[R6-Tunnel0/0/0]source Serial 4/0/0
Jul 26 2024 19:45:35-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]
[R6-Tunnel0/0/0]nhr    
[R6-Tunnel0/0/0]nhrp n    
[R6-Tunnel0/0/0]nhrp network-id 10
[R6-Tunnel0/0/0]nhrp entry 172.16.1.17 34.0.0.1 register
[R6-Tunnel0/0/0]q
[R6]

[R7]int tu    
[R7]int Tunnel 0/0/0
[R7-Tunnel0/0/0]ip add 172.16.1.20 28
[R7-Tunnel0/0/0]tu    
[R7-Tunnel0/0/0]tunnel-protocol g    
[R7-Tunnel0/0/0]tunnel-protocol gre p    
[R7-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R7-Tunnel0/0/0]so    
[R7-Tunnel0/0/0]source s    
[R7-Tunnel0/0/0]source g    
[R7-Tunnel0/0/0]source GigabitEthernet 0/0/0
Jul 26 2024 19:49:59-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]nh    
[R7-Tunnel0/0/0]nhrp n    
[R7-Tunnel0/0/0]nhrp network-id 10

[R7-Tunnel0/0/0]nhrp entry 172.16.1.17 34.0.0.1 register
[R7-Tunnel0/0/0]q
[R7]

area 0

[R3]ospf 1
[R3-ospf-1]a 0
[R3-ospf-1-area-0.0.0.0]ne 172.16.1.16 0.0.63.255
Error: The specified network command has been occupied by another area or proces
s.
[R3-ospf-1-area-0.0.0.0]ne 172.16.1.17 0.0.0.0
[R3-ospf-1-area-0.0.0.0]q
[R3-ospf-1]q
[R3]

[R5]ospf 1 r    
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]a 0
[R5-ospf-1-area-0.0.0.0]ne 172.16.1.18 0.0.0.0

[R5-ospf-1-area-0.0.0.0]ne 172.16.6.0 0.0.0.255
[R5-ospf-1-area-0.0.0.0]q
[R5-ospf-1]

[R6]ospf 1 r    
[R6]ospf 1 router-id 6.6.6.6
[R6-ospf-1]a 0
[R6-ospf-1-area-0.0.0.0]ne 172.16.1.19 0.0.0.0
[R6-ospf-1-area-0.0.0.0]
Jul 29 2024 23:23:18-08:00 R6 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=17.1.16.172, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R6-ospf-1-area-0.0.0.0]
[R6-ospf-1-area-0.0.0.0]ne 172.16.7.0 0.0.0.255
[R6-ospf-1-area-0.0.0.0]q


[R7]ospf 1
[R7-ospf-1]a 0
[R7-ospf-1-area-0.0.0.0]ne 172.16.1.20 0.0.0.0
[R7-ospf-1-area-0.0.0.0]
Jul 29 2024 23:24:37-08:00 R7 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=17.1.16.172, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R7-ospf-1-area-0.0.0.0

[R3]int t    
[R3]int Tunnel 0/0/0
[R3-Tunnel0/0/0]os    
[R3-Tunnel0/0/0]ospf ne    
[R3-Tunnel0/0/0]ospf network-type b    
[R3-Tunnel0/0/0]ospf network-type broadcast 

[R5]int t    
[R5]int Tunnel 0/0/0
[R5-Tunnel0/0/0]ospf network-type broadcast

[R6]int t    
[R6]int Tunnel 0/0/0
[R6-Tunnel0/0/0]ospf network-type broadcast

[R7]int t    
[R7]int Tunnel 0/0/0
[R7-Tunnel0/0/0]ospf network-type broadcast

[R5]int t    
[R5]int Tunnel 0/0/0
[R5-Tunnel0/0/0]os    
[R5-Tunnel0/0/0]ospf dr-    
[R5-Tunnel0/0/0]ospf dr-priority 0

[R6]int t    
[R6]int Tunnel 0/0/0
[R6-Tunnel0/0/0]ospf dr-priority 0

[R7]int t    
[R7]int Tunnel 0/0/0
[R7-Tunnel0/0/0]ospf dr-priority 0

6.做easyip使路由可访问R4的环回

[R3]acl 2000
[R3-acl-basic-2000]re    
[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]int s    
[R3-acl-basic-2000]int s
[R3-acl-basic-2000]int s4/0/0
[R3-Serial4/0/0]nat o    
[R3-Serial4/0/0]nat outbound 2000
[R3-Serial4/0/0]q
[R3]

[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 s4/0/0
[R6-Serial4/0/0]nat o    
[R6-Serial4/0/0]nat outbound 2000
[R6-Serial4/0/0]q
[R6]

[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
[R7-GigabitEthernet0/0/0]

7.优化做特殊区域

area 1

[R1]ospf 1
[R1-ospf-1]a    
[R1-ospf-1]area 1
[R1-ospf-1-area-0.0.0.1]st    
[R1-ospf-1-area-0.0.0.1]stub no    
[R1-ospf-1-area-0.0.0.1]stub no-summary 

[R2]os    
[R2]ospf 1
[R2-ospf-1]a 1
[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-summary 

area 2

[R6]ospf 1
[R6-ospf-1]a 2
[R6-ospf-1-area-0.0.0.2]ns    
[R6-ospf-1-area-0.0.0.2]nssa n    
[R6-ospf-1-area-0.0.0.2]nssa no-s    
[R6-ospf-1-area-0.0.0.2]nssa no-summary 

[R11]ospf 1
[R11-ospf-1]a    
[R11-ospf-1]are    
[R11-ospf-1]area 2
[R11-ospf-1-area-0.0.0.2]nssa no-summary 

[R12]ospf 1
[R12-ospf-1]a 2
[R12-ospf-1-area-0.0.0.2]nssa no-summary 

area 3

[R7]ospf 1
[R7-ospf-1]a 3
[R7-ospf-1-area-0.0.0.3]nssa no-summary 
[R7-ospf-1-area-0.0.0.3]

[R8]ospf 1
[R8-ospf-1]a 3
[R8-ospf-1-area-0.0.0.3]nssa no-summary 

[R9]osp    
[R9]ospf 1
[R9-ospf-1]
[R9-ospf-1]a 3
[R9-ospf-1-area-0.0.0.3]nssa no-summary

[R9]0s

[R9]ospf 2

[R9-ospf-2]default-route-advertise

[R9-ospf-2]q
 

8.加快收敛
area 1

[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ospf t    
[R1-GigabitEthernet0/0/0]ospf timer h    
[R1-GigabitEthernet0/0/0]ospf timer hello 5
[R1-GigabitEthernet0/0/0]q
[R1]

[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ospf timer hello 5
[R2-GigabitEthernet0/0/0]q
[R2]

[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ospf timer hello 5
[R3-GigabitEthernet0/0/0]q
[R3]

area 0

[R3]int t    
[R3]int Tunnel 0/0/0
[R3-Tunnel0/0/0]ospf timer hello 5
[R3-Tunnel0/0/0]

[R5]int t    
[R5]int Tunnel 0/0/0
[R5-Tunnel0/0/0]
[R5-Tunnel0/0/0]ospf timer hello 5
[R5-Tunnel0/0/0]

[R6]int t    
[R6]int Tunnel 0/0/0
[R6-Tunnel0/0/0]ospf timer hello 5
[R6-Tunnel0/0/0]

[R7]int t    
[R7]int Tunnel 0/0/0
[R7-Tunnel0/0/0]
[R7-Tunnel0/0/0]ospf timer hello 5
[R7-Tunnel0/0/0]

area 2


[R6]int g0/0/0
[R6-GigabitEthernet0/0/0]ospf timer hello 5
[R6-GigabitEthernet0/0/0]

[R12]int g0/0/0
[R12-GigabitEthernet0/0/0]
[R12-GigabitEthernet0/0/0]ospf timer hello 5
[R12-GigabitEthernet0/0/0]

[R11]int g0/0/0
[R11-GigabitEthernet0/0/0]ospf timer hello 5
[R11-GigabitEthernet0/0/0]int g0/0/1
[R11-GigabitEthernet0/0/1]ospf timer hello 5
[R11-GigabitEthernet0/0/1]

9.安全认证

区域安全认证

area 0

[R3-ospf-1]
[R3-ospf-1]
[R3-ospf-1]a 0
[R3-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher w123
[R3-ospf-1-area-0.0.0.0]

[R5]ospf 1
[R5-ospf-1]a 0
[R5-ospf-1-area-0.0.0.0]
[R5-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher w123
[R5-ospf-1-area-0.0.0.0]

[R6]ospf 1
[R6-ospf-1]a 0
[R6-ospf-1-area-0.0.0.0]
[R6-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher w123
[R6-ospf-1-area-0.0.0.0]

[R7-ospf-1]a 0
[R7-ospf-1-area-0.0.0.0]
[R7-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher w123
[R7-ospf-1-area-0.0.0.0]

area 1

[R1]ospf 1
[R1-ospf-1]a 1
[R1-ospf-1-area-0.0.0.1]
[R1-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher w123
[R1-ospf-1-area-0.0.0.1]q
[R1-ospf-1]

[R2]ospf 1
[R2-ospf-1]a 1
[R2-ospf-1-area-0.0.0.1]
[R2-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher w123
[R2-ospf-1-area-0.0.0.1]

[R3]ospf 1
[R3-ospf-1]a 1
[R3-ospf-1-area-0.0.0.1]
[R3-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher w123
[R3-ospf-1-area-0.0.0.1]q

area 2

[R6]ospf 1
[R6-ospf-1]a 2
[R6-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher w123

[R11]ospf 1
[R11-ospf-1]a 2
[R11-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher w123

[R12]ospf 1
[R12-ospf-1]a 2
[R12-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher w123

10.测试

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值