The HW-Dhcp-Option (187) attribute delivered by a RADIUS server must use the following format:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2
+---------------+---------------+---------------------------------+
| Type | Length | Option Type |
+---------------+---------------+---------------------------------+
| value
+-----------------
Option Type: 2 bytes
Value: option value
Rule2: If a duplicate option is delivered, it replaces the one previously delivered. Option121 is an exception because this option carries routing information and can be delivered multiple times.
Example for rules 1 and 2: If eight options are delivered with the first and eighth options having the same number, the eighth option replaces the first option. That is to say, there are only seven options in effect, and the ninth option (if there is the ninth option) can be parsed successfully.
If eight unique options have been delivered and the ninth option is the same as the first option, the ninth option is not parsed.
Rule3: The following options cannot be delivered.
Option Code |
Description |
Reason |
---|---|---|
0 |
Byte aligning |
This option for byte aligning is not a normal option. |
1 |
Subnet mask |
A subnet mask belongs to an address pool and therefore should not be delivered. |
3 |
Gateway |
A gateway belongs to an address pool configuration. DHCP users do not support gateway option delivery. |
12 |
Client host name |
This option is sent by a DHCP client to a BAS device. |
53 |
Type of a DHCP message |
This option indicates the type of a DHCP message and cannot be delivered. |
54 |
Server identifier |
This option is the gateway address for DHCP clients and encapsulated in Offer and ACK messages. This option code is not supported currently. |
55 |
Request parameter list |
This option is sent by a DHCP client to a BAS device. |
61 |
Client identifier |
This option is sent by a DHCP client to a BAS device. |
64 |
Network information server (NIS)+ domain name |
This option identifies a DHCP client. |
77 |
User Class Option |
This option is sent by a DHCP client to a BAS device. |
82 |
Relay information |
This option is sent by a DHCP client to a BAS device. |
Rule4: The following options are replaced by RADIUS attributes before being delivered.
Option Code |
Description |
Radius Attribute Number |
Attribute Name |
---|---|---|---|
6 |
Domain Server |
26-135 |
HW-Client-Primary-DNS |
26-136 |
HW-Client-Secondary-DNS |
||
43 |
Vendor Specific |
26-156 |
HW-DHCPV4-Option43 |
44 |
NETBIOS Name Srv |
26-75 |
HW-Ascend-Client-Primary-WINS |
26-76 |
HW-Ascend-Client-Second-WIN |
||
51 |
Address Time |
26-74 |
HW-Lease-Time |
58 |
Renewal Time |
26-35 |
HW-Renewal-Time |
59 |
Rebinding Time |
26-36 |
HW-Rebinding-Time |
120 |
DHCP_OPT120 |
26-32 |
RD_hw_SIP_Server |
121 |
Classless Static Route Option |
26-155 |
HW-DHCPv4-Option121 |