虚链路、重分发与特殊区域

记录每日所学

一、虚链路

1、使用场合:特殊情况,一个非骨干区域跨非骨干区域连接Area 0时
2、作用:非骨干区域获取骨干区域的路由信息lsdb

二、特殊区域

1、末梢——阻止4、5类LSA传输进stub区域,由ABR产生默认路由指向stub
2、完全末梢——阻止3、4、5类LSA传输进stub区域,由ABR产生默认路由指向stub
3、次末节——阻止4、5类LSA传输进ospf区域,将5类的LSA转换成7类的LSA,由ABR将7类LSA再次转换变为5类LSA
4、完全次末节——阻止3、4、5类LSA传输进ospf区域,并下发一条默认路由

实验:
虚链路、重分发与特殊区域
AR1配置:
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 10.1.1.1 24
[Huawei-GigabitEthernet0/0/0]undo shutdown
Info: Interface GigabitEthernet0/0/0 is not shutdown.
Huawei-GigabitEthernet0/0/0]int loop 0
[Huawei-LoopBack0]ip address 1.1.1.1 32
[Huawei-LoopBack0]qu
[Huawei]
[Huawei]ospf 1 router-id 1.1.1.1
[Huawei-ospf-1]area 1
[Huawei-ospf-1-area-0.0.0.1]network 10.1.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.1]network 1.1.1.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.1]qu
[Huawei-ospf-1]area 1
[Huawei-ospf-1]stub

AR2配置: sys

Enter system view, return user view with Ctrl+Z.
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 10.1.1.2 24
[Huawei-GigabitEthernet0/0/0]undo shutdown
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 23.1.1.1 24
[Huawei-GigabitEthernet0/0/1]undo shutdown
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[Huawei-GigabitEthernet0/0/1]int loop 0
[Huawei-LoopBack0]ip address 2.2.2.2 32
[Huawei-LoopBack0]qu
[Huawei]ospf 1 router-id 2.2.2.2
[Huawei-ospf-1]area 1
[Huawei-ospf-1-area-0.0.0.1]network 10.1.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.1]qu
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]network 23.1.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]qu
[Huawei-ospf-1]area 1
[Huawei-ospf-1]stub no-summary
AR3配置:
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add
[Huawei-GigabitEthernet0/0/0]ip address 34.1.1.1 24
[Huawei-GigabitEthernet0/0/0]undo shutdown
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 23.1.1.2 24
[Huawei-GigabitEthernet0/0/1]undo shutdown
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[Huawei-GigabitEthernet0/0/1]int loop 0
[Huawei-LoopBack0]ip address 3.3.3.3 32
[Huawei-LoopBack0]qu
[Huawei]ospf 1 router-id 3.3.3.3
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]network 23.1.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]qu
[Huawei-ospf-1]area 2
[Huawei-ospf-1-area-0.0.0.2]network 34.1.1.0 0.0.0.255
[Huawei-ospf-1]qu
[Huawei]
AR4配置:
dis current-configuration

[V200R003C00]

sysname AR4

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 45.1.1.1 255.255.255.0

interface GigabitEthernet0/0/2

interface NULL0

interface LoopBack0
ip address 4.4.4.4 255.255.255.255

ospf 1 router-id 4.4.4.4
area 0.0.0.2
network 4.4.4.4 0.0.0.0
network 34.1.1.0 0.0.0.255
vlink-peer 3.3.3.3
area 0.0.0.3
network 45.1.1.0 0.0.0.255
nssa no-summary

user-interface con 0
authentication-mode password
idle-timeout 0 0
user-interface vty 0 4
user-interface vty 16 20

wlan ac

return

AR5的配置:

sysname AR5

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 56.1.1.1 255.255.255.0

interface GigabitEthernet0/0/1
ip address 45.1.1.2 255.255.255.0

interface GigabitEthernet0/0/2

interface NULL0

interface LoopBack0
ip address 5.5.5.5 255.255.255.255

ospf 1 router-id 5.5.5.5
import-route rip 1 cost 100
area 0.0.0.3
network 5.5.5.5 0.0.0.0
network 45.1.1.0 0.0.0.255
nssa

rip 1
undo summary
default-route originate
version 2
network 56.0.0.0
import-route ospf 1 cost 0

user-interface con 0
authentication-mode password
idle-timeout 0 0
user-interface vty 0 4
user-interface vty 16 20

wlan ac

return

AR6的配置:

sysname AR6

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 56.1.1.2 255.255.255.0

interface GigabitEthernet0/0/1

interface GigabitEthernet0/0/2

interface NULL0

interface LoopBack0
ip address 6.6.6.6 255.255.255.255

rip 1
undo summary
version 2
network 6.0.0.0
network 56.0.0.0

user-interface con 0
authentication-mode password
idle-timeout 0 0
user-interface vty 0 4
user-interface vty 16 20

wlan ac

return

测试连通性:
虚链路、重分发与特殊区域