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