要求:
R1与R4、R5相连属于区域0;
R1与R2相连属于区域1;
R2与R3相连属于区域2;
R4、R5能访问1.1.1.1;2.2.2.2;3.3.3.3
配置如下:
R4:
interface Ethernet0/0
ip address 10.1.14.4 255.255.255.0
ip ospf 110 area 0 \将接口加入到区域0
router ospf 110
router-id 4.4.4.4
network 10.1.14.0 0.0.0.255 area 0 //宣告路由到区域0
R5:
interface Ethernet0/2
ip address 10.1.15.5 255.255.255.0
ip ospf 110 area 0 \将接口加入到区域0
router ospf 110
router-id 5.5.5.5
network 10.1.15.0 0.0.0.255 area 0 //宣告路由到区域0
R1:
interface Ethernet0/0
ip address 10.1.14.1 255.255.255.0
ip ospf 110 area 0 \将接口加入到区域0
interface Ethernet0/1
ip address 10.1.12.1 255.255.255.0
ip ospf 110 are