dhcp option82 link-selection

Function

The dhcp option82 link-selection insert enable command enables the function of inserting the Sub5 field in Option 82 option on a DHCP relay interface.

The undo dhcp option82 link-selection insert enable command disables the function of inserting the Sub5 field in Option 82 option on the DHCP relay interface.

The dhcp option82 link-selection subnet-ip-address command configures the IP address corresponding to the Sub5 field in Option 82 on a DHCP relay interface.

The undo dhcp option82 link-selection subnet-ip-address command deletes the configured IP address corresponding to the Sub5 field in Option 82 on a DHCP relay interface.

By default, the function of inserting the Sub5 field in Option 82 option on the DHCP relay interface is disabled, no IP address is configured for the Sub5 field in Option 82.

Format

dhcp option82 link-selection insert enable

dhcp option82 link-selection subnet-ip-address ipAddress

undo dhcp option82 link-selection insert enable

undo dhcp option82 link-selection subnet-ip-address [ ipAddress ]

Parameters

Parameter Description Value
ipAddress

Specifies the IP address corresponding to the Sub5 field in Option 82.

The value is in dotted decimal notation.

Views

100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE sub-interface view, FlexE interface view, GE optical interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view, Sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

The dhcp option82 link-selection insert enable command enables the function of inserting the Sub5 field in Option 82 option on a DHCP relay interface.

To configure the IP address corresponding to the Sub5 field in Option 82 on a DHCP relay interface, run the dhcp option82 link-selection subnet-ip-address command.

Prerequisites

The function to insert information to Option 82 of DHCP packets is enabled using the dhcp option82 link-selection insert enable command.

Example

# On Eth-Trunk 2, enable the function to insert information to Option 82 and configure the IP address 10.1.1.1 for the Sub5 field in Option 82.
<HUAWEI> system-view
[~HUAWEI] interface eth-trunk 2
[*HUAWEI-Eth-Trunk2] dhcp option82 link-selection insert enable
[*HUAWEI-Eth-Trunk2] dhcp option82 link-selection subnet-ip-address 10.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >