dhcp check-server-pkt

Function

The dhcp check-server-pkt command selects strict or loose check on replay packets received from the DHCPv4 server.

By default, the device conducts strict check on reply packets from the DHCPv4 server.

This command is supported only on the NetEngine 8000 F1A.

Format

dhcp check-server-pkt [ loose | strict ]

dhcp check-server-pkt loose [ include option dhcp-option-code ]

Parameters

Parameter Description Value
loose

Indicates the loose check of the reply packet from the DHCPv4 server.

-

strict

Indicates the strict check of the reply packet form the DHCPv4 server.

-

include

Indicates the option value.

-

option dhcp-option-code

Specifies the option code. If this parameter is not configured, the device does not conduct loose check on reply packets that do not carry Option 3 from the DHCPv4 server. If this parameter is configured, the device conducts loose check on all reply packets from the DHCPv4 server, including those carrying Option 3.

Only Option 3 can be specified.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

The dhcp check-server-pkt command selects strict or loose check on replay packets received from the DHCPv4 server.

Precautions

In VS mode, this command is supported only in the admin VS.

If the device is configured to perform loose check on the packets sent by the DHCPv4 server and the gateway address in the reply packets sent by the DHCPv4 server is inconsistent with the gateway address of the selected address pool, the device re-selects an address pool whose gateway address is consistent with that in the reply packets sent by the DHCPv4 server in the domain. The gateway mask of the re-selected address pool must be consistent with that configured in the current address pool.

After loose check is configured for the packets sent by the DHCPv4 server, if two users have the same IP address but are in different VPNs, the user who attempts to go online later will fail in user access. Therefore, you are advised to use different IP addresses for users in different VPNs for the loose check on the packets sent by the DHCPv4 server.

Example

# Configure the device to conduct loose check on the DHCPv4 server packet.
<HUAWEI> system-view
[~HUAWEI] dhcp check-server-pkt loose
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >