< Home

dhcp option82 format (vap profile view)

Function

The dhcp option82 format command configures the format of the Option 82 field in DHCP packets sent by STAs.

The undo dhcp option82 format command restores the default format of the Option 82 field in DHCP packets sent by STAs.

By default, the format of the Option 82 field inserted in DHCP packets sent by STAs is ap-mac.

Format

dhcp option82 { circuit-id | remote-id } format { ap-mac [ mac-format { normal | compact | hex } ] | ap-mac-ssid [ mac-format { normal | compact } ] | user-defined text | ap-name | ap-name-ssid | ap-location | ap-location-ssid }

undo dhcp option82 { circuit-id | remote-id } format

Parameters

Parameter Description Value

circuit-id

Specifies the circuit-ID (CID) in the Option 82 field.

-

remote-id

Specifies the remote-ID (RID) in the Option 82 field.

-

ap-mac

Indicates that Option 82 contains the AP's MAC address.

-

ap-mac-ssid

Indicates that Option 82 contains the AP's MAC address and SSID.

-

mac-format

Specifies the format of the AP's MAC address in Option 82.

-

normal

Sets the MAC address format to xx-xx-xx-xx-xx-xx.

-

compact

Sets the MAC address format to xxxx-xxxx-xxxx.

-

hex

Sets the MAC address format to XXXXXXXXXXXX in hexadecimal notation.

-

user-defined text

Sets the format of Option 82 to the user-defined format.

The value is a string of 1 to 255 characters.

ap-name

Specifies the AP name in the Option 82 field.

-

ap-name-ssid

Specifies the AP name and SSID in the Option 82 field.

-

ap-location

Specifies the AP location in the Option 82 field.

-

ap-location-ssid

Specifies the AP location and SSID in the Option 82 field.

-

Views

VAP profile view

Default Level

2: Configuration level

Usage Guidelines

After an AP is enabled to insert the Option 82 field in DHCP packets sent from a STA, you can run the dhcp option82 format command to configure the format of the Option 82 field.

You can use the following keywords to define the Option 82 field.
  • ap-mac: MAC address of the AP. After DHCP packets from a STA reach an AP, the AP inserts its MAC address into the Option 82 field of the DHCP packets.
  • ap-mac-ssid: MAC address and SSID of the AP. After DHCP packets from a STA reach an AP, the AP inserts its MAC address and SSID associated with the STA into the Option 82 field of the DHCP packets.
  • ap-name: AP name. After DHCP packets from a STA reach an AP, the AP inserts its name into the Option 82 field of the DHCP packets.
  • ap-name-ssid: AP name and SSID. After DHCP packets from a STA reach an AP, the AP inserts its name and associated SSID into the Option 82 field of the DHCP packets.
  • ap-location: AP location. After DHCP packets from a STA reach an AP, the AP inserts its location into the Option 82 field of the DHCP packets.
  • ap-location-ssid: AP location and SSID. After DHCP packets from a STA reach an AP, the AP inserts its location and associated SSID into the Option 82 field of the DHCP packets.

If mac-format is not specified in the dhcp option82 { circuit-id | remote-id } format { ap-mac | ap-mac-ssid } command, the AP MAC address in the Option 82 field is XXXXXXXXXXXX in ASCII format.

The total length of the circuit-id and remote-id options in the Option 82 field cannot exceed 255 bytes. Otherwise, some Option 82 information may be lost. Note that a Chinese character may occupy 2 or 3 bytes.

Example

# Set the format of remote-id in Option 82 carried in DHCP packets sent by STAs to ap-mac-ssid.

<HUAWEI> system-view
[HUAWEI] wlan 
[HUAWEI-wlan-view] vap-profile name vap1
[HUAWEI-wlan-vap-prof-vap1] dhcp option82 remote-id format ap-mac-ssid
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >