L Commands

Layer 2

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.

l2-net l2-net name

Specifies the Layer 2 network.

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

sw-port port-number

sw-state

active|static|vrrp|tunnel|soft

ware|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

Specify the software state to check.

hw-port port-number

Specify the port number of the hardware.

hw-state

active|static|vrrp|tunnel|

software|needs-peer-status|por

t-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

Specify the hardware state to check and fix.

fix-action

none|add-to-hardware|removefrom-

hardware|fix-port-in-hard

ware|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.

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