l2-table-show
To display Layer 2 flows in the forwarding table of the switch datapath, use this command.
Syntax l2-table-show
owner node name |
The node name for the L2 table. |
mac mac-address |
The source MAC address for the flow. |
ip ip-address |
The IP address of the source for the flow. |
vnet vnet-name |
The vNET name. |
bd bridge-domain name |
Specify the bridge domain name assigned to vport. |
l2-net l2-net name |
The Layer 2 network. |
vlan vlan-id |
The VLAN identifier for the flow. |
public-vlan vlan-id |
The public VLAN. |
vxlan vxlan-id |
The ID for the VXLAN. |
ip ip-address |
The IP address. |
num-ips num-ips-number |
The number of IP addresses. |
config-intf config-intf-number |
Specifies a configured interface number. |
intf intf-number |
The interface number. |
ports port-list |
The source port number for the flow. |
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|anycast|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 |
The state of the vPort. |
svc-name svc-name-string |
The service name. |
hostname hostname-string |
Specifies a hostname. |
entity entity-string |
The VM or VM Kernel device name. |
power none|powered-off|powered-on|standby|suspended|unknown |
The power status. |
cpus cpus-number |
The number of CPUs assigned to the VM. |
disk disk-number |
The number of disks assigned to the VM. |
os os-string |
The name of the operating system (OS) running on the VM. |
portgroup portgroup-string |
The port group associated with the VM MAC Address. |
pg-vlans vlan-list |
The VLANs associated with the port group. |
vswitch vswitch-string |
The vSwitch associated with the NIC. |
vs-type none|host-vs|distributed-vs|unknown |
The vSwitch type. |
vnic-type untagged|tagged|trunked|vm-mgmt|vm-kernel|vMotion|vSAN|FTL| rep|p-NFC|r-NFC|mgmt| |
The vNIC type. |
config none|switch|ip|port| |
The configuration on the host. |
rem-switch node-name] |
A remote switch. |
rem-intf rem-intf-number |
A remote switch interface. |
rem-ports port-list |
A remote switch port list. |
peer-intf peer-intf-number |
Filter output by vPort peer interface. |
peer-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|anycast|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 |
Filter by the vPort peer state. |
peer-owner-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|anycast|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 |
Filter by the vPort peer owner state. |
status phy-up|up|disabled|hw-nat-loop|mirror-loop| |
The status of the entry. |
vtep-ip ip-address |
The IP address of the remote VTEP. |
tunnel tunnel-string |
Specifies a tunnel name, if configured. |
create-time date/time: yyyy-mm-ddThh:mm:ss |
The date, and time that the flow was inserted into the Layer 2 table. |
last-time date/time: yyyy-mm-ddThh:mm:ss |
The most recent date, and time that a packet matched the flow. |
vxlan-lru date/time: yyyy-mm-ddThh:mm:ss |
The last received update time for a VXLAN. |
hit number-of-hits |
The number of packets that matched the flow. |
migrate number-of-migrates |
The number of different ports that received packets matching the flow. |
drops number-of-drops |
The number of packets matching the flow that were dropped. |
hw-index hw-index-number |
The hardware index number. |
rt-if rt-if-string |
The router interface. |
hw-flags invalid-vlan|invalid-port |
Specifies any vPort hardware flags. |
mc-index mc-index-number |
The Layer 2 multicast group index in hardware. |
Defaults None
Access CLI
History
Version 1.2 |
Command introduced. |
Version 2.1 |
The parameter state added. |
Version 2.2.4 |
The parameters config-intf, rem-switch, rem-intf, and rem-ports added. |
Version 2.2.5 |
The parameters vlag-active, vlag-blocked, stp-edge-port, deprecated. The parameters l3-port and remote-l3-port added. |
Version 2.3 |
The parameters vlag-active, vlag-blocked, stp-edge-port added. The parameters vm-status, tunnel, and vxlan-lru added. |
Version 2.4 |
The parameters peer-, hw-index, and rf-if added. |
Version 2.6.2 |
The parameters ip, num-ip, svc-name, entity, power, portgroup, pg-vlans, vswitch, vs-type, vnic-type, and hw-flags added. The parameters hypervisor, vm-id, vm-name, vm-flavor, vm-status, memory, and blocked-port deprecated. |
Version 3.1.0 |
The parameters ND, and vtep-ip added. |
Version 5.2.0 |
The parameter bd added. |
Version 6.1.0 |
The options evpn, evpn-wo-bgp,evpn-def-gw,evpn-delete added to the state parameter. |
Usage Each switch has automatic safeguards to avoid forwarding loops in Layer 2 multipathing. This feature operates independently of Spanning Tree Protocol (STP) if STP is enabled. This command lists the Layer 2 flows in the forwarding table of the switch datapath. If there are ports in the blocked state may indicate the presence of loops in Layer 2 multipathing.
Examples To display the Layer 2 table, use the following command:
CLI (network-admin@switch) > l2-table-show
switch mac vlan ip ports state status migrate
------ ----------------- ---- ------------- ----- ------ ------ -------
switch 64:0e:94:c0:03:b7 1 19-20 active 364
switch 64:0e:94:c0:04:67 1 21-22 active 2321
switch 66:0e:94:6f:71:75 1 192.168.25.32 active host 230570
switch 66:0e:94:70:87:42 1 192.168.25.33 61,65 active host 178989
switch 66:0e:94:9c:8a:1c 1 192.168.25.31 61,65 active host 2687
switch 66:0e:94:dc:e0:95 1 192.192.192.4 53,57 active host 287280
switch f2:d1:52:9d:dd:4d 1 21-22 active 68512