Option 43 Formats Supported by Huawei APs
Identifying the Option 43 Format of a Single WAC
When a single WAC is specified for a Huawei AP, the AP can identify suboptions 1, 2, and 3 of Option 43. Assuming that the IP address of a WAC is 192.168.100.1 and a Huawei switch is used as a DHCP server, any of the following configurations can be used to configure the suboptions of Option 43:
- Suboption 1 (Hexadecimal)
dhcp server option 43 sub-option 1 hex c0a86401
c0, a8, 64, and 01 are the hexadecimal (hex) numbers converted from 192, 168, 100, and 1 in the IP address, respectively.
You can also configure suboptions in hex, which is equivalent to the preceding configuration. The two configurations can overwrite each other.
dhcp server option 43 hex 0104c0a86401
01: suboption type 1.
04: suboption length, indicating the number of octets in an IP address. Each IP address occupies 4 octets. Therefore, the suboption length is the number of IP addresses times 4 in hex.
c0 a8 64 01: IP address 192 168 100 1 in hex.
- Suboption 2 (Decimal)
dhcp server option 43 sub-option 2 ip-address 192.168.100.1
You can also configure suboptions in hex, which is equivalent to the preceding configuration. The two configurations can overwrite each other.
dhcp server option 43 hex 0204c0a86401
02: suboption type 2.
04: suboption length, indicating the number of octets in an IP address. Each IP address occupies 4 octets. Therefore, the suboption length is the number of IP addresses times 4 in hex.
c0 a8 64 01: IP address 192 168 100 1 in hex.
- Suboption 3 (ASCII Code)
dhcp server option 43 sub-option 3 ascii 192.168.100.1
You can also configure suboptions in hex, which is equivalent to the preceding configuration. The two configurations can overwrite each other.
dhcp server option 43 hex 030d3139322e3136382e3130302e31
03: suboption type 3.
0d: suboption length. The IP address and symbols are expressed as characters. Therefore, the suboption length is the hex string converted from the number of characters in the character string 192.168.100.1.
31 39 32 2e 31 36 38 2e 31 30 30 2e 31: ASCII code of the character string 192.168.100.1. Numbers 0 to 9 correspond to 30 to 39 in ASCII format, and the period (.) corresponds to 2e.
Identifying the Option 43 Format of Multiple WACs
- Suboption 2 (Decimal)
dhcp server option 43 sub-option 2 ip-address 192.168.100.1 192.168.100.2
You can also configure suboptions in hex, which is equivalent to the preceding configuration. The two configurations can overwrite each other.
dhcp server option 43 hex 0208c0a86401c0a86402
02: suboption type 2.
08: suboption length, indicating the number of octets in an IP address. Each IP address occupies 4 octets. Therefore, the suboption length is the number of IP addresses times 4 in hex.
c0 a8 64 01: IP address 192 168 100 1 in hex.
c0 a8 64 02: IP address 192 168 100 2 in hex.
- Suboption 3 (ASCII Code)
dhcp server option 43 sub-option 3 ascii 192.168.100.1,192.168.100.2
The IP addresses are separated by commas (,) without spaces.
You can also configure suboptions in hex, which is equivalent to the preceding configuration. The two configurations can overwrite each other.
dhcp server option 43 hex 031b3139322e3136382e3130302e312c3139322e3136382e3130302e32
03: suboption type 3.
1b: suboption length. The IP address and symbols are expressed as characters. Therefore, the suboption length is the hex string converted from the number of characters in the character strings 192.168.100.1 and 192.168.100.2.
31 39 32 2e 31 36 38 2e 31 30 30 2e 31: ASCII code of the character string 192.168.100.1.
2c: ASCII code for the comma (,) as a character string.
31 39 32 2e 31 36 38 2e 31 30 30 2e 32: ASCII code of the character string 192.168.100.2.
Numbers 0 to 9 correspond to 30 to 39 in ASCII format, the period (.) corresponds to 2e, and the comma (,) corresponds to 2c.