Vswitch Port LinkThere are many types. Let's take a look at them.
1. Introduction to vswitch Port Link types
The Ethernet port of a vswitch has three link types: Access, Trunk, and Hybrid.
1. An Access port can only belong to one VLAN and is generally used to connect to a computer;
2. A Trunk port can belong to multiple VLANs and can receive and send packets from multiple VLANs. It is generally used for ports connected between switches;
3. A Hybrid port can belong to multiple VLANs and can receive and send packets from multiple VLANs. It can be used for Switch Connection or user computer connection.
Hybrid and Trunk ports share the same characteristics that both link-type ports can be tagged when packets from multiple VLANs are sent; the difference is that the Hybrid port allows packets of multiple VLANs to be sent without tags, while the Trunk port only allows packets of the default VLAN to be sent without tags.
Three types of ports can exist on an Ethernet switch. However, you cannot directly switch between the Trunk port and the Hybrid port, but you can only set it to Access port first and then another type of port. For example, the Trunk port cannot be directly set to the Hybrid port, but can only be set to the Access port and then to the Hybrid port.
2. Precautions for using ports of Different Types
When configuring the Trunk port or Hybrid port and sending multiple VLAN packets using the Trunk port or Hybrid port, note that the default vlan id (PVID of the port) of the local port and the peer port) be consistent.
When isolate-user-vlan is used on a vswitch For L2 port isolation, the link type of the port involved in this configuration is automatically changed to the Hybrid type.
Hybrid port is flexible to meet special application requirements. Most of these requirements are on switches that cannot issue access control rules. The processing mechanism for sending and receiving packets through the Hybrid port is used to implement layer-2 Access Control between PCs in the same network segment.
Processing of various types of ports when receiving and sending packets
1. Processing when the port receives packets:
2. Processing when sending packets on the Port: