记录每日所学
一、虚链路
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
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