O'Reilly logo

VMware vSphere Troubleshooting by Muhammad Zeeshan Munir

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required