dhcp policy
Use dhcp policy to create a DHCP policy and enter its view, or enter the view of an existing DHCP policy.
Use undo dhcp policy to delete a DHCP policy.
Syntax
dhcp policy policy-name
undo dhcp policy policy-name
Default
No DHCP policies exist.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
policy-name: Assigns a name to the DHCP policy. The policy name is a case-insensitive string of 1 to 63 characters.
Usage guidelines
In DHCP policy view, you can specify address pools for different user classes. Clients matching a user class will obtain IP addresses and other parameters from the specified address pool.
For a DHCP policy to take effect, you must apply it to an interface.
Examples
# Create DHCP policy test and enter its view.
<Sysname> system-view [Sysname] dhcp policy test [Sysname-dhcp-policy-test]
Related commands
class ip-pool
default ip-pool
dhcp apply-policy
dhcp class