R1配置
interface GigabitEthernet0/0/0ip address 10.1.12.1 255.255.255.252 interface LoopBack0ip address 1.1.1.1 255.255.255.255 ospf 1 router-id 1.1.1.1 area 0.0.0.0 network 1.1.1.1 0.0.0.0 network 10.1.12.0 0.0.0.3
R2配置
interface GigabitEthernet0/0/0ip address 10.1.12.2 255.255.255.252 interface GigabitEthernet0/0/1ip address 10.1.23.1 255.255.255.252 interface LoopBack0ip address 2.2.2.2 255.255.255.255 ospf 1 router-id 2.2.2.2 area 0.0.0.0 network 10.1.12.0 0.0.0.3 area 0.0.0.1 network 10.1.23.0 0.0.0.3
R3配置
interface GigabitEthernet0/0/0ip address 10.1.23.2 255.255.255.252 interface LoopBack0ip address 3.3.3.3 255.255.255.255 ospf 1 router-id 3.3.3.3 area 0.0.0.1 network 3.3.3.3 0.0.0.0 network 10.1.23.0 0.0.0.3
整体架构图