l2-check-fix
It is possible for Layer 2 entries to go out of sync between what is present in the hardware and in software. This command checks the status of Layer 2 entries, logs the errors, and fixes them when possible.
Syntax l2-check-fix
mac mac-address |
Specifies the virtual router ID from 0 to 15. |
vnet vnet-name |
Specifies the IP address of the entry. |
bd bridge-domain-name |
Specifies the bridge domain. |
vlan vlan-id |
Specifies the VLAN ID. |
public-vlan vlan-id |
Specify the public VLAN assigned to the vPort. |
vxlan vxlan-id |
Specify if you want to check and fix out of synch VXLANs IDs of vPorts. |
sw-port port-number |
Specify the software port. |
sw-state active|static|vrrp|tunnel|software|needs-peer-status|port-mac|hit|ageout-check|moving|loop-probe|local-tunnel|igmp-mac|user-flush|vxlan-loopback|router|update-peer-only|active-state-mismatch|peer-port-missing|peer-port-not-vlag| peer-port-not-orphaned|peer-port-not-cluster-link|sw-active|hsrp|invalid-vlan|owner-lost|cluster-link-down|vxlan-router|peer-force-resync|excess-mac-move-detected|excess-ip-move-detected|retry|evpn|evpn-wo-bgp|evpn-def-gw|evpn-delete |
Specify the software state to check. |
hw-port port-number |
Specify the port number of the hardware. |
tunnel-name tunnel-name-string |
Specify the tunnel name. |
hw-state active|static|vrrp|tunnel|software|needs-peer-status|port-mac|hit|ageout-check|moving|loop-probe|local-tunnel|igmp-mac|user-flush|vxlan-loopback|router|update-peer-only|active-state-mismatch|peer-port-missing|peer-port-not-vlag| peer-port-not-orphaned|peer-port-not-cluster-link|sw-active|hsrp|invalid-vlan|owner-lost|cluster-link-down|vxlan-router|peer-force-resync|excess-mac-move-detected|excess-ip-move-detected|retry|evpn|evpn-wo-bgp|evpn-def-gw|evpn-delete |
Specify the hardware state to check and fix. |
fix-action none|add-to-hardware|removefrom-hardware|fix-port-in-hardware|fix-tunnel-in-hardware|FAILED-add-to-hardware|FAILED-remove-from-hardware|FAILED-fix-port-in-hardware|FAILED-fix-tunnel-in-hardware|delete-port-mac|mark-port-mac |
Specifies the action used to fix the entry. |
Defaults None
Access CLI
History
Version 2.4 |
Command introduced. |
Version 2.4.1 |
The option, igmp-mac, user-flush, vxlan-loopback,router added to parameters sw-state and hw-state. The options, delete-port-mac and mark-port-mac added to the parameter fix-action. The parameter, public-vlan, also added. |
Version 2.6.2 |
Additional parameters added to sw-state and hw-state. |
Version 3.0.0 |
The parameter, l2-net, added. |
Version 5.1.1 |
The options, invalid-vlan|owner-lost|cluster-link-down|vxlan-router, added to the parameters, sw-state, and hw-state. |
Usage Use this command to verify and fix Layer 2 entries that are out of sync in the Layer 2 table.
Examples Use the following syntax to fix out of sync Layer 2 table entries.
CLI network-admin@switch > l2-check-fix vlan 25