clear mac-address
Syntax
clear mac-address {port <PORT-NUM> [vlan <VLAN-ID>] | vlan <VLAN-ID> [port <PORT-NUM>]}
Description
Clears the dynamic learned MAC addresses on the specified port, VLAN, or combination of port and VLAN.
Command context
Manager (#)
Parameters
<PORT-NUM>
Specifies a physical port on the switch. Use the format
member/slot/port
(for example,1/3/1
).<VLAN-ID>
Specifies the number of a VLAN. Range: 1 - 4040.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Clearing the learned MAC addresses on a port:
switch# clear mac-address port 1/1/1
Clearing the learned MAC addresses on a combination of a VLAN and a port:
switch# clear mac-address port 1/1/1 vlan 20
switch# clear mac-address vlan 2 port 1/1/3