< Home

dhcp client option12

Function

The dhcp client option12 command enables or disables DHCP packets sent by APs to carry the Option 12 field and specifies AP information contained in the Option 12 field.

The undo dhcp client option12 command restores the default AP information in the Option 12 field carried in DHCP packets sent by APs.

By default, the Option 12 field carried in DHCP packets sent by an AP contains the AP type and MAC address.

Format

dhcp client option12 { ap-name | ap-type ap-mac | disable }

undo dhcp client option12

Parameters

Parameter Description Value
ap-name Enables DHCP packets sent by APs to carry the Option 12 field that contains the AP name. -
disable Disables DHCP packets sent by APs from carrying the Option 12 field. -

Views

AP system profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After an AP (DHCP client) obtains an IP address through DHCP, this function enables the DHCP Discover and DHCP Request packets sent by the AP to carry the Option 12 field. The Option 12 field can contain the AP type, MAC address or the AP name. After the AP obtains an IP address through DHCP, you can check information about the AP with this IP address on the DHCP server that supports display of DHCP client host information.

Precautions

This function is valid only for the APs that obtain IP addresses through DHCP.

Example

# Configure the AP name contained in the Option 12 field carried in DHCP packets sent by APs.

<HUAWEI> system-view
[HUAWEI] wlan 
[HUAWEI-wlan-view] ap-system-profile name ap-system1
[HUAWEI-wlan-ap-system-prof-ap-system1] dhcp client option12 ap-name
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >