No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S12700 V200R013C00 Command Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
dhcp option82 format (vap profile view)

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 }

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. -

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.

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
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 116821

Downloads: 83

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next