< Home

radius-server nas-port-id-format

Function

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.

Format

radius-server nas-port-id-format { new [ client-option82 ] | old | vm | vendor vendor-id }

undo radius-server nas-port-id-format

Parameters

Parameter

Description

Value

new

Uses the new format of the NAS port ID.

-

client-option82

Uses the content of the Option82 field as the format of the NAS-Port-Id attribute.

-

old

Uses the old format of the NAS port ID.

-

vm

Uses the NAS port ID format of the VM.

NOTE:

Only the S5720-EI supports this parameter.

-

vendor vendor-id

Uses the NAS port ID format that is customized by the vendor.

The value is an integer. Currently, the value can only be 9, indicating that only the NAS port ID format that is customized by Cisco is supported.

Views

RADIUS server template view

Default Level

3: Management level

Usage Guidelines

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.

Example

# Set the format of the NAS port ID attribute to new.

<HUAWEI> system-view
[HUAWEI] radius-server template template1
[HUAWEI-radius-template1] radius-server nas-port-id-format new
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >