![]() | Command: mac-security (Ethernet Interface Configuration) |
Configures MAC-based security for a set of ports.
mac-security [port <port>] {disable|enable}
mac-security [port <port>] learning
mac-security auto-learning [port <portlist>] {disable | enable | max-addrs <1-25>}
no mac-security auto-learning [port <portlist>]
default mac-security auto-learning [port <portlist>][enable ][ max-addrs ]
default mac-security [port <portlist>] [lock-out]
mac-security [port <port>] lock-out
no mac-security [port <port>] learning
no mac-security [port <port>] lock-out
Disabled
Ethernet Interface Configuration
| Parameter | Description |
|---|---|
|
auto-learning | Configure MAC Auto-Learning. The default is disabled. |
|
disable | Disable MAC security for port(s). |
|
enable | Enable MAC security for port(s). |
|
learning | Enable MAC security address learning for port(s). |
|
lock-out | Lock out ports from MAC security. |
|
max-addrs | Specifies the maximum number of MAC address to learn. |
|
port <port> | Specifies a port or list of ports |