< Home

dhcp server group

Function

The dhcp server group command creates a DHCP server group and displays the DHCP server group view or directly displays the view of the existing DHCP server group.

The undo dhcp server group command deletes an existing DHCP server group.

By default, no DHCP server group is configured.

Format

dhcp server group group-name

undo dhcp server group group-name

Parameters

Parameter

Description

Value

group-name

Specifies the name of a DHCP server group.

The value is a string of 1 to 32 case-sensitive characters without spaces.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command applies to DHCP relay agents. Generally, a DHCP relay agent serves multiple DHCP servers. To manage these DHCP servers in a unified manner, run the dhcp server group command to create a DHCP server group. The DHCP server group then assigns IP addresses to users using the DHCP relay agent.

Follow-up Procedure
  • Run the dhcp-server command to add DHCP servers to the DHCP server group.

  • Run the dhcp relay server-select command in the interface view to specify a DHCP server group for the DHCP relay agent.

Precautions

You can configure a maximum of 32 DHCP server groups in the system, and a maximum of 20 DHCP servers in a DHCP server group.

Example

# Create a DHCP server group named dhcp-srv1.

<HUAWEI> system-view
[HUAWEI] dhcp server group dhcp-srv1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >