Configure a port security interface

A MAC address can be defined as allowable by one of two methods: dynamically or statically. Both methods are used concurrently when a port is locked.

Dynamic locking implements a first arrival mechanism for port security. You specify how many addresses can be learned on the locked port. If the limit is not reached, a packet with an unknown source MAC address is learned and forwarded normally. If the limit is reached, no more addresses are learned on the port. Any packets with source MAC addresses that are not already learned are discarded. You can effectively disable dynamic locking by setting the number of allowable dynamic entries to zero.

Static locking allows you to specify a list of MAC addresses that are allowed on a port. The behavior of packets is the same as for dynamic locking: only packets with an allowable source MAC address can be forwarded.

To configure port security settings:

  1. Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
    The System Information page displays.
  2. Select Security > Traffic Control > Port Security > Interface Configuration.

    The Interface Configuration page displays.

  3. Select whether to display physical interfaces, LAGs, or both by clicking one of the following links above the table heading:
    • 1: Only physical interfaces are displayed. This is the default setting.
    • LAG: Only LAGs are displayed.

    • All: Both physical interfaces and LAGs are displayed.

  4. Select one or more interfaces by taking one of the following actions:
    • To configure a single interface, select the check box associated with the interface, or type the interface number in the Go To Interface field and click the Go button.

    • To configure multiple interfaces with the same settings, select the check box associated with each interface.

    • To configure all interfaces with the same settings, select the check box in the heading row.

  5. Specify the following settings:
    • Security Mode: Enable or disable the port security feature. The default is Disable.

    • Max Learned MAC Address: Specify the maximum number of dynamically learned MAC addresses. The default value is 4096. If you specify 0, the interface does not learn any MAC addresses.

    • Max Static MAC Address: Specify the maximum number of statically locked MAC addresses. The default value is 48.

    • Violation Shutdown: Enable or disable shutdown if a packet with a disallowed MAC address is received. The default is Disable.

    • Violation Trap: Enable or disable sending of violation traps if a packet with a disallowed MAC address is received. The default is Disable.

  6. Click the Apply button.

    Your settings are saved.

  7. To save the settings to the running configuration, click the Save icon.