Page MenuHomeVyOS Platform

[BGP] default no-ipv4-unicast - by default
Closed, ResolvedPublicFEATURE REQUEST


Hi team.

I would like to add a command by default , it is set protocols bgp parameters default no-ipv4-unicast when you want to configure bgp . I know the default behavior is enable the IPv4 unicast address family is announced to all neighbors , but it brings the following issues :

1-if you don't want to announce the ipv4 NLRI , you should apply it and reconfigure the neighbors .
2 -if the rules/route-map is not setting correctly , you can redistribute ipv4 prefix inside other NLRI(CPU-LOAD)
3- there many type the BGP NLRI (VPNv4 routes, VPNv6 routes signalling for multicast VPNs, FlowSpec information, ...),it would be a premature conclusion to assume that they using its BGP IPv4 session.
4- many vendors don't enable it by default (ipv4 announce)
example in FRR :

vyos# show running-config bgpd no-header
frr version 7.5.1-20201222-185-gb3f4ff1d9
frr defaults traditional
hostname vyos
service integrated-vtysh-config
router bgp 65001
 no bgp ebgp-requires-policy
 no bgp default ipv4-unicast
 no bgp network import-check


Difficulty level
Normal (likely a few hours)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Config syntax change (migratable)
Issue type
Feature (new functionality)

Event Timeline

Similar task T2315, also there is bug related T1976, etc.
It should be a migration script that determines ip/ipv6 neighbor and set neighbor to properly afi.
So there is one question, how to determine which afi we should to use if we see "peer-group" in configuration?
I don't think that we can implement it in 1.3 as it uses an old codebase.

Thanks for you comment ! it's good consider that options

@Viacheslav, when we use a migrator we should enable the ipv4 afi for each and every ipv4 neighbor if its not configured explicitly. What do you think? If a peer group is configured for that neighbour, too - that will be no issue.

What you think?

c-po triaged this task as Normal priority.
c-po removed a project: VyOS 1.3 Equuleus.
c-po changed Difficulty level from Unknown (require assessment) to Normal (likely a few hours).
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Config syntax change (migratable).
c-po set Issue type to Feature (new functionality).