配置接口IP实现直连设备之间能互相通信
配置OSPF实现单区域,使得PC1和PC2之间能互相通信
给各端口配置IP地址
配置路由器R1:
R1(config)#router ospf 100
R1(config-router)#router-id 1.1.1.1
R1(config-router)#network 10.10.10.0 0.0.0.255 area 0
R1(config-router)#network 10.12.12.0 0.0.0.3 area 0
配置路由器R2:
R2(config)#router ospf 100
R2(config-router)#router-id 2.2.2.2
R2(config-router)#network 10.12.12.0 0.0.0.3 area 0
R2(config-router)#network 10.23.23.0 0.0.0.3 area 0
配置路由器R3:
R3(config)#router ospf 100
R3(config-router)#router-id 3.3.3.3
R3(config-router)#network 10.23.23.0 0.0.0.3 area 0
R3(config-router)#network 10.10.20.0 0.0.0.255 area 0
进行测试 :两 个PC 机是否能正常通信。答:可以