disable learning port

disable learning {drop-packets | forward-packets} port [port_list | all]

Description

Disables MAC address learning on one or more ports for security purposes.

Syntax Description

drop-packets

Specifies that packets with unknown source MAC addresses be dropped. When disable learning is configured, this is the default behavior.

forward-packets

Specifies that packets with unknown source MAC addresses be forwarded.

port

Specifies the port.

port_list

Specifies one or more ports or slots and ports.

all

Specifies all ports and slots.

Default

Enabled.

Usage Guidelines

Use this command in a secure environment where access is granted via permanent forwarding databases (FDBs) per port.

Example

The following command disables MAC address learning on port 4 on a switch:

disable learning ports 4

History

This command was first available in ExtremeXOS 10.1.

Platform Availability

This command is available on the ExtremeSwitching X435, X440-G2, X450-G2, X460-G2, X465, X590, X620, X670-G2, X690, X695, and X870 series switches.