All MIBs › BGP-MIB
Organization: IETF IDR Working Group
Last Updated: 1999-02-18
Category: BGP, IETF Standards
Description:
Implements IETF RFC 4273 management objects for Border Gateway Protocol version 4 peers and routes.
Imported Objects
From SNMPv2-CONF
| MODULE-COMPLIANCE | |
| OBJECT-GROUP |
From SNMPv2-SMI
| Counter32 | |
| Integer32 | |
| IpAddress | |
| MODULE-IDENTITY | |
| OBJECT-IDENTITY | |
| OBJECT-TYPE | |
| mib-2 |
What Is BGP-MIB?
BGP-MIB is described in this instance as a compatibility stub pointing to the authoritative BGP4-MIB (RFC 4273), retained to preserve backward compatibility for the legacy bgp OID and bgpPeerRemoteAddr object used by older management tools. It still models core Border Gateway Protocol peer session data—peer identity, negotiated version, administrative and operational state, and local/remote address and port information. Its monitoring emphasis is on routing protocol software status: bgpPeerState reveals whether a BGP session is established or stuck in a lower state like Idle or Active, which is a key software-level health indicator for router connectivity to peer networks, distinct from physical hardware sensors. Because it is explicitly a stub for BGP4-MIB, it is dependent on and superseded by that RFC 4273 module for full BGP management, and should be understood as a legacy compatibility layer rather than the primary source of truth. It is deployed on routers running BGP in ISP and enterprise networks that peer with external or internal autonomous systems. Some legacy monitoring scripts and older network documentation still refer simply to this bgp mib by its original object names even though BGP4-MIB is now the current standard reference.
IPNetwork Monitor allows you to monitor SNMP objects defined in BGP-MIB. Use the built-in SNMP Monitoring Browser to explore available variables, view their current values and descriptions, and select the objects you want to monitor. You can then create SNMP monitors, configure thresholds, and receive alerts when monitored values change.
What Can Be Monitored
- BGP peer session state
- peer administrative status
- negotiated BGP version
- local/remote peer address and port
- remote AS number
Supported Devices
- vendor-neutral, standards-based MIB, not tied to a specific manufacturer
- BGP-speaking routers
Monitoring Examples
An operator would poll bgpPeerTable/bgpPeerEntry using bgpPeerRemoteAddr to identify a specific peer, then check bgpPeerState to detect a session that has dropped from Established back to Idle or Connect, indicating a BGP adjacency failure. bgpPeerAdminStatus versus bgpPeerState mismatch (admin up, but not Established) would flag a misconfigured or unreachable peer, while bgpPeerRemoteAs confirms the expected autonomous system is on the other end of the session. bgpPeerNegotiatedVersion helps confirm both sides agreed on BGP protocol version during session establishment.
OIDs
| OID symbolic | OID numeric | Type | Access | Description |
|---|---|---|---|---|
| bgp | 1.3.6.1.2.1.15 | BGP-MIB compatibility stub. The authoritative MIB is BGP4-MIB (RFC 4273). This stub exports the bgp OID and bgpPeerRemoteAddr for backward compatibility. | ||
| OCT bgpVersion | 1.3.6.1.2.1.15.1 | OCTET STRING | read-only | BGP version. |
| bgpPeerTable | 1.3.6.1.2.1.15.2 | not-accessible | BGP peer table. | |
| bgpPeerEntry | 1.3.6.1.2.1.15.2.1 | not-accessible | BGP peer entry. | |
| IP bgpPeerIdentifier | 1.3.6.1.2.1.15.2.1.1 | IpAddress | read-only | BGP peer identifier. |
| INT bgpPeerState | 1.3.6.1.2.1.15.2.1.2 | INTEGER | read-only | BGP peer FSM state. |
| INT bgpPeerAdminStatus | 1.3.6.1.2.1.15.2.1.3 | INTEGER | read-write | BGP peer admin status. |
| I32 bgpPeerNegotiatedVersion | 1.3.6.1.2.1.15.2.1.4 | Integer32 | read-only | BGP negotiated version. |
| IP bgpPeerLocalAddr | 1.3.6.1.2.1.15.2.1.5 | IpAddress | read-only | Local IP address. |
| I32 bgpPeerLocalPort | 1.3.6.1.2.1.15.2.1.6 | Integer32 | read-only | Local TCP port. |
| IP bgpPeerRemoteAddr | 1.3.6.1.2.1.15.2.1.7 | IpAddress | read-only | Remote IP address of this BGP peer. |
| I32 bgpPeerRemotePort | 1.3.6.1.2.1.15.2.1.8 | Integer32 | read-only | Remote TCP port. |
| I32 bgpPeerRemoteAs | 1.3.6.1.2.1.15.2.1.9 | Integer32 | read-only | Remote AS number. |
RFC description
Border Gateway Protocol (BGP) MIB (RFC 1657); manages BGP configuration, status, and peer relationships.
Start monitoring BGP-speaking routers with a free 30-day trial of IPNetwork Monitor. Import MIBs, browse SNMP OIDs, create custom SNMP monitors, configure alerts, and monitor any SNMP-enabled network device from a single console.