Verifying VLAN configuration from CLI

Following are the steps for verifying VLAN configuration from CLI:

  1. Log in to vSphere CLI. Type the following command in the console:
    esxcfg-vswitch -l 
    
  2. Alternatively, in the vMA appliance, type the vicfg-vswitch command—the output is similar for both commands:
    vicfg-vswitch –l
    
  3. The output of the excfg-vswitch –l command is as follows:
    Switch Name      Num Ports   Used Ports  Configured Ports  MTU     Uplinks
    vSwitch0         128         7           128               1500    vmnic3,vmnic2
    
      PortGroup Name        VLAN ID  Used Ports  Uplinks
      vMotion               2231     1           vmnic3,vmnic2
      Management Network    2230     1           vmnic3,vmnic2
    
    ---Omitted output---
    
  4. The output of the vicfg-vswitch –l command is as follows:
    Switch Name     Num Ports       Used Ports      Configured Ports    MTU     Uplinks
    vSwitch0 128 7 128 1500 vmnic2,vmnic3 ...

Get VMware vSphere Troubleshooting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.