< Home

dhcp-server

Function

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

The undo dhcp-server command deletes the DHCP server members from 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 an IP address for the DHCP server. -
ip-address-index Specifies the IP address index of the DHCP server. If the index is not specified, the system automatically assigns an available index. 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

This command is used for the DHCP relay. The administrator can configure multiple DHCP server members in a DHCP server group so that the DHCP relay can select one member to forward packets.

Precautions

  • A maximum of eight DHCP server members can be configured in each DHCP server group. The address index can be specified to delete the DHCP server members.
  • If the interface of the router is bound to a VPN instance, the DHCP server group on the interface must be bound to the same VPN instance.

Example

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

<sysname> system-view
[sysname] dhcp server group dhcp-srv1 
[sysname-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 >