How to add a process to remove VLAN information after a MAC frame enters the switch
This article is just the understanding of how to add the removal VLAN process after the MAC frame enters the switch, please correct me if there is a mistake. The port for switches has two roles: Access port and trunk port. access ports can belong to only one VLAN, and trunk ports can transmit information for multiple VLANs What is the complete process? 650) this.width=650; "Src=" http://img.blog.csdn.net/20150308212221925? watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvzmx4c2hhbmc=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center "alt=" Center "/> , PC0 send data to PC1, When the PC0 sends a MAC frame into the access port, the switch gives it a label----802.1q tag to mark the change to Vlan10. When the data is to be emitted from Switch0 's F0/2, the switch looks at the VLAN information for that data, discovers that the data belongs to Vlan10, and the native VLAN on the trunk link is VLAN 1, then the switch does not do any processing and sends the data directly. Switch1 received after the change data, it and trunk of the native VLAN comparison, not the same, do not do processing, the data into the switch, look at the VLAN table, found that F0/1 belongs to Vlan10, the switch to the data on the label removed after it issued F0/1 port.
If the native VLAN on the trunk link is VLAN 10, what is the process of data processing?
PC0 send data to Switch0 F0/1, switch for it to hit the label belongs to Vlan10, to enter F0/2, found that the data belongs to Vlan10, and trunk of the native VLAN 101 kind, At this time the exchange opportunity to change the data belongs to the VLAN10 label removed and sent out, the data reached the Switch1 F0/2 port, the switch to view the data found that the data does not have VLAN information, that is, the data does not say that he belongs to the VLAN! At this point the switch considers the data to be the trunk of the native VLAN, which is VLAN10, the switch is tagged with VLAN 10 for the data, the data goes into the switch, and then enters the F0/1
This article is from the "Luohaizi" blog, make sure to keep this source http://597881426.blog.51cto.com/6819945/1618430
How to add a process to remove VLAN information after a MAC frame enters the switch