< Home

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.

Format

radius-server hw-dhcp-option-format { new | old }

undo radius-server hw-dhcp-option-format

Parameters

Parameter

Description

Value

new

Sets the format of Huawei extended attribute HW-DHCP-Option to new.

-

old

Sets the format of Huawei extended attribute HW-DHCP-Option to old.

-

Views

RADIUS server template view

Default Level

3: Management level

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.

To connect to different types of RADIUS server, the device supports two HW-DHCP-Option formats: new and old.
  • 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.

Example

# Set the format of Huawei extended attribute HW-DHCP-Option to new.

<HUAWEI> system-view
[HUAWEI] radius-server template huawei
[HUAWEI-radius-huawei] radius-server hw-dhcp-option-format new
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >