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, see Display learned MAC addresses and convert them to static addresses. 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 device UI using your login details and device admin password.

    The Dashboard page displays.

  2. Select Security > Traffic Control > Port Security > Interface Configuration.
    The Interface Configuration page displays.
  3. From the Filter By menu, select to display ports only (Ports), LAGs only (LAG), or both ports and LAGs (All).
  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 (for example, 3g3 mg3 xg3) in the Search 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. Click the Edit button.
    The Edit Interface Configuration pop-up window displays.
  6. From the Port Security menu, select to enable or disable port security for the port:
    • Disabled: Port security is disabled for the port. This is the default setting.
    • Enabled: Port security is enabled for the port.
  7. In the Max Learned MAC Address field, type the maximum number of MAC addresses that the port can learn dynamically.
    The range is from 0 to 4096. The default setting is 4096.
  8. In the Max Static MAC Address field, type the maximum number of statically locked MAC addresses that the port can hold.
    The range is from 0 to 48. The default setting is 48.
  9. From the Enable Violation Shutdown menu, select to enable or disable the shutdown of the port if a violation occurs:
    • No: The port is not shut down if a violation occurs. This is the default setting.
    • Yes: The port is shut down if a violation occurs.

    An example of a violation is an incoming packet from a disallowed MAC address.

  10. From the Enable Violation Traps menu, select to enable or disable the transmission of an SNMP trap if a violation occurs:
    • No: A trap is not sent if a violation occurs. This is the default setting.
    • Yes: A trap is sent if a violation occurs.
  11. Click the Save button.
    Your settings are saved.