Enabling port security

Restrictions and guidelines

When you configure port security, follow these restrictions and guidelines:

For more information about 802.1X authentication and MAC authentication configuration, see "Configuring 802.1X" and "Configuring MAC authentication."

Prerequisites

Before you enable port security, disable 802.1X and MAC authentication globally.

Procedure

  1. Enter system view.

    system-view

  2. Enable port security.

    port-security enable

    By default, port security is disabled.