Page MenuHomePhabricator

SNMP BGP 32 bit AS number fail
Open, HighPublicBUG

Description

Using "large" AS numbers in BGP configuration works. When using SNMP to monitor it doen not work.

Configuration:

set protocols bgp 4200000001 address-family ipv4-unicast network 10.230.231.0/24
set protocols bgp 4200000001 address-family ipv4-unicast network 10.230.232.0/24
set protocols bgp 4200000001 address-family ipv4-unicast network 10.230.233.0/24
set protocols bgp 4200000001 neighbor 10.230.230.1 address-family ipv4-unicast prefix-list export 'ipv4-out'
set protocols bgp 4200000001 neighbor 10.230.230.1 remote-as '65074'
set protocols bgp 4200000001 neighbor 10.230.230.5 address-family ipv4-unicast prefix-list export 'ipv4-out'
set protocols bgp 4200000001 neighbor 10.230.230.5 remote-as '65085'
set protocols bgp 4200000001 neighbor 10.230.231.2 address-family ipv4-unicast prefix-list export 'ipv4-out'
set protocols bgp 4200000001 neighbor 10.230.231.2 remote-as '4200000001'
set protocols bgp 4200000001 parameters graceful-restart stalepath-time '30'
set protocols bgp 4200000001 parameters router-id '10.230.230.253'

snmpwalk:

root@r1-bgp:~# snmpwalk -v3  -l authPriv -u XXXXXX -a SHA -A "XXXXX"  -x AES -X "XXXXX" localhost .1.3.6.1.2.1.15.2
SNMPv2-SMI::mib-2.15.2.0 = INTEGER: -94967295

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.2.0-rc8
Why the issue appeared?
Will be filled on close

Event Timeline

aopdal created this task.Nov 23 2018, 12:31 PM
syncer triaged this task as High priority.Dec 1 2018, 6:06 PM
syncer assigned this task to c-po.
syncer added a project: VyOS 1.3 Equuleus.
pasik added a subscriber: pasik.Dec 20 2018, 12:25 PM

It is not a bug in VyOS self. If you look inside the description of this oid:

http://oidref.com/1.3.6.1.2.1.15.2

you see that it is defined as 16 bit int if you use SNMPv2-SMI the 32bit int is defined in BGP4-MIB see https://tools.ietf.org/html/rfc4273.
So VyOS must be delivered with BGP-4 mib this can be archived by:

https://wiki.debian.org/SNMP

We must include the right mibs and push them into the snmp config.

Merijn added a subscriber: Merijn.Jan 5 2019, 12:06 AM

Seems duplicate with https://phabricator.vyos.net/T366
If we use the Cisco BGP MIBv2 we solve both issues.

c-po added a comment.Jan 5 2019, 10:01 AM

Where to get those MIBs? should be simply to test before adding it to the iso

https://www.shrubbery.net/mibs/BGP4-MIB.txt
We can start with this like @rherold suggests since FRR supports BGP4 MIB.

@merjin @c-po please have a look to the debian wiki page especially to the mibs-downloader.