分别配置不同的路由器:
R1:
system-view
sysname r1
interface gigabitethernet 0/0/0
ip address 10.1.1.1 24
interface loopback 0
ip address 1.1.1.1 32
ospf 1 router-id 1.1.1.1
area 0
network 10.1.1.0 0.0.0.255
R2:
system-view
sysname r2
interface gigabitethernet 0/0/0
ip address 10.1.1.2 24
interface loopback 0
ip address 2.2.2.2 32
ospf 1 router-id 2.2.2.2
area 0
network 10.1.1.0 0.0.0.255
R3:
system-view
sysname r3
interface gigabitethernet 0/0/0
ip address 10.1.1.3 24
interface loopback 0
ip address 3.3.3.3 32
ospf 1 router-id 3.3.3.3
area 0
network 10.1.1.0 0.0.0.255
R4:
system-view
sysname r4
interface gigabitethernet 0/0/0
ip address 10.1.1.4 24
interface loopback 0
ip address 4.4.4.4 32
ospf 1 router-id 4.4.4.4
area 0
network 10.1.1.0 0.0.0.255
注意:DR的单点故障的解决方式通过通过设置BDR对DR进行备份