clear ethernet-switching table
Syntax
clear ethernet-switching table <interface interface-name> <mac mac-address> <management-vlan> <persistent-learning interface | mac-address> <vlan vlan-name>
Syntax (QFX Series)
clear ethernet-switching table <interface interface-name> <mac mac-address> <persistent-learning interface | mac-address> <vlan vlan-name>
Description
On a QFabric system, using this command on an FCoE-enabled VLAN when FCoE sessions are active can cause traffic flooding and FCoE traffic drop. The FCoE sessions are not terminated and the traffic reconverges after a short period of time.
Clear learned entries, which are media access control (MAC) addresses, in the Ethernet switching table (also called the forwarding database table).
Options
none | Clear learned entries in the Ethernet switching table, except for persistent MAC addresses. |
interface interface-name | (Optional) Clear all learned MAC addresses for the specified interface from the Ethernet switching table. |
mac mac-address | (Optional) Clear the specified learned MAC address from the Ethernet switching table. |
management-vlan | (Optional) Clear all MAC addresses learned for the management VLAN from the Ethernet switching table. Note that you do not specify a VLAN name because only one management VLAN exists. |
persistent-learning interface | mac-address | (Optional) Clear all persistent MAC addresses. Use the interface option to clear all persistent MAC addresses on the interface, or use the mac-address option to clear a specific persistent MAC address. Use this command whenever you move a device in your network that has a persistent MAC address on the switch. If you move the device to another port on the switch and do not clear the persistent MAC address from the original port it was learned on, then the new port will not learn the MAC address and the device will not be able to connect. |
vlan vlan-name | (Optional) Clear all MAC addresses learned for the specified VLAN from the Ethernet switching table. |
Required Privilege Level
view
Output Fields
This command produces no output.
Sample Output
clear ethernet-switching table
user@switch> clear ethernet-switching table
Release Information
Command introduced in Junos OS Release 9.3.