Table Of Contents
Prerequisites for BGP MIB Support Enhancements
Restrictions for BGP MIB Support Enhancements
Information About BGP MIB Support Enhancements
BGP FSM Transition Change Support
BGP Route Received Route Support
BGP Prefix Threshold Notification Support
VPNv4 Unicast Address Family Route Support
How to Configure BGP MIB Support Enhancements
Enabling BGP MIB Support on a Router
Configuration Examples for BGP MIB Support Enhancements
Configuring BGP MIB Support Enhancements: Example
Verifying BGP MIB Support Enhancements: Example
BGP MIB Support Enhancements
First Published: August 26, 2003Last Updated: December 5, 2006The BGP MIB Support Enhancements feature enhances or introduces the following capabilities for Simple Network Management (SNMP) monitoring of Border Gateway Protocol (BGP) using the CISCO-BGP4-MIB:
•BGP FSM Transition Change Support—Enhances support for notification of BGP Finite State Machine (FSM) transition changes.
•BGP Route Received Route Support—Introduces the capability to query for the total number of routes received by a BGP neighbor.
•BGP Prefix Threshold Notification Support—Introduces the capability to send notifications when the prefix limit for a BGP peer has been reached.
•VPNv4 Unicast Address Family Route Support—Enhances the cbgpRouteTable object to provide support for SNMP GET operations on VPNv4 unicast routes.
Feature History for the BGP MIB Support Enhancements Feature
Finding Support Information for Platforms and Cisco IOS and Catalyst OS Software Images
Use Cisco Feature Navigator to find information about platform support and software image support. Cisco Feature Navigator enables you to determine which Cisco IOS and Catalyst OS software images support a specific software release, feature set, or platform. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Contents
•Prerequisites for BGP MIB Support Enhancements
•Restrictions for BGP MIB Support Enhancements
•Information About BGP MIB Support Enhancements
•How to Configure BGP MIB Support Enhancements
•Configuration Examples for BGP MIB Support Enhancements
Prerequisites for BGP MIB Support Enhancements
•SNMP must be enabled on the router before notifications (traps) can be configured or before SNMP GET operations can be performed.
Restrictions for BGP MIB Support Enhancements
•All enhancements that are introduced by this feature are supported only by the CISCO-BGP4-MIB.
Information About BGP MIB Support Enhancements
To configure the BGP MIB support enhancements, you should understand the following concepts:
•BGP FSM Transition Change Support
•BGP Route Received Route Support
•BGP Prefix Threshold Notification Support
•VPNv4 Unicast Address Family Route Support
BGP MIB Support Enhancements
The BGP MIB Support Enhancements feature introduces support in the CISCO-BGP4-MIB for new SNMP notifications. To enable BGP support for the enhancement described in this document, use the command in global configuration mode. The following sections describe the objects and notifications (traps) that have been enhanced by this feature:
•BGP FSM Transition Change Support—Enhances support for notification of BGP Finite State Machine (FSM) transition changes.
•BGP Route Received Route Support—Introduces the capability to query for the total number of routes received by a BGP neighbor.
•BGP Prefix Threshold Notification Support—Introduces the capability to send notifications when the prefix limit for a BGP peer has been reached.
•VPNv4 Unicast Address Family Route Support—Enhances the cbgpRouteTable object to provide support for SNMP GET operations on VPNv4 unicast routes.
•cbgpPeerTable Support—The cbgpPeerTable has been modified to support the enhancements in this feature.
BGP FSM Transition Change Support
The cbgpRouteTable was enhanced to support BGP Finite State Machine (FSM) transition state changes.
The cbgpFsmStateChange object was introduced to allow the you to configure SNMP notifications (traps) for all FSM transition state changes. This notification contains the following MIB objects:
•bgpPeerLastError
•bgpPeerState
•cbgpPeerLastErrorTxt
•cbgpPeerPrevState
The cbgpBackwardTransition object has also been enhanced to support all BGP FSM transition state changes. This object is sent each time the FSM moves to either a higher or lower numbered state. This notification contains the following MIB objects:
•bgpPeerLastError
•bgpPeerState
•cbgpPeerLastErrorTxt
•cbgpPeerPrevState
The enhancement to the snmp-server enable traps bgp privileged EXEC command allows you to enable the newly introduced traps individually or together with the existing FSM backward transition and established state traps as defined in RFC 1657.
BGP Route Received Route Support
The cbgpRouteTable object has been enhanced to support the total number of routes received by a BGP neighbor. The following new MIB object was introduced to support this enhancement:
•cbgpPeerAddrFamilyPrefixTable
Routes are indexed by the address-family identifier (AFI) or subaddress-family identifier (SAFI). The prefix information displayed in this table can also viewed in the output of the show ip bgp command.
BGP Prefix Threshold Notification Support
The cbgpPrefixMaxThresholdExceed and cbgpPrfefixMaxThresholdClear objects were introduced to allow you to poll for the total number of routes received by a BGP peer.
The cbgpPrefixMaxThresholdExceed object was introduced to allow you to configure SNMP notifications to be sent when the prefix count for a BGP session has exceeded the configured value. This notification is configured on a per address family basis. The prefix threshold is configured with the neighbor maximum-prefix command. This notification contains the following MIB objects:
•cbgpPeerPrefixAdminLimit
•cbgpPeerPrefixThreshold
The cbgpPrfefixMaxThresholdClear object was introduced to allow you to configure SNMP notifications to be sent when the prefix count drops below the clear trap limit. This notification is configured on a per address family basis. This notification contains the following objects:
•cbgpPeerPrefixAdminLimit
•cbgpPeerPrefixClearThreshold
Notifications are sent when the prefix count drops below the clear trap limit for an address family under a BGP session after the cbgpPrefixMaxThresholdExceed notification is generated. The clear trap limit is calculated by subtracting 5 percent from the maximum prefix limit value configured with the neighbor maximum-prefix command. This notification will not be generated if the session goes down for any other reason after the cbgpPrefixMaxThresholdExceed is generated.
VPNv4 Unicast Address Family Route Support
The cbgpRouteTable object was enhanced to allow you to configure SNMP GET operations for VPNv4 unicast address-family routes.
The following MIB object was introduced to allow you to query for multiple BGP capabilities (for example, route refresh, multiprotocol BGP extensions, graceful restart, etc):
•cbgpPeerCapsTable
The following new MIB object was introduced to allow you to query for IPv4 and VPNv4 address family routes:
•cbgpPeerAddrFamilyTable
Each route is indexed by peer address, prefix, and prefix length. This object indexes BGP routes by the AFI and then by the SAFI. The AFI table is the primary index, and the SAFI table is the secondary index. Each BGP speaker maintains a local Routing Information Base (RIB) for each supported AFI and SAFI combination.
cbgpPeerTable Support
The cbgpPeerTable has been modified to support the enhancements described in this document. The following new table objects are supported in the CISCO-BGP-MIB.my:
•cbgpPeerLastErrorTxt
•cbgpPeerPrevState
The following table objects are not supported. The status of theses objects is listed as deprecated. However, these objects are not operational:
•cbgpPeerPrefixAccepted
•cbgpPeerPrefixDenied
•cbgpPeerPrefixLimit
•cbgpPeerPrefixAdvertised
•cbgpPeerPrefixSuppressed
•cbgpPeerPrefixWithdrawn
How to Configure BGP MIB Support Enhancements
This section contains the following task:
•Enabling BGP MIB Support on a Router
Enabling BGP MIB Support on a Router
Perform this task to configure BGP support for SNMP notifications on the router. After BGP SNMP support is enabled, GET operations are performed from an external management station only.
SUMMARY STEPS
1. enable
2. configure terminal
3. snmp-server enable traps bgp [state-changes [all] [backward-trans] [limited]] | [threshold prefix]
4. exit
DETAILED STEPS
Configuration Examples for BGP MIB Support Enhancements
The following examples show how to configure and verify the BGP MIB Support Enhancements feature:
•Configuring BGP MIB Support Enhancements: Example
•Verifying BGP MIB Support Enhancements: Example
Configuring BGP MIB Support Enhancements: Example
The following example enables SNMP support for all BGP FSM transition events:
Router(config)# snmp-server enable traps bgp state-changes all
Verifying BGP MIB Support Enhancements: Example
The following verification example uses the running-config file to show that the configured SNMP support for BGP is enabled:
Router# show run | include snmp-server
snmp-server enable traps bgpWhere to Go Next
For more information about SNMP and SNMP operations, refer to the "Configuring SNMP Support" section of the Cisco IOS Configuration Fundamentals and Network Management Configuration Guide, Release 12.3.
Additional References
The following sections provide references related to BGP MIB Support Enhancements.
Related Documents
Related Topic Document TitleBGP commands
Cisco IOS IP Routing: BGP Command Reference, Release 12.4
Cisco IOS IP Routing: BGP Command Reference, Release 12.2SB
BGP configuration tasks
Cisco IOS IP Configuration Guide, Release 12.3
Standards
Standards TitleNo new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
—
MIBs
MIBs MIBs Link•CISCO-BGP4-MIB
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:
RFCs
RFCs TitleRFC 1657
Definitions of Managed Objects for the Fourth Version of the Border Gateway Protocol (BGP-4) using SMIv2
RFC 1771
RFC 2547
RFC 2842
RFC 2858
RFC 2918
Technical Assistance
Command Reference
This section documents a modified command.
snmp-server enable traps bgp
To enable Border Gateway Protocol (BGP) support for Simple Network Management Protocol (SNMP) operations on a router, use the snmp-server enable traps bgp command in global configuration mode. To disable BGP support for SNMP operations, use the no form of this command.
snmp-server enable traps bgp [state-changes [all] [backward-trans] [limited]] | [threshold prefix]
no snmp-server enable traps bgp [state-changes [all] [backward-trans] [limited]] | [threshold prefix]
Syntax Description
Command Default
SNMP notifications are disabled by default.
Command Modes
Global configuration
Command History
Usage Guidelines
SNMP notifications can be sent as traps or inform requests and this command enables both notification types. If this command is entered with no keywords specified, support for all configurable options is enabled.
Using this command you can enable or disable BGP server state change notifications for the BGP4-MIB (enterprise 1.3.6.1.2.1.15.7). The notifications types are:
•bgpEstablished
•bgpBackwardsTransition
For a complete description of BGP notifications and additional MIB functions, see the BGP4-MIB.my file, available through the Cisco FTP site at ftp://www.cisco.com/public/mibs/v2/.
Note You may notice incorrect BGP trap object ID (OID) output when using the SNMP version 1 BGP4-MIB that is available for download at ftp://ftp.cisco.com/pub/mibs/v1/BGP4-MIB-V1SMI.my. When a router sends out BGP traps (notifications) about state changes on an SNMP version 1 monitored BGP peer, the enterprise OID is incorrectly displayed as .1.3.6.1.2.1.15 (bgp) instead of .1.3.6.1.2.1.15.7 (bgpTraps). This problem occurs because the BGP4-MIB does not follow RFC 1908 rules for version 1 and version 2 trap compliance. The problem is not due to an error in Cisco IOS software.This MIB is controlled by IANA under the guidance of the IETF, and work is currently in progress by the IETF to replace this MIB with a new version that represents the current state of the BGP protocol. In the meantime, we recommend that you use the SNMP version 2 BGP4-MIB or the CISCO-BGP4-MIB to avoid an incorrect trap OID.
The snmp-server enable traps bgp command also can be enabled to control BGP server state change notifications for the CISCO-BGP4-MIB. This MIB contains support the following SNMP operations:
•Notification for all BGP FSM transition changes.
•Notifications to query for total number of routes received by a BGP peer.
•Notifications for the maximum prefix-limit threshold on a BGP peer.
•GET operations for VPNv4 unicast routes.
For a complete description of BGP notifications and additional MIB functions, see the CISCO-BGP4-MIB.my file, available through the Cisco FTP site at ftp://www.cisco.com/public/mibs/v2/.
The snmp-server enable traps bgp command is used in conjunction with the snmp-server host command. Use the snmp-server host command to specify which host or hosts receive SNMP notifications. To send SNMP notifications, you must configure at least one snmp-server host command.
Examples
The following example shows how to enable the router to send BGP state change informs to the host at the address myhost.cisco.com using the community string defined as public:
Router(config)# snmp-server enable traps bgpRouter(config)# snmp-server host myhost.cisco.com informs version 2c publicRelated Commands
Command Descriptionsnmp-server host
Specifies the recipient of an SNMP notification operation.
snmp-server trap-source
Specifies the interface from which an SNMP trap should originate.
Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any examples, command display output, and figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses in illustrative content is unintentional and coincidental.
© 2003-2006 Cisco Systems, Inc. All rights reserved.