291
Usage guidelines
A NAS-ID profile defines the binding relationship between VLANs and NAS-IDs. To configure a
NAS-ID profile, use the
aaa
nas-id
profile
command.
Portal access matches only the inner VLAN ID of QinQ packets. For more information about QinQ,
see
Layer 2—LAN Switching Configuration Guide
.
If an interface is specified with a NAS-ID profile, the interface prefers to use the bindings defined in
the profile.
If no NAS-ID profile is specified for an interface or no matching binding is found in the specified
profile, the device uses the device name as the interface NAS-ID.
Examples
# Specify the NAS-ID profile
aaa
for GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname–GigabitEthernet1/0/1] portal nas-id-profile aaa
Related commands
aaa
nas-id
profile
portal nas-port-id format
Use
portal nas-port-id format
to specify the NAS-Port-ID attribute format.
Use
undo portal nas-port-id format
to restore the default.
Syntax
portal nas-port-id format
{
1
|
2
|
3
|
4
}
undo portal nas-port-id format
Default
The format for the NAS-Port-ID attribute is format 2.
Views
System view
Predefined user roles
network-admin
Parameters
1
: Uses format 1 for the NAS-Port-ID attribute. Format 1 is expressed as follows:
{atm|eth|trunk}NAS_slot/NAS_subslot/NAS_port:XPI.XCI
AccessNodeIdentifier/ANI_rack/ANI_frame/ANI_slot/ANI_subslot/ANI_port[:ANI_XPI.ANI_XCI
].
2
: Uses format 2 for the NAS-Port-ID attribute. Format 2 is expressed as SlotID/00/IfNO/VlanID.
3
: Uses format 3 for the NAS-Port-ID attribute. Format 3 is expressed as
SlotID/00/IfNO/VlanID/DHCP option.
4
: Uses format 4 for the NAS-Port-ID attribute. Format 4 is expressed as
slot=**;subslot=**;port=**;vlanid=**;vlanid2=**;.
Usage guidelines
Use this command to specify the format of the NAS-Port-ID attribute in the RADIUS packets sent for
portal users to the RADIUS server. The device then automatically constructs a value for the
NAS-Port-ID attribute in the specified format to meet the RADIUS server requirements.