All MIBs › BGP4-MIB
Organization: IETF IDR Working Group
Last Updated: 2006-01-11
Category: Routing Protocols
Description:
Defines managed objects for managing Border Gateway Protocol version 4, including BGP peer status, route information, and session attributes.
Imported Objects
From SNMPv2-CONF
| MODULE-COMPLIANCE | |
| NOTIFICATION-GROUP | |
| OBJECT-GROUP |
From SNMPv2-SMI
| Counter32 | |
| Gauge32 | |
| Integer32 | |
| IpAddress | |
| MODULE-IDENTITY | |
| NOTIFICATION-TYPE | |
| OBJECT-TYPE | |
| mib-2 |
What Is BGP4-MIB?
BGP4-MIB, standardized in RFC 4273, is the vendor-neutral IETF MIB module for managing and monitoring Border Gateway Protocol version 4, the routing protocol underlying inter-domain routing on the Internet. It exposes a BGP peer table with per-peer session state, negotiated attributes, and traffic/error counters, along with tables describing received path attributes for individual routes. It is used chiefly to monitor the software/protocol status of a router's BGP process — peer session establishment state, session uptime, and update/notification message counters that reveal a flapping or misconfigured peering session. As a foundational routing MIB it has no dependency on other MIBs beyond standard SNMP conventions, though it is commonly deployed alongside the newer BGP4V2-TC-MIB and vendor-specific BGP extension MIBs for IPv6/VPN address families. It's typically deployed on any vendor's core or edge router or route reflector participating in BGP peering, especially at ISPs, Internet exchange points, and large enterprise WAN edges. Network engineers frequently look up the bgp4 mib support matrix when selecting monitoring tools, since it remains the most universally implemented BGP telemetry source across router vendors.
IPNetwork Monitor allows you to monitor SNMP objects defined in BGP4-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 (Idle/Connect/Established)
- peer session established time/uptime
- update and notification message counts
- last error/reset cause
- negotiated peer AS number and remote address
Supported Devices
- vendor-neutral, standards-based MIB (RFC 4273), not tied to a specific manufacturer
- any BGP-speaking router or route reflector
Monitoring Examples
An administrator would poll bgpPeerTable's bgpPeerState (e.g., Idle, Active, Established) and bgpPeerFsmEstablishedTime to confirm a peer session is stable and compute its uptime. bgpPeerInUpdates and bgpPeerOutUpdates track update-message volume, revealing route flapping, while bgpPeerLastError surfaces the cause of an unexpected session reset. bgpPeerRemoteAs and bgpPeerRemoteAddr identify which neighboring AS and router are involved when troubleshooting a specific peering relationship.
OIDs
| OID symbolic | OID numeric | Type | Access | Description |
|---|---|---|---|---|
| bgp | 1.3.6.1.2.1.15 | The MIB module for the BGP-4 protocol. Copyright (C) The Internet Society (2006). This version of this MIB module is part of RFC 4273; see the RFC itself for full legal notices. | ||
| bgpNotification | 1.3.6.1.2.1.15.0 | |||
| NTF bgpEstablishedNotification | 1.3.6.1.2.1.15.0.1 | The bgpEstablishedNotification event is generated when the BGP FSM enters the established state. This Notification replaces the bgpEstablished Notification. | ||
| NTF bgpBackwardTransNotification | 1.3.6.1.2.1.15.0.2 | The bgpBackwardTransNotification event is generated when the BGP FSM moves from a higher numbered state to a lower numbered state. This Notification replaces the bgpBackwardsTransition Notification. | ||
| OCT bgpVersion | 1.3.6.1.2.1.15.1 | OCTET STRING | read-only | Vector of supported BGP protocol version numbers. Each peer negotiates the version from this vector. Versions are identified via the string of bits contained within this object. The first octet contains bits 0 to 7, the second octet contains bits 8 to 15, and so on, with the most significant bit referring to the lowest bit number in the octet (e.g., the MSB of the first octet refers to bit 0). If a bit, i, is present and set, then the version (i+1) of the BGP is supported. |
| I32 bgpLocalAs | 1.3.6.1.2.1.15.2 | Integer32 | read-only | The local autonomous system number. |
| bgpPeerTable | 1.3.6.1.2.1.15.3 | not-accessible | BGP peer table. This table contains, one entry per BGP peer, information about the connections with BGP peers. | |
| bgpPeerEntry | 1.3.6.1.2.1.15.3.1 | not-accessible | Entry containing information about the connection with a BGP peer. | |
| IP bgpPeerIdentifier | 1.3.6.1.2.1.15.3.1.1 | IpAddress | read-only | The BGP Identifier of this entry's BGP peer. This entry MUST be 0.0.0.0 unless the bgpPeerState is in the openconfirm or the established state. |
| INT bgpPeerState | 1.3.6.1.2.1.15.3.1.2 | INTEGER | read-only | The BGP peer connection state. |
| INT bgpPeerAdminStatus | 1.3.6.1.2.1.15.3.1.3 | INTEGER | read-write | The desired state of the BGP connection. A transition from 'stop' to 'start' will cause the BGP Manual Start Event to be generated. A transition from 'start' to 'stop' will cause the BGP Manual Stop Event to be generated. This parameter can be used to restart BGP peer connections. Care should be used in providing write access to this object without adequate authentication. |
| I32 bgpPeerNegotiatedVersion | 1.3.6.1.2.1.15.3.1.4 | Integer32 | read-only | The negotiated version of BGP running between the two peers. This entry MUST be zero (0) unless the bgpPeerState is in the openconfirm or the established state. Note that legal values for this object are between 0 and 255. |
| IP bgpPeerLocalAddr | 1.3.6.1.2.1.15.3.1.5 | IpAddress | read-only | The local IP address of this entry's BGP connection. |
| I32 bgpPeerLocalPort | 1.3.6.1.2.1.15.3.1.6 | Integer32 | read-only | The local port for the TCP connection between the BGP peers. |
| IP bgpPeerRemoteAddr | 1.3.6.1.2.1.15.3.1.7 | IpAddress | read-only | The remote IP address of this entry's BGP peer. |
| I32 bgpPeerRemotePort | 1.3.6.1.2.1.15.3.1.8 | Integer32 | read-only | The remote port for the TCP connection between the BGP peers. Note that the objects bgpPeerLocalAddr, bgpPeerLocalPort, bgpPeerRemoteAddr, and bgpPeerRemotePort provide the appropriate reference to the standard MIB TCP connection table. |
| I32 bgpPeerRemoteAs | 1.3.6.1.2.1.15.3.1.9 | Integer32 | read-only | The remote autonomous system number received in the BGP OPEN message. |
| C32 bgpPeerInUpdates | 1.3.6.1.2.1.15.3.1.10 | Counter32 | read-only | The number of BGP UPDATE messages received on this connection. |
| C32 bgpPeerOutUpdates | 1.3.6.1.2.1.15.3.1.11 | Counter32 | read-only | The number of BGP UPDATE messages transmitted on this connection. |
| C32 bgpPeerInTotalMessages | 1.3.6.1.2.1.15.3.1.12 | Counter32 | read-only | The total number of messages received from the remote peer on this connection. |
| C32 bgpPeerOutTotalMessages | 1.3.6.1.2.1.15.3.1.13 | Counter32 | read-only | The total number of messages transmitted to the remote peer on this connection. |
| OCT bgpPeerLastError | 1.3.6.1.2.1.15.3.1.14 | OCTET STRING | read-only | The last error code and subcode seen by this peer on this connection. If no error has occurred, this field is zero. Otherwise, the first byte of this two byte OCTET STRING contains the error code, and the second byte contains the subcode. |
| C32 bgpPeerFsmEstablishedTransitions | 1.3.6.1.2.1.15.3.1.15 | Counter32 | read-only | The total number of times the BGP FSM transitioned into the established state for this peer. |
| G32 bgpPeerFsmEstablishedTime | 1.3.6.1.2.1.15.3.1.16 | Gauge32 | read-only | This timer indicates how long (in seconds) this peer has been in the established state or how long since this peer was last in the established state. It is set to zero when a new peer is configured or when the router is booted. |
| I32 bgpPeerConnectRetryInterval | 1.3.6.1.2.1.15.3.1.17 | Integer32 | read-write | Time interval (in seconds) for the ConnectRetry timer. The suggested value for this timer is 120 seconds. |
| I32 bgpPeerHoldTime | 1.3.6.1.2.1.15.3.1.18 | Integer32 | read-only | Time interval (in seconds) for the Hold Timer established with the peer. The value of this object is calculated by this BGP speaker, using the smaller of the values in bgpPeerHoldTimeConfigured and the Hold Time received in the OPEN message. This value must be at least three seconds if it is not zero (0). If the Hold Timer has not been established with the peer this object MUST have a value of zero (0). If the bgpPeerHoldTimeConfigured object has a value of (0), then this object MUST have a value of (0). |
| I32 bgpPeerKeepAlive | 1.3.6.1.2.1.15.3.1.19 | Integer32 | read-only | Time interval (in seconds) for the KeepAlive timer established with the peer. The value of this object is calculated by this BGP speaker such that, when compared with bgpPeerHoldTime, it has the same proportion that bgpPeerKeepAliveConfigured has, compared with bgpPeerHoldTimeConfigured. If the KeepAlive timer has not been established with the peer, this object MUST have a value of zero (0). If the of bgpPeerKeepAliveConfigured object has a value of (0), then this object MUST have a value of (0). |
| I32 bgpPeerHoldTimeConfigured | 1.3.6.1.2.1.15.3.1.20 | Integer32 | read-write | Time interval (in seconds) for the Hold Time configured for this BGP speaker with this peer. This value is placed in an OPEN message sent to this peer by this BGP speaker, and is compared with the Hold Time field in an OPEN message received from the peer when determining the Hold Time (bgpPeerHoldTime) with the peer. This value must not be less than three seconds if it is not zero (0). If it is zero (0), the Hold Time is NOT to be established with the peer. The suggested value for this timer is 90 seconds. |
| I32 bgpPeerKeepAliveConfigured | 1.3.6.1.2.1.15.3.1.21 | Integer32 | read-write | Time interval (in seconds) for the KeepAlive timer configured for this BGP speaker with this peer. The value of this object will only determine the KEEPALIVE messages' frequency relative to the value specified in bgpPeerHoldTimeConfigured; the actual time interval for the KEEPALIVE messages is indicated by bgpPeerKeepAlive. A reasonable maximum value for this timer would be one third of that of bgpPeerHoldTimeConfigured. If the value of this object is zero (0), no periodical KEEPALIVE messages are sent to the peer after the BGP connection has been established. The suggested value for this timer is 30 seconds. |
| I32 bgpPeerMinASOriginationInterval | 1.3.6.1.2.1.15.3.1.22 | Integer32 | read-write | Time interval (in seconds) for the MinASOriginationInterval timer. The suggested value for this timer is 15 seconds. |
| I32 bgpPeerMinRouteAdvertisementInterval | 1.3.6.1.2.1.15.3.1.23 | Integer32 | read-write | Time interval (in seconds) for the MinRouteAdvertisementInterval timer. The suggested value for this timer is 30 seconds for EBGP connections and 5 seconds for IBGP connections. |
| G32 bgpPeerInUpdateElapsedTime | 1.3.6.1.2.1.15.3.1.24 | Gauge32 | read-only | Elapsed time (in seconds) since the last BGP UPDATE message was received from the peer. Each time bgpPeerInUpdates is incremented, the value of this object is set to zero (0). |
| IP bgpIdentifier | 1.3.6.1.2.1.15.4 | IpAddress | read-only | The BGP Identifier of the local system. |
| bgpRcvdPathAttrTable | 1.3.6.1.2.1.15.5 | not-accessible | The BGP Received Path Attribute Table contains information about paths to destination networks, received from all peers running BGP version 3 or less. | |
| bgpPathAttrEntry | 1.3.6.1.2.1.15.5.1 | not-accessible | Information about a path to a network. | |
| IP bgpPathAttrPeer | 1.3.6.1.2.1.15.5.1.1 | IpAddress | read-only | The IP address of the peer where the path information was learned. |
| IP bgpPathAttrDestNetwork | 1.3.6.1.2.1.15.5.1.2 | IpAddress | read-only | The address of the destination network. |
| INT bgpPathAttrOrigin | 1.3.6.1.2.1.15.5.1.3 | INTEGER | read-only | The ultimate origin of the path information. |
| OCT bgpPathAttrASPath | 1.3.6.1.2.1.15.5.1.4 | OCTET STRING | read-only | The set of ASes that must be traversed to reach the network. This object is probably best represented as SEQUENCE OF INTEGER. For SMI compatibility, though, it is represented as OCTET STRING. Each AS is represented as a pair of octets according to the following algorithm: first-byte-of-pair = ASNumber / 256; second-byte-of-pair = ASNumber & 255; |
| IP bgpPathAttrNextHop | 1.3.6.1.2.1.15.5.1.5 | IpAddress | read-only | The address of the border router that should be used for the destination network. |
| I32 bgpPathAttrInterASMetric | 1.3.6.1.2.1.15.5.1.6 | Integer32 | read-only | The optional inter-AS metric. If this attribute has not been provided for this route, the value for this object is 0. |
| bgp4PathAttrTable | 1.3.6.1.2.1.15.6 | not-accessible | The BGP-4 Received Path Attribute Table contains information about paths to destination networks, received from all BGP4 peers. | |
| bgp4PathAttrEntry | 1.3.6.1.2.1.15.6.1 | not-accessible | Information about a path to a network. | |
| IP bgp4PathAttrPeer | 1.3.6.1.2.1.15.6.1.1 | IpAddress | read-only | The IP address of the peer where the path information was learned. |
| I32 bgp4PathAttrIpAddrPrefixLen | 1.3.6.1.2.1.15.6.1.2 | Integer32 | read-only | Length in bits of the IP address prefix in the Network Layer Reachability Information field. |
| IP bgp4PathAttrIpAddrPrefix | 1.3.6.1.2.1.15.6.1.3 | IpAddress | read-only | An IP address prefix in the Network Layer Reachability Information field. This object is an IP address containing the prefix with length specified by bgp4PathAttrIpAddrPrefixLen. Any bits beyond the length specified by bgp4PathAttrIpAddrPrefixLen are zeroed. |
| INT bgp4PathAttrOrigin | 1.3.6.1.2.1.15.6.1.4 | INTEGER | read-only | The ultimate origin of the path information. |
| OCT bgp4PathAttrASPathSegment | 1.3.6.1.2.1.15.6.1.5 | OCTET STRING | read-only | The sequence of AS path segments. Each AS path segment is represented by a triple . The type is a 1-octet field that has two possible values: 1 AS_SET: unordered set of ASes that a route in the UPDATE message has traversed 2 AS_SEQUENCE: ordered set of ASes that a route in the UPDATE message has traversed. The length is a 1-octet field containing the number of ASes in the value field. The value field contains one or more AS numbers. Each AS is represented in the octet string as a pair of octets according to the following algorithm: first-byte-of-pair = ASNumber / 256; second-byte-of-pair = ASNumber & 255; Known Issues: o BGP Confederations will result in a type of either 3 or 4. o An AS Path may be longer than 255 octets. This may result in this object containing a truncated AS Path. |
| IP bgp4PathAttrNextHop | 1.3.6.1.2.1.15.6.1.6 | IpAddress | read-only | The address of the border router that should be used for the destination network. This address is the NEXT_HOP address received in the UPDATE packet. |
| I32 bgp4PathAttrMultiExitDisc | 1.3.6.1.2.1.15.6.1.7 | Integer32 | read-only | This metric is used to discriminate between multiple exit points to an adjacent autonomous system. A value of -1 indicates the absence of this attribute. Known Issues: o The BGP-4 specification uses an unsigned 32 bit number. Thus, this object cannot represent the full range of the protocol. |
| I32 bgp4PathAttrLocalPref | 1.3.6.1.2.1.15.6.1.8 | Integer32 | read-only | The originating BGP4 speaker's degree of preference for an advertised route. A value of -1 indicates the absence of this attribute. Known Issues: o The BGP-4 specification uses an unsigned 32 bit number and thus this object cannot represent the full range of the protocol. |
| INT bgp4PathAttrAtomicAggregate | 1.3.6.1.2.1.15.6.1.9 | INTEGER | read-only | If the ATOMIC_AGGREGATE attribute is present in the Path Attributes then this object MUST have a value of 'lessSpecificRouteNotSelected'. If the ATOMIC_AGGREGATE attribute is missing in the Path Attributes then this object MUST have a value of 'lessSpecificRouteSelected'. Note that ATOMIC_AGGREGATE is now a primarily informational attribute. |
| I32 bgp4PathAttrAggregatorAS | 1.3.6.1.2.1.15.6.1.10 | Integer32 | read-only | The AS number of the last BGP4 speaker that performed route aggregation. A value of zero (0) indicates the absence of this attribute. Note that propagation of AS of zero is illegal in the Internet. |
| IP bgp4PathAttrAggregatorAddr | 1.3.6.1.2.1.15.6.1.11 | IpAddress | read-only | The IP address of the last BGP4 speaker that performed route aggregation. A value of 0.0.0.0 indicates the absence of this attribute. |
| I32 bgp4PathAttrCalcLocalPref | 1.3.6.1.2.1.15.6.1.12 | Integer32 | read-only | The degree of preference calculated by the receiving BGP4 speaker for an advertised route. A value of -1 indicates the absence of this attribute. Known Issues: o The BGP-4 specification uses an unsigned 32 bit number and thus this object cannot represent the full range of the protocol. |
| INT bgp4PathAttrBest | 1.3.6.1.2.1.15.6.1.13 | INTEGER | read-only | An indication of whether this route was chosen as the best BGP4 route for this destination. |
| OCT bgp4PathAttrUnknown | 1.3.6.1.2.1.15.6.1.14 | OCTET STRING | read-only | One or more path attributes not understood by this BGP4 speaker. Path attributes are recorded in the Update Path attribute format of type, length, value. Size zero (0) indicates the absence of such attributes. Octets beyond the maximum size, if any, are not recorded by this object. Known Issues: o Attributes understood by this speaker, but not represented in this MIB, are unavailable to the agent. |
| bgpTraps | 1.3.6.1.2.1.15.7 | |||
| NTF bgpEstablished | 1.3.6.1.2.1.15.7.1 | The bgpEstablished event is generated when the BGP FSM enters the established state. This Notification has been replaced by the bgpEstablishedNotification Notification. | ||
| NTF bgpBackwardTransition | 1.3.6.1.2.1.15.7.2 | The bgpBackwardTransition event is generated when the BGP FSM moves from a higher numbered state to a lower numbered state. This Notification has been replaced by the bgpBackwardTransNotification Notification. | ||
| bgp4MIBConformance | 1.3.6.1.2.1.15.8 | |||
| bgp4MIBCompliances | 1.3.6.1.2.1.15.8.1 | |||
| bgp4MIBCompliance | 1.3.6.1.2.1.15.8.1.1 | The compliance statement for entities which implement the BGP4 mib. | ||
| bgp4MIBDeprecatedCompliances | 1.3.6.1.2.1.15.8.1.2 | The compliance statement documenting deprecated objects in the BGP4 mib. | ||
| bgp4MIBObsoleteCompliances | 1.3.6.1.2.1.15.8.1.3 | The compliance statement documenting obsolete objects in the BGP4 mib. | ||
| bgp4MIBGroups | 1.3.6.1.2.1.15.8.2 | |||
| bgp4MIBGlobalsGroup | 1.3.6.1.2.1.15.8.2.1 | A collection of objects providing information on global BGP state. | ||
| bgp4MIBPeerGroup | 1.3.6.1.2.1.15.8.2.2 | A collection of objects for managing BGP peers. | ||
| bgpRcvdPathAttrGroup | 1.3.6.1.2.1.15.8.2.3 | A collection of objects for managing BGP-3 and earlier path entries. This conformance group, like BGP-3, is obsolete. | ||
| bgp4MIBPathAttrGroup | 1.3.6.1.2.1.15.8.2.4 | A collection of objects for managing BGP path entries. | ||
| bgp4MIBTrapGroup | 1.3.6.1.2.1.15.8.2.5 | A collection of notifications for signaling changes in BGP peer relationships. Obsoleted by bgp4MIBNotificationGroup | ||
| bgp4MIBNotificationGroup | 1.3.6.1.2.1.15.8.2.6 | A collection of notifications for signaling changes in BGP peer relationships. Obsoletes bgp4MIBTrapGroup. |
RFC description
RFC 1657 standard MIB for managing Border Gateway Protocol version 4 (BGP4); defines objects for BGP routing protocol state, statistics, and configuration.
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.