Closed Nuyek closed 1 month ago
Hello!
Thank you very much for report.
That's quite curious error. I'll try to replicate it in lab.
We've reworked IPv6 announce logic completely: https://github.com/pavel-odintsov/fastnetmon/commit/5ed76a49ad81b760cf1a594c92db69c230bc775b and switched it to our own BGP crafting logic: https://github.com/pavel-odintsov/fastnetmon/commit/af49358307aba2e07b97d1205083ecda20b0d62c
As nice addition we added separate fields for next hop IPv6 configuration:
I can confirm that following configuration works just fine:
# GoBGP integration
gobgp = on
# Configuration for IPv4 announces
gobgp_next_hop = 0.0.0.0
gobgp_announce_host = on
gobgp_announce_whole_subnet = off
gobgp_community_host = 65001:666
gobgp_community_subnet = 65001:777
# Configuration for IPv6 announces
gobgp_next_hop_ipv6 = ::
gobgp_next_hop_host_ipv6 = ::
gobgp_next_hop_subnet_ipv6 = ::
gobgp_announce_host_ipv6 = on
gobgp_announce_whole_subnet_ipv6 = on
gobgp_community_host_ipv6 = 65001:666
gobgp_community_subnet_ipv6 = 65001:777
Output:
/opt/fastnetmon-community/libraries/gobgp_3_12_0/gobgp global rib -a ipv6
Network Next Hop AS_PATH Age Attrs
*> fb::2/128 :: 00:00:05 [{Origin: ?} {Communities: 65001:666}]
*> fb::3/128 :: 00:00:03 [{Origin: ?} {Communities: 65001:666}]
When setting
gobgp_next_hop_ipv6 = ::
no route automatically gets created in gobgp on IPv6 address ban.OS: Debian 12 Fastnetmon version: 1.2.7
Steps to Reproduce
gobgp_next_hop_ipv6 = ::
in /etc/fastnetmon.confI noticed if I add a route manually with
gobgp global rib add -a ipv6
it works correctly and the nexthop address is shown as :: undergobgp global rib -a ipv6