161
Use
undo portal nas-id
to restore the default.
Syntax
portal nas-id
nas-identifier
undo portal nas-id
Default
The device name specified through the
sysname
command is used as the NAS ID of a RADIUS
request. For information about the
sysname
command, see
Fundamentals Command Reference
.
Views
Interface view, system view
Default command level
2: System level
Parameters
nas-identifier
: NAS ID, a case-sensitive string of 1 to 20 characters. This value is used as the value of
the NAS-Identifier attribute in the RADIUS request to be sent to the RADIUS server when a portal
user logs on from an interface.
Usage guidelines
You can specify the NAS-identifier attribute value to be carried in a RADIUS request in system view
or interface view. The device prefers the value specified in interface view. If no NAS ID is configured
for the interface, the device uses the NAS ID configured in system view.
Examples
# Specify the NAS ID of a RADIUS request to be sent on GigabitEthernet 3/0/1 as
0002053110000460.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] portal nas-id 0002053110000460
portal nas-id-profile
Use
portal nas-id-profile
to specify a NAS ID profile for the interface.
Use
undo portal nas-id-profile
to cancel the configuration.
Syntax
portal nas-id-profile
profile-name
undo portal nas-id-profile
Default
An interface is not specified with any NAS ID profile.
Views
Interface view
Default command level
2: System level
Parameters
profile-name
: Name of the profile that defines the binding relationship between VLANs and NAS IDs,
a case-insensitive string of 1 to 16 characters. The profile can be configured by using the
aaa nas-id
profile
command. For more information about this command, see "AAA configuration commands."