TL; DR:路由守护进程不更新表。 帮帮我!
考虑两个不同的Linux虚拟机,configuration路由,R1和R2,直接连接在10.0.0.0/24。 在其他接口上都有其他networking。 他们可能想要宣传他们连接的networking,彼此。
两台路由器都可以ping通对方。 当configuration静态路由时,报文转发成功。
但是维护静态路由表是一件痛苦的事情,所以我在两个(下面的configuration)上安装并configuration了Quagga。 尽pipevalidation了我在这些configuration和路由器上的所有function,但是它们的路由表不会互相更新 。
更新 :R1在“show ip ospf neighbors”列表中将R2列为邻居。 但是,R2 不会将R1列为邻居。
由于ping和静态路由工作,我认为它必须是Quggaconfiguration。 有人能发现我做错了什么,并指出了我吗?
R1的zebra.conf:
hostname R1 password *redacted* enable password *redacted* log file /var/log/quagga/zebra.log ! interface eth0 ip address 10.0.0.1/24 ipv6 nd suppress-ra ! interface eth1 ip address 172.31.99.1/24 ipv6 nd suppress-ra ! interface eth2 ip address 10.22.6.0/24 ipv6 nd suppress-ra ! interface eth3 ip address 10.1.0.1/16 ipv6 nd suppress-ra ! interface lo ! ip forwarding ! ! line vty
R1的ospfd.conf:
hostname backbone-ospf password *redacted* enable password *redacted* log stdout ! interface eth0 ip ospf priority 255 ! interface eth1 ! interface eth2 ! interface eth3 ! interface lo ! router ospf network 10.0.0.0/24 area 0.0.0.0 network 10.1.0.0/16 area 0.0.0.0 network 10.2.6.0/24 area 0.0.0.0 network 192.168.99.0/24 area 0.0.0.0 redistribute connected ! line vty !
R2'2 zebra.conf:
hostname R2 password *redacted* enable password *redacted* log file /var/log/quagga/zebra.log ! interface eth0 ip address 10.0.0.12/24 ipv6 nd suppress-ra ! interface eth1 ip address 172.16.0.1/25 ipv6 nd suppress-ra ! interface lo ! ip forwarding ! ! line vty
R2的ospfd.conf:
hostname isp-ospf password *redacted* enable password *redacted* log stdout ! interface eth0 ip ospf priority 0 ! interface eth1 ! interface eth2 ! interface eth3 ! interface lo ! router ospf network 10.0.0.0/24 area 0.0.0.0 network 172.16.0.0/25 area 0.0.0.0 redistibute connected ! line vty