radius-server hw-dhcp-option-format
Function
The radius-server hw-dhcp-option-format command sets the format of the Huawei extended attribute HW-DHCP-Option.
The undo radius-server hw-dhcp-option-format command restores the default setting.
By default, the format of HW-DHCP-Option is old.
Usage Guidelines
The RADIUS protocol has good extensibility. Device vendors can expand the No. 26 RADIUS attribute to implement new functions. Huawei defines that the No.158 sub-attribute in the No.26 attribute represents DHCP option and is encapsulated through Type, Length, Value (TLV). The device adds this attribute in authentication request or accounting request packets and sends the DHCP option information to the RADIUS server.
- new: When the attribute is encapsulated through TLV, the Type field length is 1 byte. This format is applicable when the device connects to most types of RADIUS servers.
- old: When the attribute is encapsulated through TLV, the Type field length is 2 bytes. This format is applicable when the device connects to special RADIUS servers, for example, Huawei RADIUS server.