如图所示:
配置:
RTA :
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
ospf 1 area 0.0.0.1
#
interface LoopBack1
ip address 192.168.0.1 255.255.255.0
ospf 1 area 0.0.0.1
#
interface LoopBack2
ip address 192.168.1.1 255.255.255.0
ospf 1 area 0.0.0.1
#
interface LoopBack3
ip address 192.168.2.1 255.255.255.0
ospf 1 area 0.0.0.1
#
interface LoopBack4
ip address 192.168.3.1 255.255.255.0
ospf 1 area 0.0.0.1
#
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 10.0.0.1 255.255.255.0
ospf 1 area 0.0.0.1
#
ospf 1
area 0.0.0.1
#
RTB:
#
ospf 1
area 0.0.0.0
area 0.0.0.1
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
ospf 1 area 0.0.0.0
#
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 10.0.0.2 255.255.255.0
ospf 1 area 0.0.0.1
#
interface GigabitEthernet0/2
port link-mode route
combo enable copper
ip address 20.0.0.1 255.255.255.0
ospf 1 area 0.0.0.0
#
RTC:
#
ospf 1
area 0.0.0.0
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
ospf 1 area 0.0.0.0
#
interface GigabitEthernet0/2
port link-mode route
combo enable copper
ip address 20.0.0.2 255.255.255.0
ospf 1 area 0.0.0.0
#
check the ospf peer :
check the routing-table :
summary :
不通的区域学过来的路由
1和2类LSA生成区域内OSPF路由———————O_Intra
3类LSA生成区域间路由———————————-O_Inter
5类LSA生成AS外部路由———————————-O_ASE