The port-security enable command enables port security in a network enhanced profile.
The undo port-security enable command disables port security in a network enhanced profile.
By default, port security is disabled in a network enhanced profile.
This command can only be executed on a parent switch.
Application scenario
After creating a network enhanced profile, you can enable port security in the profile. After the profile is bound to an AS port, the configuration is automatically delivered to the AS port. The following configuration is generated on the AS:
# interface GigabitEthernet0/0/1 port-security enable #
In the preceding configuration, GigabitEthernet0/0/1 is used for reference only. The actual configuration depends on the profile.
Prerequisites