< Home

port-security enable (network enhanced profile view)

Function

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.

Format

port-security enable

undo port-security enable

Parameters

None

Views

Network enhanced profile view

Default Level

3: Management level

Usage Guidelines

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

  • If the mac-limit command is configured in the user access profile view on an AS port bound to a network enhanced profile, the port security function cannot be enabled on the AS port.
  • The port security function cannot be disabled in a network enhanced profile if other port security configurations exist in the profile.

Example

# Enable port security in a network enhanced profile.

<HUAWEI> system-view
[HUAWEI] uni-mng
[HUAWEI-um] network-enhanced-profile name profile_1
[HUAWEI-um-net-enhanced-profile_1] port-security enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >