The radius-attribute include hw-avpair command allows RADIUS packets to carry the hw-avpair attribute.
The undo radius-attribute include hw-avpair command deletes the hw-avpair attribute from RADIUS packets.
By default, the specified attribute cannot be added to a RADIUS packet.
This command is supported only on the NetEngine 8000 F1A.
radius-attribute include hw-avpair hw-avpair-name packet-type
radius-attribute include hw-avpair hw-avpair-name-without-packet-type
undo radius-attribute include hw-avpair hw-avpair-name packet-type
undo radius-attribute include hw-avpair hw-avpair-name-without-packet-type
undo radius-attribute include hw-avpair accounting-request
Parameter | Description | Value |
---|---|---|
packet-type |
Specifies the packet type. |
The below values are supported:
|
hw-avpair hw-avpair-name |
Specifies the value of the HW-AVPair attribute to be encapsulated into the authentication or accounting packets to be sent to the RADIUS server. |
The below values are supported:
|
hw-avpair hw-avpair-name-without-packet-type |
Specifies the value of the HW-AVPair attribute to be encapsulated into the authentication and accounting packets to be sent to the RADIUS server. |
The below values are supported:
|
accounting-request |
Configures the attribute in the accounting-request packet. |
- |
Usage Scenario
By default, many attributes are not carried in packets, which prevents unnecessary or unidentifiable attributes from being sent to a RADIUS server. To allow an attribute to be carried in a packet, run the radius-attribute include hw-avpair command.You can run the display radius-attribute command to check whether a RADIUS attribute is carried in a packet.
Configuration Impact
If an attribute is not carried in a packet by default, run the radius-attribute include hw-avpair command to allow the attribute to be carried in the packet. If you also specify a packet type, the attribute is carried only in this type of packets.
If you specify multiple attributes, all the specified attributes are carried in packets.<HUAWEI> system-view [~HUAWEI] radius-server group huawei [*HUAWEI-radius-huawei] commit [~HUAWEI-radius-huawei] radius-attribute include hw-avpair subscriber:fq accounting-request