Monitor BGP peers under VRF using SNMP Cat9300/IOS-XE
I'm trying to monitor BGP peers under VRF IPv4 unicast, using SNMP context. But seems as BGP peers have the same IPv4 addresses, I'm unable to retrieve the correct BGP Status for the peer on SNMP, despite context/VRF definition.
Here is my configuration for test :
vrf definition 100 address-family ipv4 snmp context CTX_100 vrf definition 101 address-family ipv4 snmp context CTX_101 ! snmp-server context CTX_100 snmp-server context CTX_101 ! snmp-server user SNMP_100 SNMP_100 v3 auth sha PrivAuth priv aes 128 PrivPass snmp-server user SNMP_101 SNMP_101 v3 auth sha PrivAuth priv aes 128 PrivPass ! snmp-server group SNMP_100 v3 priv context CTX_100 read VIEW_100 snmp-server view VIEW_100 iso included snmp-server group SNMP_101 v3 priv context CTX_101 read VIEW_101 snmp-server view VIEW_101 iso included
Here are my 2 BGP neighbors configured in 2 differents VRFs
The problem happens when I shutdown one peer, the MIB does not reflect it, I can still see it up and running. If I shutdown the other BGP peer, then the MIB reflects the shutdown. It means that only one peer is shown under the MIB, despite VRF/SNMP context polling?
Is there a way on Catalyst 9300 / IOS-XE to reflect BGP peer status using SNMP polling under VRF correctly ? Seems it works fine under IOS-XR, but can't find a way on IOS-XE 16.12 or 17.04 to run it correctly. And can't find a documentation that could explain it's not possible or possible.
Can it be linked to the fact that I've 2 BGP peers under 2 differents VRF running with the same IP addresses ?
Join us for the next Catalyst Tuesday session on March 9 - Enterprise Campus BGP EVPN Solution Overview :
This session will cover the Enterprise BGP EVPN Solution in the Campus using the Catalyst 9K platform. We will discuss the major drivers behind ...
Community Live- ISR1100X-4G and ISR1100X-6G Platform Overview and Architecture
(Live event - Tuesday, 23 March, 2021 at 10:00 am Pacific/ 1:00 pm Eastern / 7:00 pm Paris)-
This event will have place on Tuesday 23rd, March 2021 at 10:00 hrs PDT&...
Cisco Secure Network Access is helping IT to bridge the gap between what is essential to the business and what the network delivers and to build the next-generation campus network for an unplugged and uninterrupted experience.
Learn more about how these w...
(view in My Videos)
Community Live- New Additions to the Catalyst 8000 Family
(Live event - Tuesday, 23 February, 2021 at 10:00 am Pacific/ 1:00 pm Eastern / 7:00 pm Paris)-
This event had place on Tuesday 23rd, February 2021 at 10:00 hrs PDT...
This event had place on Tuesday 23rd, February 2021 at 10hrs PDT
Designed for an intent-based network, the Cisco Catalyst 8000 Edge Platforms family offers best-in-class networking and security combined. The platforms, available in b...