vDCA550-Objective 2.2-8-Use command line tools to troubleshoot and identify VLAN configurations

To troubleshoot VLAN-related issues on a vSS.  You can use the “esxcli network  vswitch standard portgroup list“ command to verify the Portgroup VLAN ID. You can change the old one or assign a new VLAN ID to a Portgroup with “esxcli network vswitch standard portgroup set –v” command.

Things to Know.

  • Ensure the VLAN ID is set to 0 (if no VLAN ID is required).
  • Use VLAN 4095 only if you want to trunk all VLANs 1 to 4094.
  • Your configured Portgroup VLAN ID should be matched to the VLAN ID on physical Switch.
  • Make sure you have choosed the right uplink for the portgroup.

Example 1:

Check the VLAN Configuration on “vSwitch1” Portgroup “VM-3”. Very his uplink should be “vmnic2”and configure the VLAN ID 100. 

List all the vSS Portgroups settings.

#esxcli network vswitch standard portgroup list

vDCA550-Obj-2-2-useclitotroubleshootandidentifyvlan-01

Verify the uplinks of “vSwitch1”

#esxcli network vswitch standard list –v vSwitch1

vDCA550-Obj-2-2-useclitotroubleshootandidentifyvlan-02

Set the Portgroup “VM-3” VLAN into “100”

#esxcli network vswitch standard portgroup set -v 100 -p VM-3

Verify the configured VLAN.

vDCA550-Obj-2-2-useclitotroubleshootandidentifyvlan-03

Example 2:

Verif the existing VLAN Configuration on “vSwitch1” PortGroup “VM-3” and Disable the “VLAN”.

Check the existing portgorup VLAN ID

#esxcli network vswitch standard portgroup list

vDCA550-Obj-2-2-useclitotroubleshootandidentifyvlan-03

Disable the VLAN on Portgroup “VM-3”

#esxcli network vswitch standard portgroup set -v 0 -p VM-3

Verify it

#esxcli network vswitch standard portgroup list

vDCA550-Obj-2-2-useclitotroubleshootandidentifyvlan-01

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s