class ip-pool

Use class ip-pool to specify a DHCP address pool for a DHCP user class.

Use undo class ip-pool to remove the DHCP address pool specified for a DHCP user class.

Syntax

class class-name ip-pool pool-name

undo class class-name ip-pool

Default

No DHCP address pool is specified for a DHCP user class.

Views

DHCP policy view

Predefined user roles

network-admin

mdc-admin

Parameters

class-name: Specifies a DHCP user class by its name, a case-insensitive string of 1 to 63 characters.

pool-name: Specifies a DHCP address pool by its name, a case-insensitive string of 1 to 63 characters.

Usage guidelines

You can specify only one DHCP address pool for a DHCP user class in a DHCP policy. If you execute this command multiple times for a user class, the most recent configuration takes effect.

Examples

# Specify DHCP address pool pool1 for DHCP user class test in DHCP policy 1.

<Sysname> system-view
[Sysname] dhcp policy 1
[Sysname-dhcp-policy-1] class test ip-pool pool1

Related commands

default ip-pool

dhcp policy

dhcp server ip-pool