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
When
new is specified:
- For Ethernet access users, the NAS port ID format is slot=xx; subslot=xx; port=xxx; VLAN ID=xxxx, in which slot ranges from 0 to 15, subslot from 0 to 15, port from 0 to 255, and VLAN ID from 1 to 4094.
- For ADSL access users, the NAS port ID format is slot=xx; subslot=x; port=x;VPI=xxx; VCI=xxxxx, in which slot ranges from 0 to 15, subslot from 0 to 9, port from 0 to 9, VPI from 0 to 255, and VCI from 0 to 65535.
When
new client-option82 is specified and a PPPoE or DHCP user goes online, if the PPPoE or DHCP packet sent by the user contains the Option 82 field, the device encapsulates the content of the circuit ID suboption in the Option 82 field into the NAS-Port-Id (87) attribute of a RADIUS packet, and then sends the RADIUS packet to the RADIUS server, binding the user account to the access location and preventing an account from being shared by multiple users. In this case, the format of NAS-Port-Id (87) attribute in the RADIUS packet is the same as that of the circuit ID suboption in the Option 82 field. To configure the format of the circuit ID suboption, run the
dhcp option82 format or
pppoe intermediate-agent information format command.
- If the PPPoE or DHCP packet does not contain the Option 82 field, the format of the NAS-Port-Id (87) attribute in the RADIUS packet is new.
- If the new client-option82 parameter is selected, the device encapsulates the content of the first 128 bytes in the Circuit ID suboption of the Option 82 field into the NAS-Port-Id (87) attribute of a RADIUS packet. If the first 128 bytes contain 0, the device only encapsulates bytes before the first 0. If the first byte of the Circuit ID value is 0 or no Circuit ID value exists, the format of the NAS-Port-Id (87) attribute in RADIUS packets is new.
When
old is specified:
- For Ethernet access users, the NAS port ID format is slot number (2 characters) + subslot number (2 bytes) + card number (3 bytes) + VLAN ID (9 characters).
- For ADSL access users, the NAS port ID format is slot number (2 characters) + subslot number (2 bytes) + card number (3 bytes) + VPI (8 characters) + VCI (16 characters). A field is prefixed with 0s if its actual value contains fewer characters.