Provides instructions for configuring an internal DHCP server to automatically assign IP addresses to wireless clients. It includes steps for adjusting DHCP settings within a wireless policy profile using both the web interface and CLI commands. The configuration covers setting up centralized DHCP services, defining network pools, exclusions, and static IP reservations. Additionally, it outlines commands for verifying the DHCP configuration, including client binding checks and analyzing DHCP relay and packet punt statistics.
Configure the internal DHCP server under client VLAN SVI (GUI)
This task configures the internal DHCP server settings for a client VLAN Switched Virtual Interface (SVI) to enable DHCP relay functionality.
Use this procedure when you need to set up DHCP relay on an SVI to forward DHCP requests to a designated helper address. This configuration is typically performed on network switches to enable DHCP services across VLANs.
Procedure
| 1. | Choose . |
|
| 2. | Click an SVI. |
|
| 3. | Click the Advanced tab. |
|
| 4. | Under DHCP Relay settings, enter the IPV4 Helper Address. |
|
| 5. | Click Update & Apply to Device. |
The internal DHCP server is configured under the client VLAN SVI with the specified helper address, enabling DHCP relay functionality for the selected SVI.
Configure the internal DHCP server under client VLAN SVI (CLI)
Before you begin
-
For wireless clients, only two DHCP servers are supported.
-
To use the internal DHCP server for both wireless and wired client VLAN, an IP address must be configured under the client VLAN SVI.
-
For wireless clients, the IP address of the internal DHCP server must be different from the address of the wireless client VLAN SVI (in the DHCP helper address configuration).
-
For wireless clients, the internal DHCP server can be configured under the client VLAN SVI or under the wireless policy profile.
Procedure
| 1. | Enter global configuration mode. Example:
|
|
| 2. | Create a loopback interface and enter interface configuration mode. Example:
Example:
|
|
| 3. | Configure the IP address for the interface. Example:
Example:
|
|
| 4. | Exit interface configuration mode. Example:
|
|
| 5. | Configure the VLAN ID. Example:
Example:
|
|
| 6. | Configure the IP address for the interface. Example:
Example:
|
|
| 7. | Configure the destination address for UDP broadcasts. Example:
Example:
|
|
| 8. | Disable the Maintenance Operation Protocol (MOP) for an interface. Example:
|
|
| 9. | Disable the task of sending MOP periodic system ID messages. Example:
|
|
| 10. | Exit interface configuration mode. Example:
|
|
| 11. | Specify the IP address that the DHCP server should not assign to DHCP clients. Example:
Example:
|
|
| 12. | Specify the IP addresses that the DHCP server should not assign to DHCP clients. Example:
Example:
|
|
| 13. | Configure the DHCP pool address. Example:
Example:
|
|
| 14. | Specify the network number in dotted-decimal notation, along with the mask address. Example:
Example:
|
|
| 15. | Specify the IP address of the default router for a DHCP client. Example:
Example:
|
|
| 16. | Exit DHCP configuration mode. Example:
|
|
| 17. | Configure the WLAN policy profile and enter wireless policy configuration mode. Example:
Example:
|
|
| 18. | Configure central association for locally switched clients. Example:
|
|
| 19. | Configure the central DHCP for locally switched clients. Example:
|
|
| 20. | Configure WLAN for central switching. Example:
|
|
| 21. | Add a description for the policy profile. Example:
Example:
|
|
| 22. | Assign the profile policy to the VLAN. Example:
Example:
|
|
| 23. | Enable the wireless profile policy. Example:
|
Configure the internal DHCP server under a wireless policy profile (GUI)
Configure DHCP settings to enable automatic IP address assignment for wireless clients connected to the network under a specific policy profile.
Use this procedure when you need to set up internal DHCP server functionality within a wireless policy profile to provide IP address allocation for connected wireless devices.
Procedure
| 1. | Choose . |
|
| 2. | Click a policy name. |
|
| 3. | Click the Advanced tab. |
|
| 4. | Under DHCP settings, check or uncheck the IPv4 DHCP Required check box and enter the DHCP Server IP Address. |
|
| 5. | Click Update & Apply to Device. |
The internal DHCP server is configured under the wireless policy profile and the settings are applied to the device.
Configure the internal DHCP server under a wireless policy profile (CLI)
Procedure
| 1. | Enter global configuration mode. Example:
|
|
| 2. | Create a loopback interface and enter interface configuration mode. Example:
Example:
|
|
| 3. | Configure the IP address for the interface. Example:
Example:
|
|
| 4. | Exit interface configuration mode. Example:
|
|
| 5. | Configure the VLAN ID. Example:
Example:
|
|
| 6. | Configure the IP address for the interface. Example:
Example:
|
|
| 7. | Disable the Maintenance Operation Protocol (MOP) for an interface. Example:
|
|
| 8. | Disable the task of sending MOP periodic system ID messages. Example:
|
|
| 9. | Exit interface configuration mode. Example:
|
|
| 10. | Specify the IP address that the DHCP server should not assign to DHCP clients. Example:
Example:
|
|
| 11. | Configure the DHCP pool address. Example:
Example:
|
|
| 12. | Specify the network number in dotted-decimal notation along with the mask address. Example:
Example:
|
|
| 13. | Specify the IP address of the default router for a DHCP client. Example:
Example:
|
|
| 14. | Exit DHCP configuration mode. Example:
|
|
| 15. | Configure a WLAN policy profile and enter wireless policy configuration mode. Example:
Example:
|
|
| 16. | Configure central association for locally switched clients. Example:
|
|
| 17. | Configure local switching. Example:
|
|
| 18. | Add a description for the policy profile. Example:
Example:
|
|
| 19. | Enable DHCP Option 82 for the wireless clients. Example:
|
|
| 20. | Enable ASCII on DHCP Option 82. Example:
|
|
| 21. | Enable VLAN ID. Example:
Example:
|
|
| 22. | Support the addition of Cisco 2-byte Remote ID (RID) for DHCP Option 82. Example:
|
|
| 23. | Configure the WLAN's IPv4 DHCP server. Example:
Example:
|
|
| 24. | Assign the profile policy to the VLAN. Example:
Example:
|
|
| 25. | Enable the wireless profile policy. Example:
|
Configure the internal DHCP server globally (GUI)
Configure a DHCP pool to enable automatic IP address assignment for network devices through the internal DHCP server.
Use this procedure when you need to set up centralized IP address management for your network infrastructure using the GUI interface.
Procedure
| 1. | Choose . |
|
| 2. | Click Add. The Create DHCP Pool window is displayed. |
|
| 3. | Enter the DHCP Pool Name, Network, Starting IP, and Ending IP. |
|
| 4. | From the IP Type, Subnet Mask, and Lease drop-down lists, choose a value. |
|
| 5. | Click the Reserved Only toggle button. |
|
| 6. | Click Apply to Device. |
The DHCP pool is created and applied to the device, enabling automatic IP address assignment within the specified range.
Configure the internal DHCP server globally (CLI)
Procedure
| 1. | Enter global configuration mode. Example:
|
|
| 2. | Create a loopback interface and enter interface configuration mode. Example:
Example:
|
|
| 3. | Configure the IP address for the interface. Example:
Example:
|
|
| 4. | Exit interface configuration mode. Example:
|
|
| 5. | Configure the VLAN ID. Example:
Example:
|
|
| 6. | Configure the IP address for the interface. Example:
Example:
|
|
| 7. | Disable the Maintenance Operation Protocol (MOP) for an interface. Example:
|
|
| 8. | Disable the task of sending the MOP periodic system ID messages. Example:
|
|
| 9. | Exit the interface configuration mode. Example:
|
|
| 10. | Specify the target DHCP server parameters. Example:
Example:
|
|
| 11. | Specify the IP address that the DHCP server should not assign to DHCP clients. Example:
Example:
|
|
| 12. | Configure the DHCP pool address. Example:
Example:
|
|
| 13. | Specify the network number in dotted-decimal notation along with the mask address. Example:
Example:
|
|
| 14. | Specify the IP address of the default router for a DHCP client. Example:
Example:
|
|
| 15. | Exit DHCP configuration mode. Example:
|
|
| 16. | Configure a WLAN policy profile and enter wireless policy configuration mode. Example:
Example:
|
|
| 17. | Configure central association for locally switched clients. Example:
|
|
| 18. | Configure central DHCP for locally switched clients. Example:
|
|
| 19. | Configure local switching. Example:
|
|
| 20. | Add a description for the policy profile. Example:
Example:
|
|
| 21. | Assign the profile policy to the VLAN. Example:
Example:
|
|
| 22. | Enable the profile policy. Example:
|
Configure IP reservations in the internal DHCP server (CLI)
Procedure
| 1. | Enter global configuration mode. Example:
|
|
| 2. | Configure the DHCP pool address. Example:
Example:
|
|
| 3. | Specify the network number in dotted-decimal notation along with the mask address. Example:
Example:
|
|
| 4. | Configure a reserved address using either the client ID or the MAC address. Example:
Example:
Example:
|
Verify internal DHCP configuration
Verify internal DHCP configuration using specific show commands to check client binding, DHCP relay statistics for wireless clients, and DHCP packet punt statistics.
Client binding verification
To verify client binding, use this command:
Device# show ip dhcp binding
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type State Interface
Hardware address/
User name
192.168.32.3 0130.b49e.491a.53 Mar 23 2018 06:42 PM Automatic Active Loopback0
DHCP relay statistics verification
To verify the DHCP relay statistics for a wireless client, use this command:
Device# show wireless dhcp relay statistics
DHCP Relay Statistics
---------------------
DHCP Server IP : 10.10.10.1
Message Count
--------------------------
DHCPDISCOVER : 1
BOOTP FORWARD : 137
BOOTP REPLY : 0
DHCPOFFER : 0
DHCPREQUEST : 54
DHCPACK : 0
DHCPNAK : 0
DHCPDECLINE : 0
DHCPRELEASE : 0
DHCPINFORM : 82
Tx/Rx Time :
------------
LastTxTime : 18:42:18
LastRxTime : 00:00:00
Drop Counter :
-------------
TxDropCount : 0
DHCP packet punt statistics verification
To verify the DHCP packet punt statistics in CPP, use this command:
Device# show platform hardware chassis active qfp feature wireless punt statistics
CPP Wireless Punt stats:
App Tag Packet Count
------- ------------
CAPWAP_PKT_TYPE_DOT11_PROBE_REQ 14442
CAPWAP_PKT_TYPE_DOT11_MGMT 50
CAPWAP_PKT_TYPE_DOT11_IAPP 9447
CAPWAP_PKT_TYPE_DOT11_RFID 0
CAPWAP_PKT_TYPE_DOT11_RRM 0
CAPWAP_PKT_TYPE_DOT11_DOT1X 0
CAPWAP_PKT_TYPE_CAPWAP_KEEPALIVE 2191
CAPWAP_PKT_TYPE_MOBILITY_KEEPALIVE 0
CAPWAP_PKT_TYPE_CAPWAP_CNTRL 7034
CAPWAP_PKT_TYPE_CAPWAP_DATA 0
CAPWAP_PKT_TYPE_MOBILITY_CNTRL 0
WLS_SMD_WEBAUTH 0
SISF_PKT_TYPE_ARP 5292
SISF_PKT_TYPE_DHCP 140
SISF_PKT_TYPE_DHCP6 1213
SISF_PKT_TYPE_IPV6_ND 350
SISF_PKT_TYPE_DATA_GLEAN 44
SISF_PKT_TYPE_DATA_GLEAN_V6 51
SISF_PKT_TYPE_DHCP_RELAY 122
CAPWAP_PKT_TYPE_CAPWAP_RESERVED 0