Page MenuHomeVyOS Platform

BGP listen limit Increase via CLI command
Confirmed, NormalPublicFEATURE REQUEST

Description

Yesterday, I went through an issue where the BGP daemon crashed when I configured a 1000 peers. I was discussing about this in slack and an engineer responded with this

I just spotted that in FRR each BGP instance has a limit of 100 peers and this cannot be changed in VyOS from CLI. :(
You can try to fix it in place and check with:

sudo vtysh -c 'conf' -c 'router bgp YOUR_ASN_HERE' -c 'bgp listen limit 10000'

If you can crate a feature request in https://phabricator.vyos.net/, this would be great - the feature does not seems to be hard to add.

Hence creating a feature request :) Thanks

Details

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

Event Timeline

zsdc changed the task status from Open to Confirmed.Aug 5 2022, 12:16 PM
zsdc triaged this task as Normal priority.
zsdc changed Difficulty level from Unknown (require assessment) to Normal (likely a few hours).

It is already present in 1.4

vyos@r14:~$ show conf com | match bgp
set protocols bgp listen limit '1000'
set protocols bgp listen range 192.0.2.0/24 peer-group 'FOO'
set protocols bgp local-as '65001'
set protocols bgp peer-group FOO remote-as '65001'

We also need to increase opened file descriptors (ulimit -n) to listen limit + some margin.
And consider adding a warning about increasing net.core.optmem_max for systems with a limit of more than 100 peers.