RIP OSPF配置

单区域的RIP和OSPF的配置:
RIP:
r3:
router rip
network 192.168.1.0
network 192.168.2.0
r4:
router rip
network 192.168.2.0
network 192.168.3.0
r5:
router rip
network 192.168.3.0
ospf:
r3:
router ospf 1
network 192.168.1.0 0.0.0.255  area 0
network 192.168.2.0 0.0.0.255 area 0
r4:
router ospf 2
network 192.168.2.0 0.0.0.255 area 0
network 192.168.3.0 0.0.0.255 area 0
r5:
router ospf 3
network 192.168.3.0 0.0.0.255 area  0
O    192.168.1.0/24 [110/129] via 192.168.3.1, 00:29:13, Serial0/0
O    192.168.2.0/24 [110/128] via 192.168.3.1, 00:29:13, Serial0/0
C    192.168.3.0/24 is directly connected, Serial0/0

你可能感兴趣的:(职场,配置,休闲,rip,ospf)