< Home

dhcp option82 encapsulation

Function

The dhcp option82 encapsulation command configures suboptions inserted into the DHCP Option 82 field.

The undo dhcp option82 encapsulation command restores the default suboptions inserted into the DHCP Option 82 field.

By default, the circuit-id (CID) and remote-id (RID) suboptions are inserted into the DHCP Option 82 field.

Format

dhcp option82 encapsulation { circuit-id | remote-id | subscriber-id | vendor-specific-id } *

undo dhcp option82 encapsulation

Parameters

Parameter Description Value

circuit-id

Inserts the circuit-id suboption.

-

remote-id

Inserts the remote-id suboption.

-

subscriber-id

Inserts the subscriber-id (SID) suboption.

-

vendor-specific-id

Inserts the vendor-specific suboption in the Sub9 field.

-

Views

System view, VLAN view, interface view, BD view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This function applies to a DHCP relay agent or a DHCP snooping-enabled device. The Option 82 field records the location of a DHCP client. A device inserts the Option 82 field to a DHCP Request message to notify the DHCP server of the DHCP client location. The DHCP server can assign an IP address and other configurations to the DHCP client, ensuring DHCP client security. The administrator can run this command to configure the device to insert one or more of the circuit-id suboption, remote-id suboption, subscriber-id suboption, and vendor-specific suboption in the Sub9 field into the DHCP Option 82 field. After the command is run, suboptions that are not configured to be inserted are not inserted into the DHCP Option 82 field by default.

Prerequisites

The DHCP function has been enabled in the system view using the dhcp enable command.

Example

# Insert the circuit-id suboption into the DHCP Option 82 field.

<HUAWEI> system-view
[HUAWEI] dhcp option82 encapsulation circuit-id 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >