issue with bird next hop
- Reply: Stephane Rochoy : "Re: issue with bird next hop"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 15 Jun 2023 10:21:50 UTC
Hi all, i've some issue when using bird with a loopback for an rr . I have the loopback lo1 with the public IP 1.1.1.1. remote 1.1.1.2 is connected via a vlan. The issue is that the netx hop is set to the vlan static IP instead of the local address set in the configuration. What could be the issue? More infos below. Hope It helps. ``` # ifconfig lo1 lo1: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> inet6 ::1 prefixlen 128 inet6 fe80::1%lo1 prefixlen 64 scopeid 0x9 inet 1.1.1.1 netmask 0xffffffff groups: lo nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> ``` and a bird rr ibgp server set like this ``` protocol bgp rr_par_ipv4 { local 1.1.1.1 as 65001; neighbor 1.1.1.1.2 as 65001; default bgp_local_pref 40; rr client; ipv4 { import all; export all; next hop self; };}; ``` route for 1.1.1.2 is : ``` # route -n get 1.1.1.2 route to: 1.1.1.2 destination: 1.1.1.2 gateway: 10.3.1.1 fib: 0 interface: vlan2212 flags: <UP,GATEWAY,HOST,DONE,PROTO1> recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 9000 1 0 # ifconfig vlan2212 vlan2212: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000 options=680703<RXCSUM,TXCSUM,TSO4,TSO6,LRO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> ether 50:65:f3:8b:98:71 inet 10.3.1.2 netmask 0xffffff00 broadcast 10.3.1.255 inet6 fe80::5265:f3ff:fe8b:9871%vlan2212 prefixlen 64 scopeid 0xd groups: vlan vlan: 2212 vlanproto: 802.1q vlanpcp: 0 parent interface: mlxen0 media: Ethernet autoselect (40Gbase-CR4 <full-duplex,rxpause,txpause>) status: active nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> ``` Benoît Chesneau, Enki Multimedia — t. +33608655490 Sent with [Proton Mail](https://proton.me/) secure email.