R1配置
配置IP:interface Serial2/0/0
ip address 12.0.0.1 255.255.255.0
配置回环:interface LoopBack1
ip address 10.1.1.1 255.255.255.252
ospf network-type broadcast
interface LoopBack2
ip address 10.1.1.5 255.255.255.252
ospf network-type broadcast
OSPF配置:ospf 1 router-id 1.1.1.1
area 0.0.0.1
network 10.1.1.1 0.0.0.0
network 10.1.1.4 0.0.0.3
network 12.0.0.0 0.0.0.255
stub
R2配置
配置IP:interface Serial2/0/0
ip address 23.0.0.2 255.255.255.0
interface Serial2/0/1
ip address 12.0.0.2 255.255.255.0
配置回环:interface LoopBack2
ip address 2.2.2.2 255.255.255.0
OSPF配置
ospf 1 router-id 2.2.2.2
引入: import-route direct
area 0.0.0.0
authentication-mode simple cipher 123
network 23.0.0.0 0.0.0.255
area 0.0.0.1
汇总: abr-summary 10.1.1.0 255.255.255.248
network 12.0.0.0 0.0.0.255
stub no-summary
R3配置
配置IP:interface Serial2/0/0
ip address 34.0.0.3 255.255.255.0
interface Serial2/0/1
ip address 23.0.0.3 255.255.255.0
OSPF配置
ospf 1 router-id 3.3.3.3
area 0.0.0.0
authentication-mode simple cipher 123
network 23.0.0.0 0.0.0.255
area 0.0.0.2
network 34.0.0.0 0.0.0.255
vlink-peer 4.4.4.4
R4配置
配置IP:interface Serial2/0/0
ip address 45.0.0.4 255.255.255.0
interface Serial2/0/1
ip address 34.0.0.4 255.255.255.0
OSPF配置
ospf 1 router-id 4.4.4.4
area 0.0.0.0
area 0.0.0.2
network 34.0.0.0 0.0.0.255
vlink-peer 3.3.3.3 simple cipher 123
area 0.0.0.3
network 45.0.0.0 0.0.0.255
nssa no-summary
R5配置
配置IP:interface Serial2/0/0
ip address 56.0.0.5 255.255.255.0
interface Serial2/0/1
ip address 45.0.0.5 255.255.255.0
OSPF配置
ospf 1 router-id 5.5.5.5
asbr-summary 172.16.0.0 255.255.252.0
import-route ospf 2
area 0.0.0.3
network 45.0.0.0 0.0.0.255
nssa
ospf 2 router-id 5.5.5.5
强制下发一条默认路由: default-route-advertise always
area 0.0.0.0
network 56.0.0.0 0.0.0.255
R6配置
配置IP:interface Serial2/0/1
ip address 56.0.0.6 255.255.255.0
配置回环:interface LoopBack1
ip address 172.16.0.1 255.255.255.0
interface LoopBack2
ip address 172.16.1.1 255.255.255.0
interface LoopBack3
ip address 172.16.2.1 255.255.255.0
interface LoopBack4
ip address 172.16.3.1 255.255.255.0
OSPF配置
ospf 1 router-id 6.6.6.6
汇总: asbr-summary 172.16.0.0 255.255.252.0
引入: import-route direct
area 0.0.0.0
network 56.0.0.0 0.0.0.255
试验完成,实现业务互通