Table Of Contents
Prerequisites for the DHCP Server MIB
Information About the DHCP Server MIB
DHCP Server Trap Notifications
Tables and Objects in the DHCP Server MIB
How to Enable DHCP Trap Notifications
Configuring the Router to Send SNMP Trap Notifications About DHCP
Configuration Examples for the DHCP Server MIB
DHCP Server MIB—Secondary Subnet Trap: Example
DHCP Server MIB—Address Pool Trap: Example
DHCP Server MIB—Lease Limit Violation Trap: Example
Feature Information for DHCP Server MIB
DHCP Server MIB
First Published: December 31, 2007Last Updated: December 31, 2007The DHCP Server MIB feature provides Simple Network Management Protocol (SNMP) access to and control of Cisco IOS Dynamic Host Configuration Protocol (DHCP) server software on a Cisco router by an external network management device.
Finding Feature Information in This Module
Your Cisco IOS software release may not support all of the features documented in this module. For the latest feature information and caveats, see the release notes for your Cisco IOS software release. To reach links to specific feature documentation in this module and to see a list of the releases in which each feature is supported, use the "Feature Information for DHCP Server MIB" section.
Finding Support Information for Platforms and Cisco IOS and Catalyst OS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS and Catalyst OS software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Contents
•
Prerequisites for the DHCP Server MIB
•
Information About the DHCP Server MIB
•
How to Enable DHCP Trap Notifications
•
Configuration Examples for the DHCP Server MIB
•
Feature Information for DHCP Server MIB
Prerequisites for the DHCP Server MIB
SNMP must be enabled on the router before DHCP server trap notifications can be configured.
Information About the DHCP Server MIB
To implement the DHCP Server MIB feature, you should understand the following concepts:
•
DHCP Server Trap Notifications
•
Tables and Objects in the DHCP Server MIB
SNMP Overview
SNMP is an application-layer protocol that provides a message format for communication between SNMP managers and agents. SNMP provides a standardized framework and a common language that is used for monitoring and managing devices in a network.
SNMP defines two main types of entities: managers and agents. The SNMP manager is a system that controls and monitors the activities of network hosts using SNMP. The agent is the software component within a remote networking device that maintains the data and reports this data, as needed, to the manager. The manager and agent share a Management Information Base (MIB) that defines the information that the agent can make available to the manager.
An important feature of SNMP is the capability to generate unsolicited notifications from an SNMP agent. These trap notifications are messages alerting the SNMP manager to conditions on the network. Traps are considered an agent-to-manager function and a request for confirmation of receipt from the SNMP manager is not required.
DHCP Server Trap Notifications
DHCP server trap notifications are sent to the SNMP manager for the following events:
•
Address utilization for a subnet has risen above or fallen below a configurable threshold.
•
Address utilization for an address pool has risen above or fallen below a configurable threshold.
•
A lease limit violation is detected. The lease limit configuration allows you to control the number of subscribers per interface.
•
The DHCP server has started or stopped.
•
A duplicate IP address is detected.
The DHCP Server MIB feature does not send the same type of trap notification back-to-back for the same threshold event. For example, if the low threshold value for available free addresses becomes equal to or less than the configured value, a free address low event trap notification on the subnet or pool is generated. This same trap notification will not be resent until the value for the available free addresses has exceeded the value of the free high threshold and vise versa. This threshold control mechanism applies to all trap notifications concerning thresholds in addition to the trap notifications for the DHCP server start and stop time and the lease limit violation. The duplicate IP address trap notification is not subject to this threshold control mechanism.
Tables and Objects in the DHCP Server MIB
The DHCP Server MIB consists of the following tables and objects. The first character of a row in the table begins with "c" (Cisco) and is mapped to the object defined in the IETF draft RFC, Dynamic Host Configuration Protocol for IPv4 Server MIB. If the information is not currently available in Cisco IOS software, the value in the second column is displayed as 0 (zero).
•
cDhcpv4SrvSystemsObjects (see Table 1)—System description and object IDs
•
cBootpHCCounterObjects (see Table 2)—BOOTP counter information
•
cDhcpv4HCCounterObjects (see Table 3)—DHCPv4 counter information
•
cDhcpv4ServerSharedNetTable (see Table 4)—DHCP address pool information
•
cDhcpv4ServerSubnetTable (see Table 5)—Additional DHCP address pool subnet information including secondary subnet information
•
cDhcpv4SrvExtSubnetTable (see Table 6)—Additional DHCP address pool subnet information
•
cDhcpv4ServerNotifyObjectsGroup (see Table 7)—This objects group is used by the cDhcpv4ServerNotificationsGroup notifications group.
•
cDhcpv4ServerNotificationsGroup (see Table 8)—This notifications group consists of all traps defined in the Cisco IOS DHCP server.
•
cDhcpv4SrvExtNotifyGroup (see Table 9)—This notifications group consists of all traps not defined in the draft DHCPv4 Server MIB RFC.
How to Enable DHCP Trap Notifications
Perform the following task to enable the router to send trap notifications about DHCP.
•
Configuring the Router to Send SNMP Trap Notifications About DHCP
Configuring the Router to Send SNMP Trap Notifications About DHCP
DHCP trap notifications are disabled by default. The trap notification is disabled if the corresponding trap configuration is not enabled.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
snmp-server enable traps dhcp [duplicate] [interface] [pool] [subnet] [time]
4.
end
DETAILED STEPS
Troubleshooting Tips
You can troubleshoot DHCP server SNMP events by using the debug ip dhcp server snmp privileged EXEC command.
Configuration Examples for the DHCP Server MIB
This section provides the following configuration examples:
•
DHCP Server MIB—Secondary Subnet Trap: Example
•
DHCP Server MIB—Address Pool Trap: Example
•
DHCP Server MIB—Lease Limit Violation Trap: Example
DHCP Server MIB—Secondary Subnet Trap: Example
The following example configures 192.0.2.0/24 as the subnetwork number and mask of the DHCP pool named pool2 and then adds the DHCP pool secondary subnet specified by the subnet number and mask 192.0.4.0/30. The IP addresses in pool2 consist of two disjoint subnets: the addresses from 192.0.2.1 to 192.0.2.254 and the addresses from 192.0.4.1 to 192.0.4.2.
The address pool utilization mark, configured at the global level, will be overridden at the secondary subnet level. A trap is sent to the SNMP manager if the subnet size of the secondary subnet exceeds or goes below the level specified by the override utilization commands.
The utilization mark {high | low}log command enables a system message to be generated for a DHCP address pool or secondary subnet when the utilization exceeds the configured high utilization threshold or falls below the configured low utilization threshold.
!ip dhcp pool pool2utilization mark high 80 logutilization mark low 70 lognetwork 192.0.2.0 255.255.255.0network 192.0.4.0 255.255.255.252 secondaryoverride utilization high 40override utilization low 30!snmp-server enable traps dhcp subnetDHCP Server MIB—Address Pool Trap: Example
In the following example, if the address utilization exceeds the high threshold or drops below the low threshold, an SNMP trap will be sent to the SNMP manager and a system message will be generated.
ip dhcp pool pool3utilization mark high 80 logutilization mark low 70 log!snmp-server enable traps dhcp poolDHCP Server MIB—Lease Limit Violation Trap: Example
In the following example, four DHCP clients are allowed to receive IP addresses. If a fifth client tries to obtain an IP address, the DHCPDISCOVER messages will not be forwarded to the DHCP server and a trap will be sent to the SNMP manager.
ip dhcp limit lease loginterface Serial 0/0ip dhcp limit lease 4exitsnmp-server enable traps dhcp interfaceAdditional References
The following sections provide references related to the DHCP Server MIB feature.
Related Documents
Related Topic Document TitleSNMP configuration tasks
"Configuring SNMP Support" module
DHCP commands: complete command syntax, command mode, command history, defaults, usage guidelines, and examples
DHCP server configuration tasks including subnet utilization tasks
DHCP per interface lease limit functionality
"Configuring DHCP Services for Accounting and Security" module
DHCP ODAP tasks including address pool utilization tasks
"Configuring the DHCP Server On-Demand Address Pool Manager" module
Standards
MIBs
RFCs
RFC TitleDraft RFC: draft-ietf-dhc-server-mib-10.txt
Dynamic Host Configuration Protocol for IPv4 (DHCPv4) Server MIB
Technical Assistance
Feature Information for DHCP Server MIB
Table 10 lists the features in this module and provides links to specific configuration information. Only features that were introduced or modified in Cisco IOS Release 12.2(1) or a later release appear in the table.
Not all commands may be available in your Cisco IOS software release. For details on when support for a specific command was introduced, see the command reference documentation.
For information on a feature in this technology that is not documented here, see the "DHCP Features Roadmap".
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.
Note
Table 10 lists only the Cisco IOS software release that introduced support for a given feature in a given Cisco IOS software release train. Unless noted otherwise, subsequent releases of that Cisco IOS software release train also support that feature.
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.
© 2007 Cisco Systems, Inc. All rights reserved.


