bird and OSPF on p2p
Eugene M. Zheganin
emz at norma.perm.ru
Tue Aug 21 16:29:20 CEST 2012
Hi, guys !
I'm trying to use bird/OSPF on a bunch of gre tunnels.
Though I'm using it successfully with ipv6 on same tunnels, I have no
clue why it doesn't announce the networks when on ipv4.
My typical setup is as follows:
VPN HUB <-----WAN/gre/OSPF-----> branch router <--local-network-->
At this time VPN HUB runs quagga/ospfd (due to this problem I'm talking
about). I receive all the routing updates from HUB on a branch router,
but HUB doesn't get anything from a branch router:
HUB:
# ifconfig gre14
gre14: flags=b051<UP,POINTOPOINT,RUNNING,LINK0,LINK1,MULTICAST> metric 0
mtu 1476
tunnel inet 192.168.3.24 --> 192.168.6.191
inet 172.16.3.134 --> 172.16.3.135 netmask 0xffffffff
inet6 fe80::21a:64ff:fe21:8e80%gre14 prefixlen 64 scopeid 0x2b
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
# vtysh
[...]
sh ip ospf nei
[...]
192.168.6.191 1 Full/DROther 38.434s 172.16.3.135
gre14:172.16.3.134 0 0 0
# route -n get 192.168.9.0/27
route: writing to routing socket: No such process
Branch:
# birdc -s /var/run/bird.ctl
BIRD 1.3.8 ready.
bird> show ospf neighbors
ospfv4:
Router ID Pri State DTime Interface Router IP
192.168.3.24 1 full/ptp 00:33 gre0 172.16.3.134
bird> sh route protocol direct1
192.168.6.128/25 dev vr2 [direct1 14:02] * (240)
192.168.9.0/27 dev bridge0 [direct1 14:02] * (240)
172.16.3.134/32 dev gre0 [direct1 14:02] * (240)
bird> sh route filter exportospfv4
192.168.9.0/27 dev bridge0 [direct1 14:02] * (240)
172.16.3.134/32 dev gre0 [direct1 14:02] * (240)
gre0: flags=b051<UP,POINTOPOINT,RUNNING,LINK0,LINK1,MULTICAST> metric 0
mtu 1476
tunnel inet 192.168.6.191 --> 192.168.3.24
inet 172.16.3.135 --> 172.16.3.134 netmask 0xffffffff
inet6 fe80::20d:b9ff:fe20:d980%gre0 prefixlen 64 tentative
scopeid 0x9
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Thanks.
Eugene.
More information about the Bird-users
mailing list