server identifier ip

Function

The server identifier ip command configures a DHCP server identifier.

The undo server identifier ip command deletes a DHCP server identifier.

By default, no identifier is configured for the DHCP server.

Format

server identifier ip ip-address

undo server identifier ip [ ip-address ]

Parameters

Parameter Description Value
ip-address

Specifies the IP address used as the identifier of a DHCP server.

The value is in dotted decimal notation.

Views

IP address pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

In a DHCP server dual-device hot backup scenario, an interface's primary IP address is used as the DHCP server identifier by default. After a primary/secondary DHCP server switchover is performed, user renewal or offline fails. To resolve the problem, run the server identifier ip command to configure the same DHCP server identifier for both the primary and secondary DHCP servers.

In a non-DHCP server dual-device hot backup scenario, the server identifier ip command configures a specified IP address as the DHCP server identifier.

Precautions

If an IP address has been specified as the DHCP server identifier, ensure that routes from the DHCP client to the IP address are reachable so that packets can be properly sent to the DHCP server.

In case of DHCP server dual-device hot backup:

  • Configure the virtual IP address of the VRRP backup group on the inbound interfaces of the master and slave DHCP servers as the DHCP server identifier.
  • If an IP address in the current address pool has been specified as the DHCP server identifier, this IP address cannot be assigned to users.

    When both the dhcp server identifier dest-ip and server identifier ip commands have been executed to configure a DHCP server identifier, the configuration of the server identifier ip command has a higher priority.

Example

# Configure the identifier of the DHCP server in the address pool named huawei as 10.1.1.2.
<HUAWEI> system-view
[~HUAWEI] ip pool huawei server
[*HUAWEI-ip-pool-huawei] server identifier ip 10.1.1.2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >