我正在尝试ospfd
在通过 OpenVPN 链接连接的两台主机上设置 Quagga。这些主机具有 VPN IP10.31.0.1
和10.31.0.13
. ospfd
配置非常简单:
hostname bizon
password xxxxxxxxx
enable password xxxxxxxxx
!
log file /var/log/quagga/ospfd.log
!
interface lo
!
interface tun0
ip ospf network point-to-point
ip ospf mtu-ignore
ip ospf cost 10
interface tun1
ip ospf network point-to-point
ip ospf mtu-ignore
ip ospf cost 10
interface tun2
ip ospf network point-to-point
ip ospf mtu-ignore
ip ospf cost 10
!
router ospf
ospf router-id 10.31.0.1
network 10.31.0.0/16 area 0.0.0.0
network 10.119.2.0/24 area 0.0.0.0
redistribute connected
area 0.0.0.0 range 10.0.0.0/8
!
line vty
!
debug ospf event
debug ospf packet all
我在ospfd.log
(日志来自10.31.0.13
)中收到以下错误:
2012/10/05 01:25:28 OSPF: ip_v 4
2012/10/05 01:25:28 OSPF: ip_hl 5
2012/10/05 01:25:28 OSPF: ip_tos 192
2012/10/05 01:25:28 OSPF: ip_len 64
2012/10/05 01:25:28 OSPF: ip_id 64666
2012/10/05 01:25:28 OSPF: ip_off 0
2012/10/05 01:25:28 OSPF: ip_ttl 1
2012/10/05 01:25:28 OSPF: ip_p 89
2012/10/05 01:25:28 OSPF: ip_sum 0xe5d1
2012/10/05 01:25:28 OSPF: ip_src 10.31.0.1
2012/10/05 01:25:28 OSPF: ip_dst 224.0.0.5
2012/10/05 01:25:28 OSPF: Packet from [10.31.0.1] received on link tun1 but no ospf_interface
我不确定下一步该怎么做。我已经多次通过 OpenVPN 进行设置,ospfd
但我使用的是 Debian,现在我使用的是 CentOS 6。Quagga 版本是 0.99.15。我应该尝试获取更新的版本吗?
tun1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.31.0.13 P-t-P:10.31.0.14 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:19888 errors:0 dropped:0 overruns:0 frame:0
TX packets:859 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1207870 (1.1 MiB) TX bytes:70797 (69.1 KiB)
我放弃了与 OpenVPN in
tun
模式的纠缠,并建立了一个tap
基于 OpenVPN 的模式。一切开始按预期工作。尝试明确指定 OSPF 邻居(如此处http://www.freeccnaworkbook.com/workbooks/ccna/configuring-ospf-static-neighbors/)