Switch Ethernet port type

Source: Internet
Author: User
Tags cisco switch

Switch Ethernet port type
Ethernet port type of the switch: Access, Trunk, and Hybrid Untag common ethernet packets. The NIC of a common PC can identify such packets for communication; the structure of the tag packet is changed after the source mac address and the target mac address, with 4-bytes vlan information added, that is, the vlan tag header; generally, the NIC of an ordinary PC can only belong to one VLAN for the following three link types of the www.2cto.com Ethernet port: Access, Hybrid, and Trunk: Access, A port is generally used to connect to a computer. A Trunk port allows multiple VLANs to pass through. It can receive and send packets from multiple VLANs. It is generally used to connect ports between switches; A Hybrid port allows multiple VLANs to pass through. It can receive and send packets from multiple VLANs. It can be used to connect switches or to users' computers. Hybrid and Trunk have the same processing method when receiving data. The only difference is that when sending data, Hybrid allows packets of multiple VLANs to be sent without tags, however, the Trunk port only allows packets sent by default VLAN without tags. The default VLANAccess port of www.2cto.com belongs to only one VLAN. Therefore, its default VLAN is its VLAN, which does not need to be set. The Hybrid and Trunk ports belong to multiple VLANs, therefore, you need to set the default vlan id. By default, the default VLAN of the Hybrid and Trunk ports is VLAN 1. If the default vlan id of the port is set, after the port receives packets without VLAN tags, the packet is forwarded to the port of the default VLAN. When the port sends a packet with a VLAN Tag, if the vlan id of the packet is the same as the default vlan id of the port, the system removes the VLAN Tag of the packet and sends the packet again. Note: The default vlan of a Huawei switch is called "Pvid Vlan ", the default VLAN of a Cisco switch is called the "Native Vlan www.2cto.com Access packet to determine whether VLAN information exists: If no VLAN information exists, the PVID of the port is configured and forwarded. If yes, the Vlan is discarded (default) when the port sends a packet, the Trunk receives a packet and determines whether VLAN information exists. If no VLAN information exists, the PVID of the port is configured and forwarded, if the trunk port is used to determine whether to allow data from the VLAN to enter: If yes, it is forwarded; otherwise, Hybrid is discarded and a packet is received to determine whether VLAN information exists: if no port exists, the PVID of the port is configured and forwarded. If yes, the hybrid port determines whether the VLAN data is allowed to enter. If yes, the port is forwarded, otherwise, the discarded Acess packet is used to strip the VLAN information of the packet and directly send the Trunk packet to compare the PVID of the port with the VLAN information of the packet to be sent. If the two are the same, the VLAN information is stripped, if not, Hybrid is directly sent to determine the attributes of the VLAN on the current port (disp interface shows which VLANs are untags and which VLANs are tags) if it is an untag, the VLAN information is stripped and then sent. If it is a tag, it is directly sent.

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.