The radius-attribute translate extend command performs proprietary RADIUS attribute translation.
The undo radius-attribute translate extend command cancels proprietary RADIUS attribute translation.
By default, proprietary RADIUS attribute translation is not configured.
radius-attribute translate extend src-attr-description dest-attr-description { access-request | access-accept | account } *
radius-attribute translate extend src-attr-description vendor-specific src-vendor-id src-sub-attr-id { access-request | account } *
radius-attribute translate extend vendor-specific src-vendor-id src-sub-attr-id dest-attr-description access-accept
undo radius-attribute translate extend [ src-attr-description | vendor-specific src-vendor-id src-sub-attr-id ]
Parameter | Description | Value |
---|---|---|
src-attr-description |
Specifies the source attribute description. The value can automatically match the attribute names in the attribute dictionary. |
The value is a string of 1 to 64 characters. |
dest-attr-description |
Specifies the destination attribute description. The value can automatically match the attribute names in the attribute dictionary. |
The value is a string of 1 to 64 characters. |
access-request |
Indicates an access-request packet. |
- |
access-accept |
Indicates an access-accept packet. |
- |
account |
Indicates an accounting packet. |
- |
extend |
Indicates an extension attribute. |
- |
vendor-specific src-vendor-id |
Specifies the vendor ID. |
The value is an integer of 1 to 4294967295 |
src-sub-attr-id |
Specifies the sub ID. |
The value is an integer of 1 to 255 |
Usage Scenario
When the device connects to the RADIUS server, the RADIUS attributes supported by the two devices may be different. If the formats of the attributes are the same and only the vendor number and attribute number are different, you can use the attribute conversion to adapt to the differences.
Prerequisites
Before performing RADIUS attribute translation, you need to run the radius-server attribute translate command to enable RADIUS attribute explanation.
Configuration Impact
After the attribute translation function is configured, the device can encapsulate or parse src-attribute by using the format of dest-attribute when transmitting or receiving RADIUS packets. By doing this, the device can communicate with different types of RADIUS servers.
For details about the attributes that can be translated and attribute translation formats, see "RADIUS Attributes" in the Feature Description.Precautions
<HUAWEI> system-view Enter system view, return user view with return command. [~HUAWEI] radius-server group huawei Info: Create a new server group [*HUAWEI-radius-huawei] commit [~HUAWEI-radius-huawei] radius-attribute translate extend hw-avpair hw-account-info access-request