Introduction to three Huawei ports

Source: Internet
Author: User

Introduction to Huawei's three ports access: Mainly used to access terminal devices, such as PCs, servers, and print servers. Www.2cto.com trunk: it is mainly used to connect to other switches, so as to carry multiple VLANs on the online Road. 1. ethernet port link type Access, Trunk, and Hybrid Access: the port can only belong to one VLAN and is generally used to connect to the computer. Trunk type: the port can belong to multiple VLANs, packets of multiple VLANs can be received and sent, and are generally used for connection between switches. www.2cto.com Hybrid type: the port can belong to multiple VLANs and can receive and send packets of multiple VLANs, it can be used to connect vswitches or user computers. Note: Hybrid and Trunk have the same processing method when receiving data. The only difference is that when sending data: the Hybrid port allows messages of multiple VLANs to be sent without tags, while the Trunk port only allows messages of the default VLAN to be sent without tags. Three types of ports can exist on one device. However, you cannot directly switch between the Trunk port and the Hybrid port. You can only set it to Access port and 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: The default VLAN Access port for configuring the Ethernet port can belong to only one VLAN, so its default VLAN is its VLAN. You do not need to set the Hybrid and Trunk ports to belong to multiple VLANs, therefore, you need to set the default vlan id for the port. By default, the default VLAN of the Hybrid and Trunk ports is VLAN 1 3: After the default vlan id of the Ethernet port is configured, the port can receive and send packets in different situations. The port can receive packets. When the received packets do not contain tags, the port can receive the packets, add the default VLAN Tag for the packet. When the received packet carries a Tag: Acess port: receives a packet and determines whether the vlan id is the same as the default vlan id. If the vlan id is the same, the packet is received; if they are different, the message is discarded. Trunk port: receives a packet and determines whether the vlan id is the same as the default vlan id. If the vlan id is the same, the packet is received. otherwise: if the vlan id is the vlan id that the port allows to pass, the packet is received. If the vlan id is the vlan id that the port does not allow to pass, the packet is discarded. Hybrid port: receives a packet and determines whether the vlan id is the same as the default vlan id. If the vlan id is the same, the packet is received. otherwise: if the vlan id is the vlan id that the port allows to pass, the packet is received. If the vlan id is the vlan id that the port does not allow to pass, the packet is discarded. Port-to-message transmission: When the received packet does not contain tags: receives the packet, and adds the default VLAN Tag to the packet. When the received packet has tags, the Acess Port: when receiving a packet, because the vlan id is the default vlan id, you do not need to set it. Remove the Tag and send the trunk port directly: when receiving a packet, determine whether the vlan id is the same as the default vlan id, if the Tag is the same, the message is sent after the tag is removed. If the Tag is not the same, the message is sent. Hybrid port: When a packet is received and the vlan id is the same as the default vlan id, the packet is sent after the Tag is removed; if the port is not the same, run the command port hybrid vlan-id-list {tagged | untagged} to check whether the port is marked, then, the default vlan id of the Hybrid port or Trunk port sent to the device must be consistent with the default vlan id of the corresponding switch, otherwise, the port cannot forward packets normally. Switch-Ethernet0/1] int e0/1 [Switch-Ethernet0/1] port link-type hybrid [Switch-Ethernet0/1] port hybrid pvid vlan 10 [Switch-Ethernet0/1] port hybrid vlan 10 20 untagged [switch-Ethernet0/1] int e0/2 [Switch-Ethernet0/2] port link-type hybrid [Switch-Ethernet0/2] port hybrid pvid vlan 20 [Switch-Ethernet0/2] port hybrid vlan 10 20 untagged at this time the connected pcs under inter e0/1 and inter e0/2 can communicate with each other, however, the round-trip vlan used for data communication is different. The following example describes the data sent by pc1 when pc1 accesses pc2 under inter e0/2, the pvid vlan10 of inter0/1 encapsulates vlan10 and sends it to the switch. The switch finds that inter e0/2 allows vlan 10 Data to pass through, so the data is forwarded to inter e0/2, because vlan 10 on inter e0/2 is untagged, the switch removes the vlan10 mark on the data packet and sends it to pc2 as a normal package, in this case, pc1-> p2 uses vlan10 to analyze the pc2 packet return process and the data sent by pc2, the pvid vlan20 of inter0/2 encapsulates the vlan20 label and sends it to the switch. The switch finds that inter e0/1 allows vlan 20 Data to pass through, so the data is forwarded to inter e0/1, because vlan 20 on inter e0/1 is untagged, the switch removes the vlan20 mark on the data packet and sends it to pc1 as a normal package. In this case, pc2-> pc1 follows vlan20.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.