configurationquagga报告Openvpn VPN子网

我试图使用与RIP2 quagga通过openvpn服务器路由stream量。

目前我遇到了麻烦,因为它报告VPN子网( 172.19.2.x )只是一个IP( 172.19.2.1 )。 我明显错过了一个步骤,但我没有发现任何明显的文件,指出为什么发生这种情况。

我的Draytek(2820)路由器报告它的路由表为:

 Key: C - connected, S - static, R - RIP, * - default, ~ - private * 0.0.0.0/ 0.0.0.0 via 132.93.20.1 WAN2 C 132.93.20.0/ 255.255.254.0 directly connected WAN2 C~ 192.168.10.0/ 255.255.255.0 directly connected LAN R~ 172.19.2.1/ 255.255.255.255 via 192.168.10.10 LAN (2/88050) 

VPN服务器( 192.168.10.10 )上的zebra.confconfiguration是:

 ! -*- zebra -*- hostname jupiter-zebra password [removed] enable password [removed] ! Tried adding this but didn't help ! ip route 192.168.10.0 255.255.255.0 eth0 ! ip route 172.19.2.0 255.255.255.0 tun0 log file /var/log/quagga/zebra.log 

VPN服务器上的ripd.confconfiguration是:

 hostname jupiter-rip2 password [removed] router rip network 192.168.10.0/24 network 172.19.2.0/24 log file /var/log/quagga/ripd.log 

有什么我明显错过,让我的VPN服务器报告它的VPN子网( 172.19.2.x ),而不是只有它的VPN IP( 172.19.2.1 )?

我想你应该允许ospf重新分配内核路由:

OSPF:如何通告OpenVPN服务器的子网?

例:

router ospf ospf router-id 10.0.6.1 redistribute connected redistribute kernel network 10.0.4.0/24 area 0.0.0.0