In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to configure VLAN in esxi. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
When you configure VLAN in a virtualized environment, you need to understand the difference between VLAN and virtual VLAN on a physical switch in order to better configure the network.
First look at the type of link on the physical switch.
There are three link types of ports on the switch: access, trunk, hybird.
A port of type Access can only belong to 1 VLAN, which is generally used to connect to a computer.
Ports of Trunk type can allow multiple VLAN to pass through, and can receive and send messages of multiple VLAN. It is generally used for ports connected between switches.
The port of Hybrid type can allow multiple VLAN to pass, can receive and send messages of multiple VLAN, can be used to connect between switches, can also be used to connect to users' computers.
Hybrid port and Trunk port handle data in the same way, the only difference is when sending data: Hybrid port allows multiple VLAN messages to be sent without tagging, while Trunk port only allows default VLAN messages to be sent without tagging.
Default VLAN:
The Access port belongs to only one VLAN, so its default VLAN is the VLAN it is located in, and does not need to be set; the Hybrid port and the Trunk port belong to multiple VLAN, so you need to set the default VLAN ID. By default, the default VLAN for Hybrid and Trunk ports is VLAN 1
If the default VLAN ID of the port is set, when the port receives a message without VLAN Tag, it forwards the message to the port that belongs to the default VLAN; when the port sends a message with VLAN Tag, if the VLAN ID of the message is the same as the default VLAN ID of the port, the system will remove the VLAN Tag of the message and then send the message.
Note: the default VLAN is called "Pvid Vlan" for Huawei switches and "Native Vlan" for Cisco switches.
The following figure is a table of VLAN forwarding rules
Let's take a look at the VLAN configuration on EXSI
With virtual LAN (VLAN), a single physical LAN segment can be further segmented to isolate port groups from each other as if they were on different physical segments. You can configure VLAN in ESXi in three ways: external switch tag (EST), virtual switch tag (VST), and virtual client tag (VGT).
When using EST, all VLAN tagging of the packet is performed on the physical switch. In order to access the port on the physical switch, the host network adapter is connected. The port group connected to the virtual switch must have its VLAN ID set to 0. There is no need for VLAN on the EXSI machine.
With VST, all VLAN tagging of the packet is performed by the virtual switch before it leaves the host. The host network adapter must be connected to a trunk port on the physical switch. The port group connected to the virtual switch must have the appropriate VLAN ID specified.
When using VGT, all VLAN tags are performed by the virtual machine. When frames are passed in and out of a virtual switch, VLAN tags are retained between the virtual machine network stack and the external switch. The physical switch port will be set as a trunk port.
Note: when using VGT, the 802.1Q VLAN relay driver must be installed on the virtual machine.
Thank you for reading! This is the end of this article on "how to configure VLAN in esxi". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.