Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Skip to main content

My Subscriptions

Loading

Knowledge Base

Sample switch port configuration for VLAN and TRUNK MODE (1006628)

Last Updated: 3/20/2024Categories: InformationalTotal Views: 196401Language:
Chinese (Simplified)Portuguese (European)JapaneseSpanishEnglish

16 like this article

Subscribe to get an email
newsletter with new updates

16 people found this helpful Please provide article feedback:

Symptoms

Case1
When testing network connection using the ping command, the response fails with the following nodes:

Gateway IP address

VLAN gateway IP address

Host on the same subnet or other subnets are not able to ping each other

Case2
Traffic doesn't go through for sometime during ESXi boot-up, however it later normalizes

From vmkernel:
2021-07-29T13:09:36.314Z cpu10:2097715)TeamCheck: NTCCheckResult:962: Please check connectivity on DvsPortset-0!
2021-07-29T13:10:36.315Z cpu10:2097715)TeamCheck: NTCCheckResult:962: Please check connectivity on DvsPortset-0!
2021-07-29T13:11:36.315Z cpu10:2097715)TeamCheck: NTCCheckResult:962: Please check connectivity on DvsPortset-0!

Purpose

This article describes VLAN and TRUNK MODE configuration concepts of VST.

Note: VMware recommends utilizing VLAN technology to establish dedicated subnets for ESX/ESXi management, VMotion, and iSCSI network traffic.

Only allowing through VLAN traffic on physical switch ports connecting to ESX reduces TCP/IP overhead. Native VLANs do not tag the out going VLAN packets toward ESX NICs and if the same VLAN ID is used to configure the vSwitch port group, the vSwitch drops any packet that is not tagged for it, causing the connection to fail. Unnecessary VLAN traffic on a TRUNK port that connects to ESX can cause major performance issues.

Note: Do not use the Native VLAN ID of a physical switch as a VLAN on ESX/ESXi portgroups.

Resolution

This is a Cisco Switch port TRUNK sample configuration.

Apply the following commands to Cisco Switch command line:

interface GigabitEthernet1/1

description VMware ESX - Trunk A - NIC 0 – Port Description

switchport trunk encapsulation dot1q – ESX only supports dot1q and not ISL

switchport trunk allowed vlan 100,200 – Allowed VLANs

switchport mode trunk – Enables Trunk

switchport nonegotiate – ESX/ESXi does not support DTP dynamic trunking protocol. When configuring trunk port, set it to nonegotiate.

spanning-tree portfast trunk – Enables PortFast on the interface when it is in trunk mode.

Sample of ESX vSwitch configuration for VST mode:

esxcfg-vswitch [options] [vswitch[:ports]]

esxcfg-vswitch -v [VLANID] -p [port group name] [vswitch[:ports]]

esxcfg-vswitch -v 200 -p "Virtual Machine Network 2" vSwitch1

Related Information

To configure an ESX Virtual Switch with VLAN ID or VST mode see:

Sample configuration of virtual switch VLAN tagging (VST Mode) (1004074)

Troubleshooting network connectivity with Virtual Switch Tagging (VST) / External Switch Tagging (EST) mode on an ESX/ESXi host (1008001)

Sample configuration of virtual switch VLAN tagging (VST Mode)
Troubleshooting network connectivity with Virtual Switch Tagging (VST) / External Switch Tagging (EST) mode on an ESX/ESXi host
Amostra de configuração da porta do switch para VLAN e TRUNK MODE
Verificación de suficiente espacio disponible en el disco para una máquina virtual de ESX/ESXi
VLAN 和 TRUNK 模式的交换机端口配置示例
VLAN および TRUNK MODE のスイッチ ポート構成のサンプル

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)Portuguese (European)JapaneseSpanishEnglish

Attachments

Additional Resources

KB
•
在使用 VMware Converter 时可能不会与虚拟机一起转换的应用程序和驱动程序 (1006626)

KB
•
Windows 2003 を実行している仮想マシンの CPU 使用率が、数分おきに突然 100% に達する (2004508)

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

Results 1-3 of 3

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere ESXi

VMware vCenter Server Appliance

VMware vCenter Server

Related Versions:

Take Our Survey

Was this article helpful?

YES

NO

Copyright © 2005-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Terms of Use

Your California Privacy Rights

Privacy

Accessibility

Cookie Settings

Support Assistant