$ journalctl -u quagga.service ... Sep 27 11:25:29 ubuntu watchquagga[12328]: ospfd state -> up : connect succeeded Sep 27 11:25:29 ubuntu watchquagga[12328]: zebra state -> up : connect succeeded
查看结果
1 2 3 4 5 6
# root @ routerA in / [11:41:51] $ ip route 10.1.1.0/24 via 30.1.1.1 dev eth1 proto zebra metric 20 10.2.1.0/24 dev eth0 proto kernel scope link src 10.2.1.1 30.1.1.0/24 dev eth1 proto kernel scope link src 30.1.1.2 192.168.255.0/24 dev eth3 proto kernel scope link src 192.168.255.1
routerA的路由表出现了 10.1.1.0/24 via 30.1.1.1 dev eth1 proto zebra metric 20
1 2 3 4 5 6 7
# root @ routerB in / [11:39:49] $ ip route 10.1.1.0/24 dev eth0 proto kernel scope link src 10.1.1.1 linkdown 10.2.1.0/24 via 30.1.1.2 dev eth1 proto zebra metric 20 30.1.1.0/24 dev eth1 proto kernel scope link src 30.1.1.1 192.168.20.0/24 dev eth2 proto kernel scope link src 192.168.20.1 linkdown 192.168.30.0/24 dev eth3 proto kernel scope link src 192.168.30.1 linkdown
routerB的路由表出现了 10.2.1.0/24 via 30.1.1.2 dev eth1 proto zebra metric 20