
注意:我已將其發佈在 SuperUser 上,但在這裡重新發布是因為我認為它可能更合適。
我正在嘗試將 Quagga 配置為使用 OSPFv3 在運行 OpenVPN(tun 模式)的兩個 OpenWrt 路由器之間建立正確的 IPv6 路由。我知道隧道工作正常,因為如果我手動配置路由它就可以工作。
兩台路由器在 tun0 介面上都有一個連結本地位址,我實際上可以看到路由器之間的 OSPFv3 封包,但路由並未在路由表中設定。我還想指出 OSPFv2 確實有效,因此這可能不是權限問題。
我附加了兩個路由器的 ospf6d.conf 文件,如果您有任何有關可能的錯誤配置的見解,我將不勝感激。
OpenVPN伺服器端:
hostname gateway
password *********
enable password *********
log file /tmp/zebra-ospf6d.log
!
!
!
interface default
ipv6 ospf6 passive
!
interface br-lan
ipv6 ospf6 passive
!
interface eth0
ipv6 ospf6 passive
!
interface eth0.1
ipv6 ospf6 passive
!
interface lo
ipv6 ospf6 passive
!
interface pppoe-wan
ipv6 ospf6 passive
!
interface tun0
no ipv6 ospf6 passive
!
interface wlan0
ipv6 ospf6 passive
!
interface tun1
ipv6 ospf6 passive
!
interface tun2
ipv6 ospf6 passive
!
router ospf6
router-id 192.168.92.2
redistribute kernel
interface br-lan area 0.0.0.0
interface tun0 area 0.0.0.0
interface tun1 area 0.0.0.0
interface tun2 area 0.0.0.0
area 0.0.0.0 range 2000::/3
area 0.0.0.0 range fc00::/7
!
line vty
!
end
OpenVPN 用戶端:
hostname gateway
password *********
enable password *********
log file /tmp/zebra-ospf6d.log
!
!
!
interface default
ipv6 ospf6 passive
!
interface br-lan
ipv6 ospf6 passive
!
interface eth0
ipv6 ospf6 passive
!
interface eth0.1
ipv6 ospf6 passive
!
interface lo
ipv6 ospf6 passive
!
interface pppoe-wan
ipv6 ospf6 passive
!
interface tun0
no ipv6 ospf6 passive
!
interface tun1
ipv6 ospf6 passive
!
interface wlan0
ipv6 ospf6 passive
!
interface wlan1
ipv6 ospf6 passive
!
router ospf6
router-id 192.168.92.1
redistribute kernel
interface br-lan area 0.0.0.0
interface tun0 area 0.0.0.0
interface tun1 area 0.0.0.0
area 0.0.0.0 range 2000::/3
area 0.0.0.0 range fc00::/7
!
line vty
!
end
謝謝你!