1、R4为ISP,其上只能配置IP地址:R4与其他所有直连设备间使用公有IP;
2、R3---R5/6/7为MGRE环境,R3为中心站点;
3、整个OSPF环境IP地址为172.16.0.0/16;
4、所有设备均可访问R4的环回;
5、减少LSA的更新量,加快收敛,保障更新安全;
6、全网可达
网段划分及各路由器的静态路由到达部分网段:
172.16.0.0/16
借主机位3为划分为8个子网:
172.16.0.0/19 A0
仅需要两个ip地址骨干一172.16.0.0/25-->172.16.0.0/30
多个ip地址需要的骨干网段-172.16.0.128/25-->172.16.0.128/29
终端用户172.16.1.0/25 172.16.1.128/25172.16.31.128/25
172.16.32.0/19 A1
172.16.32.0/25 P2P
172.16.32.128/25 用户
172.16.33.0/25 R1的lo0
172.16.33.128/25 R2的lo0
172.16.34.0/25 R3的lo0
172.16.64.0/19 A2
172.16.64.1/30 R6的g0/0/1
172.16.64.2/30 R11的g0/0/0
172.16.64.5/30 R11的g0/0/1
172.16.64.6/30 R12的g0/0/0
172.16.65.0/25 R11的lo0
172.16.96.0/19 A3
172.16.96.1/30 R7的g0/0/0
172.16.96.2/30 R8的g0/0/0
172.16.96.5/30 R8的g0/0/1
172.16.96.6/30 R9的g0/0/0
172.16.97.0/25 R8的lo0
172.16.128.0/19 A4
172.16.128.1/30 R9的g0/0/1
172.16.128.2/30 R10的g0/0/0
172.16.129.1/25 R9的lo0
172.16.129.129/25 R10的lo0
172.16.160.0/19 RIP协议区域
172.16.160.0/20 R12的RIP协议lo0
172.16.176.0/20 R12的RIP协议lo1
预留备份网段:
172.16.192.0/19
172.16.224.0/19
area0路由配置命令
R4配置命令:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R4
[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 54.1.1.2 24
[R4-GigabitEthernet0/0/1]int g0/0/2
[R4-GigabitEthernet0/0/2]ip add 64.1.1.2 24
[R4-GigabitEthernet0/0/2]int g4/0/0
[R4-GigabitEthernet4/0/0]ip add 74.1.1.2 24
================================================================================================================================================
================================================================================================================================================
================================================================================================================================================
[R4-GigabitEthernet4/0/0]int lo0
[R4-LoopBack0]ip add 4.4.4.4 24
[R4-LoopBack0]q
[R4]q
================================================================================================================================================
================================================================================================================================================
================================================================================================================================================
<R4>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<R4>
R5配置命令:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R5
[R5]int g0/0/2
[R5-GigabitEthernet0/0/2]ip add 54.1.1.1 24
[R5-GigabitEthernet0/0/2]q
[R5]ip route-static 0.0.0.0 0 54.1.1.2
========================================================================================================
========================================================================================================
========================================================================================================
[R5]int Tunnel 0/0/0
[R5-Tunnel0/0/0]ip add 172.16.0.130 29
[R5-Tunnel0/0/0]tunnel-protocol gre p2mp
[R5-Tunnel0/0/0]source GigabitEthernet 0/0/2
[R5-Tunnel0/0/0]nhrp entry 172.16.0.129 34.1.1.1 register
========================================================================================================
========================================================================================================
========================================================================================================
[R5-Tunnel0/0/0]int lo0
[R5-LoopBack0]ip add 172.16.1.1 25
========================================================================================================
========================================================================================================
========================================================================================================
[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.0.0 0.0.255.255
========================================================================================================
========================================================================================================
========================================================================================================
[R5-ospf-1-area-0.0.0.0]int Tunnel 0/0/0
[R5-Tunnel0/0/0]ospf network-type broadcast
[R5-Tunnel0/0/0]ospf dr-priority 0
========================================================================================================
========================================================================================================
========================================================================================================
<R5>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<R5>
area1路由配置命令
R3配置命令:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R3
[R3]int lo0
[R3-LoopBack0]ip add 172.16.34.1 25
[R3-LoopBack0]int g0/0/1
[R3-GigabitEthernet0/0/1]ip add 172.16.32.131 29
[R3-GigabitEthernet0/0/1]int g0/0/2
[R3-GigabitEthernet0/0/2]ip add 34.1.1.1 24
========================================================================================================
========================================================================================================
========================================================================================================
[R3-GigabitEthernet0/0/2]int Tunnel 0/0/0
[R3-Tunnel0/0/0]ip add 172.16.0.129 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]q
[R3]ip route-static 0.0.0.0 0 34.1.1.2
[R3]acl 2000
[R3-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[R3-acl-basic-2000]int g0/0/2
[R3-GigabitEthernet0/0/2]nat outbound 2000
========================================================================================================
========================================================================================================
========================================================================================================
[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.0 0.0.31.255
[R3-ospf-1-area-0.0.0.1]area 0
[R3-ospf-1-area-0.0.0.0]network 172.16.0.129 0.0.0.0
========================================================================================================
========================================================================================================
========================================================================================================
[R3-ospf-1-area-0.0.0.0]int T0/0/0
[R3-Tunnel0/0/0]ospf network-type broadcast
[R3-Tunnel0/0/0]ospf 1
[R3-ospf-1]area 1
[R3-ospf-1-area-0.0.0.1]stub no-summary
========================================================================================================
========================================================================================================
========================================================================================================
[R3-ospf-1-area-0.0.0.1]abr-summary 172.16.32.0 255.255.224.0
[R3-ospf-1-area-0.0.0.1]q
[R3-ospf-1]q
[R3]ip route-static 172.16.32.0 19 NULL 0
========================================================================================================
========================================================================================================
========================================================================================================
[R3]q
<R3>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<R3>
R1配置命令:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R1
[R1]int lo0
[R1-LoopBack0]ip add 172.16.33.1 25
[R1-LoopBack0]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 172.16.32.129 29
[R1-GigabitEthernet0/0/0]q
========================================================================================================
========================================================================================================
========================================================================================================
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 1
[R1-ospf-1-area-0.0.0.1]network 172.16.0.0 0.0.255.255
[R1-ospf-1-area-0.0.0.1]stub
[R1-ospf-1-area-0.0.0.1]q
[R1-ospf-1]q
[R1]q
========================================================================================================
========================================================================================================
========================================================================================================
<R1>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait........
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<R1>
R2配置命令:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R2
[R2]int lo0
[R2-LoopBack0]ip add 172.16.33.129 25
[R2-LoopBack0]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 172.16.32.130 29
[R2-GigabitEthernet0/0/0]q
========================================================================================================
========================================================================================================
========================================================================================================
[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.0.0 0.0.255.255
[R2-ospf-1-area-0.0.0.1]stub
========================================================================================================
========================================================================================================
========================================================================================================
[R2-ospf-1-area-0.0.0.1]q
[R2-ospf-1]q
[R2]q
<R2>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<R2>
area2路由配置命令
R6配置命令:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R6
[R6]int g0/0/2
[R6-GigabitEthernet0/0/2]ip add 64.1.1.1 24
[R6-GigabitEthernet0/0/2]q
[R6]ip route-static 0.0.0.0 0 64.1.1.2
========================================================================================================
========================================================================================================
========================================================================================================
[R6]int Tunnel 0/0/0
[R6-Tunnel0/0/0]ip add 172.16.0.131 29
[R6-Tunnel0/0/0]tunnel-protocol gre p2mp
[R6-Tunnel0/0/0]source GigabitEthernet 0/0/2
[R6-Tunnel0/0/0]nhrp entry 172.16.0.129 34.1.1.1 register
========================================================================================================
========================================================================================================
========================================================================================================
[R6-Tunnel0/0/0]q
[R6]int lo0
[R6-LoopBack0]ip add 172.16.1.129 25
[R6-LoopBack0]int g0/0/1
[R6-GigabitEthernet0/0/1]ip add 172.16.64.1 30
[R6-GigabitEthernet0/0/1]q
========================================================================================================
========================================================================================================
========================================================================================================
[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.0.0 0.0.1.255
[R6-ospf-1-area-0.0.0.0]area 2
[R6-ospf-1-area-0.0.0.2]network 172.16.64.0 0.0.0.255
========================================================================================================
========================================================================================================
========================================================================================================
[R6-ospf-1-area-0.0.0.2]int T0/0/0
[R6-Tunnel0/0/0]ospf network-type broadcast
[R6-Tunnel0/0/0]ospf dr-priority 0
[R6-Tunnel0/0/0]q
========================================================================================================
========================================================================================================
========================================================================================================
[R6]ospf 1
[R6-ospf-1]area 2
[R6-ospf-1-area-0.0.0.2]nssa no-summary
[R6-ospf-1-area-0.0.0.2]abr-summary 172.16.64.0 255.255.224.0
[R6-ospf-1-area-0.0.0.2]q
[R6-ospf-1]q
========================================================================================================
========================================================================================================
========================================================================================================
[R6]acl 2000
[R6-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[R6-acl-basic-2000]int g0/0/2
[R6-GigabitEthernet0/0/2]nat outbound 2000
========================================================================================================
========================================================================================================
========================================================================================================
[R6-GigabitEthernet0/0/2]q
[R6]ip route-static 172.16.64.0 19 NULL 0
========================================================================================================
========================================================================================================
========================================================================================================
<R6>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<R6>
R11配置命令:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R11
[R11]int lo0
[R11-LoopBack0]ip add 172.16.65.1 25
[R11-LoopBack0]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]q
[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.0.0 0.0.255.255
[R11-ospf-1-area-0.0.0.2]nssa
========================================================================================================
========================================================================================================
========================================================================================================
[R11-ospf-1-area-0.0.0.2]q
[R11-ospf-1]q
[R11]q
<R11>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait........
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<R11>
area3路由配置命令
R7配置命令:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R7
[R7]int lo0
[R7-LoopBack0]ip add 172.16.2.1 25
[R7-LoopBack0]int g0/0/2
[R7-GigabitEthernet0/0/2]ip add 74.1.1.1 24
[R7-GigabitEthernet0/0/2]q
[R7]ip route-static 0.0.0.0 0 74.1.1.2
[R7]acl 2000
[R7-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[R7-acl-basic-2000]int g0/0/2
[R7-GigabitEthernet0/0/2]nat outbound 2000
========================================================================================================
========================================================================================================
========================================================================================================
[R7-GigabitEthernet0/0/2]int Tunnel 0/0/0
[R7-Tunnel0/0/0]ip add 172.16.0.132 29
[R7-Tunnel0/0/0]tunnel-protocol gre p2mp
[R7-Tunnel0/0/0]source GigabitEthernet 0/0/2
[R7-Tunnel0/0/0]nhrp entry 172.16.0.129 34.1.1.1 register
========================================================================================================
========================================================================================================
========================================================================================================
[R7-Tunnel0/0/0]q
[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.0.0 0.0.3.255
[R7-ospf-1-area-0.0.0.0]area 3
[R7-ospf-1-area-0.0.0.3]network 172.16.96.0 0.0.0.255
========================================================================================================
========================================================================================================
========================================================================================================
[R7-ospf-1-area-0.0.0.3]int g0/0/1
[R7-GigabitEthernet0/0/1]ip add 172.16.96.1 30
[R7-GigabitEthernet0/0/1]int T0/0/0
[R7-Tunnel0/0/0]ospf network-type broadcast
[R7-Tunnel0/0/0]ospf dr-priority 0
========================================================================================================
========================================================================================================
========================================================================================================
[R7-Tunnel0/0/0]q
[R7]ospf 1
[R7-ospf-1]area 3
[R7-ospf-1-area-0.0.0.3]nssa no-summary
[R7-ospf-1-area-0.0.0.3]abr-summary 172.16.96.0 255.255.224.0
[R7-ospf-1-area-0.0.0.3]q
[R7-ospf-1]q
[R7]ip route-static 172.16.96.0 19 NULL 0
========================================================================================================
========================================================================================================
========================================================================================================
[R7]q
<R7>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait........
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<R7>
R8配置命令:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R8
[R8]int lo0
[R8-LoopBack0]ip add 172.16.97.1 25
[R8-LoopBack0]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]q
[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.0.0 0.0.255.255
[R8-ospf-1-area-0.0.0.3]nssa
========================================================================================================
========================================================================================================
========================================================================================================
[R8-ospf-1-area-0.0.0.3]q
[R8-ospf-1]q
[R8]q
<R8>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<R8>
area4路由配置命令
R9配置命令:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R9
[R9]int g0/0/0
[R9-GigabitEthernet0/0/0]ip add 172.16.96.6 30
[R9-GigabitEthernet0/0/0]q
[R9]int g0/0/1
[R9-GigabitEthernet0/0/1]ip add 172.16.128.1 30
[R9-GigabitEthernet0/0/1]int lo0
[R9-LoopBack0]ip add 172.16.129.1 25
[R9-LoopBack0]q
========================================================================================================
========================================================================================================
========================================================================================================
[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.0 0.0.0.255
[R9-ospf-1-area-0.0.0.3]ospf 2
[R9-ospf-2]area 4
[R9-ospf-2-area-0.0.0.4]network 172.16.128.0 0.0.1.255
[R9-ospf-2-area-0.0.0.4]q
[R9-ospf-2]q
========================================================================================================
========================================================================================================
========================================================================================================
[R9]ospf 1
[R9-ospf-1]import-route ospf 2
[R9-ospf-1]q
========================================================================================================
========================================================================================================
========================================================================================================
[R9]ospf 1
[R9-ospf-1]area 3
[R9-ospf-1-area-0.0.0.3]nssa
========================================================================================================
========================================================================================================
========================================================================================================
[R9-ospf-1-area-0.0.0.3]ospf 2
[R9-ospf-2]default-route-advertise
========================================================================================================
========================================================================================================
========================================================================================================
[R9-ospf-2]q
[R9]ospf 1
[R9-ospf-1]asbr-summary 172.16.128.0 255.255.224.0
[R9-ospf-1]q
[R9]ip route-static 172.16.128.0 19 NULL 0
[R9]q
========================================================================================================
========================================================================================================
========================================================================================================
<R9>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait........
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<R9>
R10配置命令:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R10
[R10]int lo0
[R10-LoopBack0]ip add 172.16.129.129 25
[R10-LoopBack0]int g0/0/0
[R10-GigabitEthernet0/0/0]ip add 172.16.128.2 30
========================================================================================================
========================================================================================================
========================================================================================================
[R10-GigabitEthernet0/0/0]q
[R10]ospf 1 router-id 10.10.10.10
[R10-ospf-1]ar
[R10-ospf-1]area 4
[R10-ospf-1-area-0.0.0.4]network 172.16.0.0 0.0.255.255
========================================================================================================
========================================================================================================
========================================================================================================
[R10-ospf-1-area-0.0.0.4]q
[R10-ospf-1]q
[R10]q
<R10>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<R10>
area5路由配置命令
R12配置命令:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R12
[R12]int g0/0/0
[R12-GigabitEthernet0/0/0]ip add 172.16.64.6 30
[R12-GigabitEthernet0/0/0]int lo0
[R12-LoopBack0]ip add 172.16.160.1 20
[R12-LoopBack0]int lo1
[R12-LoopBack1]ip add 172.16.176.1 20
[R12-LoopBack1]q
========================================================================================================
========================================================================================================
========================================================================================================
[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
[R12-ospf-1-area-0.0.0.2]q
[R12-ospf-1]q
========================================================================================================
========================================================================================================
========================================================================================================
[R12]rip 1
[R12-rip-1]version 2
[R12-rip-1]network 172.16.0.0
[R12-rip-1]q
========================================================================================================
========================================================================================================
========================================================================================================
[R12]ospf 1
[R12-ospf-1]import-route rip
[R12-ospf-1]area 2
[R12-ospf-1-area-0.0.0.2]nssa
[R12-ospf-1-area-0.0.0.2]q
[R12-ospf-1]asbr-summary 172.16.160.0 255.255.224.0
[R12-ospf-1]q
[R12]ip route-static 172.16.160.0 19 NULL 0
========================================================================================================
========================================================================================================
========================================================================================================
<R12>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait........
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<R12>
area1路由信息
R3路由信息:
R1路由信息:
R2路由信息:
area2路由信息
R6路由信息:
R11路由信息:
area3路由信息
R7路由信息:
R8路由信息:
area4路由信息
R9路由信息:
R10路由信息:
area5路由信息
R12路由信息:
area0路由信息
R4路由信息:
R5路由信息:
路由器配置信息
R4配置信息:
<R4>display current-configuration
[V200R003C00]
#
sysname R4
#
board add 0/3 2SA
board add 0/4 1GEC
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
drop illegal-mac alarm
#
wlan ac-global carrier id other ac id 0
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 34.1.1.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 54.1.1.2 255.255.255.0
#
interface GigabitEthernet0/0/2
ip address 64.1.1.2 255.255.255.0
#
interface GigabitEthernet4/0/0
ip address 74.1.1.2 255.255.255.0
#
interface NULL0
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.0
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R4>
R3配置信息:
<R3>display current-configuration
[V200R003C00]
#
sysname R3
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
drop illegal-mac alarm
#
wlan ac-global carrier id other ac id 0
#
set cpu-usage threshold 80 restore 75
#
acl number 2000
rule 5 permit source 172.16.0.0 0.0.255.255
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
ip address 172.16.32.131 255.255.255.248
#
interface GigabitEthernet0/0/2
ip address 34.1.1.1 255.255.255.0
nat outbound 2000
#
interface NULL0
#
interface LoopBack0
ip address 172.16.34.1 255.255.255.128
#
interface Tunnel0/0/0
ip address 172.16.0.129 255.255.255.248
tunnel-protocol gre p2mp
source 34.1.1.1
ospf network-type broadcast
nhrp entry multicast dynamic
#
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 172.16.0.129 0.0.0.0
area 0.0.0.1
abr-summary 172.16.32.0 255.255.224.0
network 172.16.32.0 0.0.31.255
stub no-summary
#
ip route-static 0.0.0.0 0.0.0.0 34.1.1.2
ip route-static 172.16.32.0 255.255.224.0 NULL0
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R3>
R1配置信息:
<R1>display current-configuration
[V200R003C00]
#
sysname R1
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
drop illegal-mac alarm
#
wlan ac-global carrier id other ac id 0
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 172.16.32.129 255.255.255.248
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
ip address 172.16.33.1 255.255.255.128
#
ospf 1 router-id 1.1.1.1
area 0.0.0.1
network 172.16.0.0 0.0.255.255
stub
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R1>
R2配置信息:
<R2>display current-configuration
[V200R003C00]
#
sysname R2
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
drop illegal-mac alarm
#
wlan ac-global carrier id other ac id 0
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 172.16.32.130 255.255.255.248
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
ip address 172.16.33.129 255.255.255.128
#
ospf 1 router-id 2.2.2.2
area 0.0.0.1
network 172.16.0.0 0.0.255.255
stub
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R2>
R5配置信息:
<R5>display current-configuration
[V200R003C00]
#
sysname R5
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
drop illegal-mac alarm
#
wlan ac-global carrier id other ac id 0
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
ip address 54.1.1.1 255.255.255.0
#
interface NULL0
#
interface LoopBack0
ip address 172.16.1.1 255.255.255.128
#
interface Tunnel0/0/0
ip address 172.16.0.130 255.255.255.248
tunnel-protocol gre p2mp
source GigabitEthernet0/0/2
ospf network-type broadcast
ospf dr-priority 0
nhrp entry 172.16.0.129 34.1.1.1 register
#
ospf 1 router-id 5.5.5.5
area 0.0.0.0
network 172.16.0.0 0.0.255.255
#
ip route-static 0.0.0.0 0.0.0.0 54.1.1.2
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R5>
R6配置信息:
<R6>display current-configuration
[V200R003C00]
#
sysname R6
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
drop illegal-mac alarm
#
wlan ac-global carrier id other ac id 0
#
set cpu-usage threshold 80 restore 75
#
acl number 2000
rule 5 permit source 172.16.0.0 0.0.255.255
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
ip address 172.16.64.1 255.255.255.252
#
interface GigabitEthernet0/0/2
ip address 64.1.1.1 255.255.255.0
nat outbound 2000
#
interface NULL0
#
interface LoopBack0
ip address 172.16.1.129 255.255.255.128
#
interface Tunnel0/0/0
ip address 172.16.0.131 255.255.255.248
tunnel-protocol gre p2mp
source GigabitEthernet0/0/2
ospf network-type broadcast
ospf dr-priority 0
nhrp entry 172.16.0.129 34.1.1.1 register
#
ospf 1 router-id 6.6.6.6
area 0.0.0.0
network 172.16.0.0 0.0.1.255
area 0.0.0.2
abr-summary 172.16.64.0 255.255.224.0
network 172.16.64.0 0.0.0.255
nssa no-summary
#
ip route-static 0.0.0.0 0.0.0.0 64.1.1.2
ip route-static 172.16.64.0 255.255.224.0 NULL0
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R6>
R11配置信息:
<R11>display current-configuration
[V200R003C00]
#
sysname R11
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
drop illegal-mac alarm
#
wlan ac-global carrier id other ac id 0
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 172.16.64.2 255.255.255.252
#
interface GigabitEthernet0/0/1
ip address 172.16.64.5 255.255.255.252
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
ip address 172.16.65.1 255.255.255.128
#
ospf 1 router-id 11.11.11.11
area 0.0.0.2
network 172.16.0.0 0.0.255.255
nssa
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R11>
R12配置信息:
<R12>display current-configuration
[V200R003C00]
#
sysname R12
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
drop illegal-mac alarm
#
wlan ac-global carrier id other ac id 0
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 172.16.64.6 255.255.255.252
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
ip address 172.16.160.1 255.255.240.0
#
interface LoopBack1
ip address 172.16.176.1 255.255.240.0
#
ospf 1 router-id 12.12.12.12
asbr-summary 172.16.160.0 255.255.224.0
import-route rip 1
area 0.0.0.2
network 172.16.64.6 0.0.0.0
nssa
#
rip 1
version 2
network 172.16.0.0
#
ip route-static 172.16.160.0 255.255.224.0 NULL0
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R12>
R7配置信息:
<R7>display current-configuration
[V200R003C00]
#
sysname R7
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
drop illegal-mac alarm
#
wlan ac-global carrier id other ac id 0
#
set cpu-usage threshold 80 restore 75
#
acl number 2000
rule 5 permit source 172.16.0.0 0.0.255.255
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
ip address 172.16.96.1 255.255.255.252
#
interface GigabitEthernet0/0/2
ip address 74.1.1.1 255.255.255.0
nat outbound 2000
#
interface NULL0
#
interface LoopBack0
ip address 172.16.2.1 255.255.255.128
#
interface Tunnel0/0/0
ip address 172.16.0.132 255.255.255.248
tunnel-protocol gre p2mp
source GigabitEthernet0/0/2
ospf network-type broadcast
ospf dr-priority 0
nhrp entry 172.16.0.129 34.1.1.1 register
#
ospf 1 router-id 7.7.7.7
area 0.0.0.0
network 172.16.0.0 0.0.3.255
area 0.0.0.3
abr-summary 172.16.96.0 255.255.224.0
network 172.16.96.0 0.0.0.255
nssa no-summary
#
ip route-static 0.0.0.0 0.0.0.0 74.1.1.2
ip route-static 172.16.96.0 255.255.224.0 NULL0
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R7>
R8配置信息:
<R8>display current-configuration
[V200R003C00]
#
sysname R8
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
drop illegal-mac alarm
#
wlan ac-global carrier id other ac id 0
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 172.16.96.2 255.255.255.252
#
interface GigabitEthernet0/0/1
ip address 172.16.96.5 255.255.255.252
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
ip address 172.16.97.1 255.255.255.128
#
ospf 1 router-id 8.8.8.8
area 0.0.0.3
network 172.16.0.0 0.0.255.255
nssa
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R8>
R9配置信息:
<R9>display current-configuration
[V200R003C00]
#
sysname R9
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
drop illegal-mac alarm
#
wlan ac-global carrier id other ac id 0
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 172.16.96.6 255.255.255.252
#
interface GigabitEthernet0/0/1
ip address 172.16.128.1 255.255.255.252
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
ip address 172.16.129.1 255.255.255.128
#
ospf 1 router-id 9.9.9.9
asbr-summary 172.16.128.0 255.255.224.0
import-route ospf 2
area 0.0.0.3
network 172.16.96.0 0.0.0.255
nssa
#
ospf 2
default-route-advertise
area 0.0.0.4
network 172.16.128.0 0.0.1.255
#
ip route-static 172.16.128.0 255.255.224.0 NULL0
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R9>
R10配置信息:
<R10>display current-configuration
[V200R003C00]
#
sysname R10
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
drop illegal-mac alarm
#
wlan ac-global carrier id other ac id 0
#
set cpu-usage threshold 80 restore 75
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
firewall zone Local
priority 15
#
interface GigabitEthernet0/0/0
ip address 172.16.128.2 255.255.255.252
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
ip address 172.16.129.129 255.255.255.128
#
ospf 1 router-id 10.10.10.10
area 0.0.0.4
network 172.16.0.0 0.0.255.255
#
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R10>
联通测试:
访问公网(4.4.4.4 ):
area1 区域内外互通:
area2 区域内外互通:
area3 区域内外互通:
area4区域内外互通:
area5区域内外互通:
area0的R5区域外互通: