327
port-security nas-id-profile
Use
port-security nas-id-profile
to apply a NAS-ID profile to global or port-based port security.
Use
undo port-security nas-id-profile
to restore the default.
Syntax
port-security nas-id-profile profile-name
undo port-security nas-id-profile
Default
No NAS-ID profile is applied to port security globally or on any port.
Views
System view
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
mdc-admin
Parameters
profile-name
: Specifies a NAS-ID profile by its name. The argument is a case-insensitive string of 1
to 31 characters.
Usage guidelines
A NAS-ID profile defines NAS-ID and VLAN bindings. You can create a NAS-ID profile by using the
aaa nas-id profile
command.
The device selects a NAS-ID profile for a port in the following order:
1.
The port-specific NAS-ID profile.
2.
The NAS-ID profile applied globally.
If no NAS-ID profile is applied or no matching binding is found in the selected profile, the device uses
the device name as the NAS-ID.
Examples
# Apply NAS-ID profile
aaa
to Ten-GigabitEthernet 1/0/1 for port security.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] port-security nas-id-profile aaa
# Globally apply NAS-ID profile
aaa
to port security.
<Sysname> system-view
[Sysname] port-security nas-id-profile aaa
Related commands
aaa nas-id profile
port-security ntk-mode
Use
port-security ntk-mode
to configure the NTK feature.
Use
undo port-security ntk-mode
to restore the default.