Community discussions

MikroTik App
 
frittentheke
newbie
Topic Author
Posts: 45
Joined: Mon Dec 24, 2012 1:12 am
Location: Germany

BGP IPv6 - How to announce a /32 or /29 block if only some /64 are in the routing table?

Wed Feb 21, 2024 11:48 am

I am have multiple BGP upstreams to which I'd like to announce our IPv6 BGP network(s), the whole /29 or maybe a few /32s.

I added the prefix to an IPV6 address-list bgp-networks, just like I did for IPv4 and used that for the BGP connection:
 1   name="upstream--v6" 
     remote.address=REDACTED:1 .as=99999
     local.default-address=REDACTED:2 .role=ebgp 
     routing-table=main router-id=127.0.0.1 templates=default as=MYAS address-families=ipv6 
     output.filter-chain=bgp-out-v6 .network=bgp-networks .keep-sent-attributes=yes 
     input.filter=bgp-in-v6
Looking at the outgoing BGP announcements, I noticed I am not announcing the network to my peers.
The problem likely is, that I am only using a few /64 internally yet, so those are the only routes in the routing table.
And according to the BGP documentation (https://help.mikrotik.com/docs/display/ROS/BGP), which says

The network is sent only if a matching IGP route exists in the routing table.

I cannot have BGP announce the whole /29 this way.



I there a way to achieve this? Via a less specific /29 static or even blackhole route maybe?
 
User avatar
baragoon
Member
Member
Posts: 310
Joined: Thu Jan 05, 2017 10:38 am
Location: Kyiv, UA
Contact:

Re: BGP IPv6 - How to announce a /32 or /29 block if only some /64 are in the routing table?  [SOLVED]

Wed Feb 21, 2024 11:52 am

/ipv6 route
add blackhole dst-address=2001:db8::/32
 
frittentheke
newbie
Topic Author
Posts: 45
Joined: Mon Dec 24, 2012 1:12 am
Location: Germany

Re: BGP IPv6 - How to announce a /32 or /29 block if only some /64 are in the routing table?

Wed Feb 21, 2024 12:39 pm

/ipv6 route
add blackhole dst-address=2001:db8::/32
Thanks, that just worked!
 
User avatar
baragoon
Member
Member
Posts: 310
Joined: Thu Jan 05, 2017 10:38 am
Location: Kyiv, UA
Contact:

Re: BGP IPv6 - How to announce a /32 or /29 block if only some /64 are in the routing table?

Wed Feb 21, 2024 1:12 pm

My pleasure.
Now you may check "Resolved" for this topic.

Who is online

Users browsing this forum: No registered users and 0 guests