两个路由和一个三层交换机的OSPF如何分别配置?

2025-04-05 23:10:06
推荐回答(2个)
回答1:

Switch3:
router ospf 20
network 192.168.2.0 0.0.0.255 a 0
router1:
router ospf 20
network 192.168.2.0 0.0.0.255 a 0
network 192.168.3.0 0.0.0.255 a 0
router2:
router ospf 20
network 172.16.2.0 0.0.0.255 a 0
network 192.168.3.0 0.0.0.255 a 0

route-id 自动选举。

回答2:

swich3
router ospf 10
network 192.168.0.0 0.0.255.255 area 0

Router1
router ospf 10
network 192.168.0.0 0.0.255.255 area 0

Router2
router ospf 10
network 0.0.0.0 255.255.255.255 area 0

OSPF这块只需这样