< Home

dhcp-server

Function

The dhcp-server command adds DHCP servers to a DHCP server group.

The undo dhcp-server command deletes DHCP servers from a DHCP server group.

By default, no DHCP server is configured in a DHCP server group.

Format

dhcp-server ip-address [ ip-address-index ]

undo dhcp-server { ip-address | ip-address-index }

Parameters

Parameter

Description

Value

ip-address

Specifies the IP address of a DHCP server.

The value is in dotted decimal notation.

ip-address-index

When you specify the IP address for a DHCP server, you can specify ip-address-index for the IP address. If you do not specify the server index, the system assigns an idle index to the server.

The value is an integer that ranges from 0 to 19.

Views

DHCP server group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The dhcp-server command applies to DHCP relay agents. To ensure that the DHCP relay agent can forward messages to multiple DHCP servers, configure multiple DHCP servers in a DHCP server group.

Precautions

  • Each DHCP server group can be configured with a maximum of twenty DHCP servers. You can delete a DHCP server by specifying ip-address-index.
  • If a VPN instance is bound to an interface, the DHCP server group must be bound to this VPN instance.

Example

# Add the DHCP server at 10.10.78.56 to a DHCP server group dhcp-srv1.

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