Create a DHCP Server Policy

The DHCP server policy defines the parameters required to run a DHCP server on the controller and assign IP addresses automatically to devices that associate. Configuring DHCP enables the reuse of a limited set of IP addresses.

To create a DHCP server policy, in the NX9500‘s global configuration mode, execute the following command:

nx9500-6C8809(config)#dhcp-server-policy <DHCP-SERVER-POLICY-NAME>
nx9500-6C8809(config)#dhcp-server-policy DHCP_POLICY_UseCase1
nx9500-6C8809(config-dhcp-policy-DHCP_POLICY_UseCase1)#

Refer to the following table for IP address usage details.

Table: IP Address Usage

IP Range Usage
172.16.11.1 till 172.16.11.10 Reserved for devices that require a static IP address
172.16.11.11 till 172.16.11.200 Range of IP addresses that can be assigned using the DHCP server.
172.16.11.201 till 172.16.11.254 Reserved for devices that require a static IP address

In the table, the IP address range of 172.16.11.11 to 172.16.11.200 is available using the DHCP server. To configure the DHCP server:

nx9500-6C8809(config-dhcp-policy-DHCP_POLICY_UseCase1)#dhcp-pool DHCP_POOL_USECASE1_01
nx9500-6C8809(config-dhcp-policy-DHCP_POLICY_UseCase1-pool-DHCP_POOL_USECASE1_01)#
  1. Configure the address range as follows:
    nx9500-6C8809(config-dhcp-policy-DHCP_POLICY_UseCase1-pool-DHCP_POOL_USECASE1_01)#address range 172.16.11.11 172.16.11.200
    nx9500-6C8809(config-dhcp-policy-DHCP_POLICY_UseCase1-pool-DHCP_POOL_USECASE1_01)#
  2. Configure the IP pool used with a network segment. This starts the DHCP server on the specified interface.
    nx9500-6C8809(config-dhcp-policy-DHCP_POLICY_UseCase1-pool-DHCP_POOL_USECASE1_01)#network 172.16.11.0/24
    nx9500-6C8809(config-dhcp-policy-DHCP_POLICY_UseCase1-pool-DHCP_POOL_USECASE1_01)#exit
    nx9500-6C8809(config-dhcp-policy-DHCP_POLICY_UseCase1)#exit
    nx9500-6C8809(config)#commit write
  3. Configure the NX9500 to use the DHCP Policy. For the DHCP to work, apply the policy to the wireless controller, as shown in the following example:
    nx9500-6C8809((config)#self
    nx9500-6C8809(config-device-B4-C7-99-6C-88-09)#use dhcp-server-policy DHCP_POLICY_UseCase1
    nx9500-6C8809(config-device-B4-C7-99-6C-88-09)#commit write
    nx9500-6C8809(config-device-B4-C7-99-6C-88-09)#exit
    nx9500-6C8809(config)#