dhcp option82 rebuild send-to-server

Function

The dhcp option82 rebuild send-to-server command enables a device to encapsulate the Option 82 attribute into a message to be sent to the DHCP server based on the fixed OSP format. In this format, self-defined character strings can be encapsulated into the Option 82 attribute.

The undo dhcp option82 rebuild send-to-server command disables the function.

By default, the device is disabled from encapsulating the Option 82 attribute into a message to be sent to the DHCP server based on the fixed OSP format.

This command is supported only on the NetEngine 8000 F1A.

Format

dhcp option82 rebuild self-define { circuit-id circuit-id-value | out-vlan out-vlan-value | inner-vlan inner-vlan-value | remote-id remote-id-value } * send-to-server

undo dhcp option82 rebuild self-define { circuit-id [ circuit-id-value ] | out-vlan [ out-vlan-value ] | inner-vlan [ inner-vlan-value ] | remote-id [ remote-id-value ] } * send-to-server

undo dhcp option82 rebuild all send-to-server

Parameters

Parameter Description Value
circuit-id circuit-id-value

Specifies a user-defined circuit ID, which carries access location information.

The value is a string of 1 to 64 characters.

out-vlan out-vlan-value

Specifies the outer VLAN ID.

The value is an integer ranging from 1 to 4094.

inner-vlan inner-vlan-value

Specifies the inner VLAN ID.

The value is an integer ranging from 1 to 4094.

remote-id remote-id-value

Specifies a user-defined remote ID, which identifies a remote host.

The value is a string of 1 to 64 characters.

self-define

Specifes a user-defined format.

-

all

All.

-

Views

BAS interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

When IP addresses are assigned from a remote address pool to Layer 2 access users, the DHCP server identifies a carrier based on the remote ID carried in the Option 82 attribute of a DHCP message. To allow a device to insert Sub-option 2 (remote ID) into the Option 82 attribute or replace Sub-option 2 carried in the Option 82 attribute of a message to be sent to the DHCP server based on the fixed OSP format, run the dhcp option82 rebuild send-to-server command. Self-defined character strings can be encapsulated into Sub-option 2. In actual applications, you can also run this command to define other sub-attributes of the Option 82 attribute.

Prerequisites

DHCP proxy has been enabled on the BAS interface.

Precautions

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

  • If the dhcp option82 rebuild version3 send-to-server command has been run, running the undo dhcp option82 rebuild all send-to-server command can cancel the configuration of the former command.
  • The dhcp option82 rebuild send-to-server and dhcp option82 rebuild version3 send-to-server commands are mutually exclusive.
  • The dhcp option82 rebuild send-to-server and ipoe-server multi-sessions per-mac enable commands are mutually exclusive.

Example

# Enable the device to insert the self-defined Option 82 attribute into the messages to be sent to the DHCP server.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/1.1
[*HUAWEI] commit
[~HUAWEI-interface GigabitEthernet0/1/1.1] bas
[~HUAWEI-interface GigabitEthernet0/1/1.1-bas] dhcp option82 rebuild self-define circuit-id huawei out-vlan 200 inner-vlan 100 remote-id huawei send-to-server
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >