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.
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)#
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)#
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
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)#