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. Some switches (such as the Aruba 8400 Switch Series), use the format member/slot/port (for example, 1/1/1). Other switches use slot/port (for example, 1/1).

<VLAN-ID>

Authority

Administrators

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