The radius-server nas-port-id-format command sets the format of the NAS port ID attribute.
The undo radius-server nas-port-id-format command restores the default format of the NAS port ID attribute.
By default, the new format of the NAS port ID attribute is used.
radius-server nas-port-id-format { new [ final-separator ] | old }
undo radius-server nas-port-id-format
Parameter |
Description |
Value |
|---|---|---|
new |
Uses the new format of the NAS port ID. |
- |
final-separator |
Uses the new format of the NAS port ID and uses the semicolon (;) as the end character. If this parameter is not specified, the new format of the NAS port ID is used, but no end character is used. |
- |
old |
Uses the old format of the NAS port ID. |
- |
Usage Scenario
The NAS port format and the NAS port ID format are developed by Huawei, which are used to ensure connectivity and service cooperation among Huawei devices.
Precautions
For Ethernet access users, the NAS-Port-Id is in the format "slot=xx; subslot=xx; port=xxx; vlanid=xxxx", in which "slot" ranges from 0 to 15, "subslot" 0 to 15, "port" 0 to 255, "vlanid" 1 to 4094.
For ADSL access users, the NAS-Port-Id is in the format "slot=xx; subslot=x; port=x; VPI=xxx; VCI=xxxxx", in which "slot" ranges from 0 to 15, "subslot" 0 to 9, "port" 0 to 9, "VPI" 0 to 255, and "VCI" 0 to 65535.
For Ethernet access users, the NAS-Port-Id is in the format "port number (2 characters) + sub-slot ID (2 bytes) + card number (3 bytes) + VLAN ID (9 characters)."
For ADSL access users: port number (2 characters) + sub-slot ID (2 bytes) + card number (3 bytes) + VPI (8 characters) + VCI (16 characters). The fields are prefixed with 0s if they contain fewer bytes than specified.