Hi, I have a weird setup with a transit. My next-hop is 2a03:94e0:feff:: (with a multihop session) which is reachable via 2a03:94e0:17ff::1 which is on-link on eno1. (your should already tear blood here) So, when I establish the session, the next-hop couldn’t be resolved and the route is marked as unreachable. e.g. 2a00:9600::/47 unreachable [bgp_terrahost_ipv6 12:32:10.864 from 2a03:94e0:feff::] * (100/-) [AS25605i] Type: BGP univ BGP.origin: IGP BGP.as_path: 203629 6939 3356 25605 BGP.next_hop: 2a03:94e0:feff:: BGP.local_pref: 100 So, for now I’m just exporting route with a next-hop different of 2a03:94e0:feff:: and I added a default route (ip -6 r a default via 2a03:94e0:17ff::1 dev eno1 onlink) to a least do the necessary routing on those. 40 protocol kernel kernel_ipv6 { 41 learn; 42 persist; 43 ipv6 { 44 import all; 45 export where bgp_next_hop != 2a03:94e0:feff::; 46 }; 47 } This seems to be a bit ugly for me, so I have to questions: * Is it possible to handle with on-link next-hop with bird? * I think not, so is there a less ugly work-around? 75 protocol static static_terrahost_ipv6 { 76 ipv6 { 77 import all; 78 }; 80 route 2a03:94e0:feff::/128 recursive 2a03:94e0:17ff::1; 81 route 2a03:94e0:17ff::1/128 via "eno1"; 82 } 257 protocol bgp bgp_terrahost_ipv6 from UPSTREAM_IPv6 { 258 description "terrahost"; 259 neighbor 2a03:94e0:feff:: as 203629; 260 multihop 3; 261 262 ipv6 { 263 import filter bgp_filter_terrahost_in_ipv6; 264 }; 265 } Regards, -- Alarig
On Thu, Sep 12, 2019 at 02:19:49PM +0200, Alarig Le Lay wrote:
Hi,
I have a weird setup with a transit. My next-hop is 2a03:94e0:feff:: (with a multihop session) which is reachable via 2a03:94e0:17ff::1 which is on-link on eno1. (your should already tear blood here)
So, when I establish the session, the next-hop couldn’t be resolved and the route is marked as unreachable. ... This seems to be a bit ugly for me, so I have to questions: * Is it possible to handle with on-link next-hop with bird? * I think not, so is there a less ugly work-around?
Hi Perhaps by setting 'gw' directly in BGP import filter? -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
Hi, On jeu. 12 sept. 14:59:15 2019, Ondrej Zajicek wrote:
Perhaps by setting 'gw' directly in BGP import filter?
If I set 'gw' in the import filter, all the routes are filtered, and still marked as unreachable in the output of 'show route all filtered table master6' I also tried to set 'bgp_next_hop' but it’s also marked as unreachable even if I have the route in the bird routing table. bird> show route all for 2600:3402:200:227::2 Table master6: 2600:3400::/28 unicast [ibgp_regis_ipv6 2019-09-13 from 2a0e:f42:fffe::3] * (100/20) [AS4181i] via fe80::6c4b:84ff:fea2:1311 on tinc0 Type: BGP univ BGP.origin: IGP BGP.as_path: 204092 34019 6939 4181 BGP.next_hop: 2a00:5884::1 fe80::5287:89ff:fef0:ce81 BGP.med: 50 BGP.local_pref: 100 BGP.community: (64496,100) unreachable [bgp_terrahost_ipv6 15:13:32.658 from 2a03:94e0:feff::] (100/-) [AS4181i] Type: BGP univ BGP.origin: IGP BGP.as_path: 203629 6939 4181 BGP.next_hop: 2a03:94e0:17ff::1 BGP.local_pref: 100 bird> show route all for 2600:3402:200:227::2 Table master6: 2600:3400::/28 unicast [ibgp_regis_ipv6 2019-09-13 from 2a0e:f42:fffe::3] * (100/20) [AS4181i] via fe80::6c4b:84ff:fea2:1311 on tinc0 Type: BGP univ BGP.origin: IGP BGP.as_path: 204092 34019 6939 4181 BGP.next_hop: 2a00:5884::1 fe80::5287:89ff:fef0:ce81 BGP.med: 50 BGP.local_pref: 100 BGP.community: (64496,100) unreachable [bgp_terrahost_ipv6 15:21:01.947 from 2a03:94e0:feff::] (100/-) [AS4181i] Type: BGP univ BGP.origin: IGP BGP.as_path: 203629 6939 4181 BGP.next_hop: 2a03:94e0:feff:: BGP.local_pref: 100 bird> show route all for 2a00:5884::1 Table master6: 2a00:5884::/64 unicast [ospf_ipv6 2019-09-12] E1 (150/20) [89.234.186.31] via fe80::6c4b:84ff:fea2:1311 on tinc0 Type: OSPF-E1 univ bird> show route all for 2a03:94e0:17ff::1 Table master6: 2a03:94e0:17ff::1/128 unicast [static_terrahost_ipv6 2019-09-12] * (200) dev eno1 Type: static univ unicast [kernel_ipv6 2019-09-12] (10) dev eno1 Type: inherit univ bird> show route all for 2a03:94e0:feff:: Table master6: 2a03:94e0:feff::/128 unicast [static_terrahost_ipv6 2019-09-12] * (200) via 2a03:94e0:17ff::1 on eno1 Type: static univ -- Alarig
participants (2)
-
Alarig Le Lay -
Ondrej Zajicek