The radius-server format-attribute command configures the format of the NAS-Port attribute.
The undo radius-server format-attribute command deletes the configured attribute format.
By default, the format of the NAS-Port attribute is new.
radius-server format-attribute nas-port nas-port-sting
undo radius-server format-attribute nas-port
Parameter |
Description |
Value |
---|---|---|
nas-port nas-port-sting |
Specifies the format of the NAS-Port attribute. In the nas-port-string parameter in binary format:
|
The value is a character string. When the nas-port-string parameter is in binary format, the value is a string of 1 to 32 characters. |
The NAS port format affects the information about the physical port. The NAS port format can be used by the RADIUS server to process services, such as binding the user name and port. This attribute is developed by Huawei, which is used to ensure connectivity and service cooperation among Huawei devices.
If the radius-server nas-port-format command sets the format of the NAS-Port attribute to new (the default format is new), the device will check whether the radius-server format-attribute nas-port command configuration exists. If so, the device will assemble the NAS-Port attribute in the format configured by the radius-server format-attribute nas-port command. If no, the device will assemble the NAS-Port attribute in the new format. If the radius-server nas-port-format command sets the format of the NAS-Port attribute to old, the device will assemble the NAS-Port attribute in the old format, regardless of whether the radius-server format-attribute nas-port command configuration exists.
# Configure the format of the NAS-Port attribute to s2t2p6no10ni12 in binary format. That is, the NAS-Port attribute consists of a 2-bit slot field, a 2-bit subslot field, a 6-bit port field, a 10-bit outer VLAN field, and a 12-bit inner VLAN field. If the outer VLAN does not exist, this field is filled in with ten 1s. If the inner VLAN does not exist, this field is filled in with twelve 1s. Therefore, the NAS-port attribute contains 32 bits.
<HUAWEI> system-view [HUAWEI] radius-server template template1 [HUAWEI-radius-template1] radius-server format-attribute nas-port s2t2p6no10ni12