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. Format: member/slot/port.

<VLAN-ID>

Specifies the number of a VLAN.

Authority

Administrators or local user group members with execution rights for this command.

Examples

On the 6400 Switch Series, interface identification differs.

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