Access,hybrid and Trunks

Source: Internet
Author: User

The concept of the default VLAN
The access port belongs to only 1 VLANs, so its default VLAN is the VLAN in which it resides, without setting;
The hybrid port and trunk ports belong to multiple VLANs, so you need to set the default VLAN ID. By default, the default VLAN for the hybrid port and trunk port is VLAN 1
If the default VLAN ID of the port is set, when the port receives a message without VLAN tag, the message is forwarded to the port belonging to the default VLAN, and when the port sends a message with VLAN tag, if the VLAN ID of the message is the same as the port default VLAN ID, The system will remove the VLAN Tag of the message and then send the message.

The switch interface data processing process is as follows:

acess Port Ticker text :
Receive a message to determine if there is VLAN information: if there is no pvid on the upper port, and exchange forwarding, if there is a direct discard (default)
acess Port transmitter text :
The VLAN information of the message is stripped and sent directly out

Trunk Port Ticker text :
Receive a message to determine if there is VLAN information: if there is no pvid on the upper port, and exchange forwarding, if there is to determine whether the trunk port to allow the VLAN data entry: If you can forward, otherwise discarded
Trunk Port Sender Text :
Compare the pvid of the port and the VLAN information of the packet to be sent, if the two are equal, strip the VLAN information and send it, if not equal, send it directly.

Hybrid Port Ticker text :
Receive a message to determine if there is VLAN information: if there is no pvid on the upper port, and exchange forwarding, if there is the hybrid port to determine whether to allow the VLAN data entry: If can be forwarded, otherwise discarded (at this time the port on the UNTAG configuration is not considered, UNTAG configuration only works when sending messages)
Hybrid Port transmitter text :
1. Judge the VLAN's properties on this port (disp interface to see which VLANs are UNTAG and which are tags)
2, if the UNTAG is stripped VLAN information, and then sent, if the tag is sent directly

The following cases can help you understand the hybrid port mode of Huawei Switch
[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 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 untagged
At this time inter E0/1 and inter E0/2 the connected PC can be interoperable, but the data when the exchange of the return VLAN is different.
The following is an example of the E0/2 received under the PC1 Access Inter PC2 under Inter E0/1

The data emitted by the PC1 is fed into the switch by the INTER0/1 pvid vlan10 encapsulation vlan10, and the switch discovers that the inter E0/2 allows VLAN 10 data to pass through, and the data is forwarded to inter E0/2 because Inter e0/ 2 on VLAN 10 is untagged, so the switch at this time to remove the packet vlan10 mark, in the form of ordinary packets to PC2, at this time pc1->p2 go is vlan10
Again to analyze the process of PC2 to PC1 back to the packet, PC2 sent the data, by the INTER0/2 pvid Vlan20 package vlan20 labeled after the switch, the switch found inter E0/1 allow VLAN 20 data through, so the data is forwarded to Inter E0 /1, because the Inter e0/1 VLAN 20 is untagged, so the switch at this time to remove the packet vlan20 on the token, in the form of ordinary packets sent to PC1, at this time PC2->PC1 go vlan20

Summarize a "word" ^_^:
1.Access, can only belong to one VLAN, while the port of the PC is set to Access
2.Trunk, allowing multiple VLANs to pass. General user access and aggregation switches are connected. When the port is out of the switch, if the VLAN is allowed to pass, the VLAN tag is carried out, and if the label and Pvid are the same, the label is stripped out of the switch.
3.Hybrid, when access switch can be free to tag, go to label, need to manually configure, more flexible.

Access,hybrid and Trunks

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.