Refer to the H3C document below. Many ports are not necessarily the following three types. You can set the tag/untagged definition for import and export at will.
Differences between sending and receiving packets of different link types
|
Port type |
Processing of received packets |
Processing of sent packets |
|
When the received message does not contain a tag |
When the received packet carries a tag |
|
Access Port |
Add default VLAN tags for packets |
L
When the vlan id is the same as the default vlan id
L
When the vlan id is different from the default vlan id, the packet is discarded. |
Remove the tag and send the message |
|
Trunk Port |
L
When the default vlan id is in the list of VLAN IDs allowed by the port, it receives the packet and adds the tag of the default VLAN to the packet.
L
When the default vlan id is not in the list of VLAN IDs allowed by the port, the packet is discarded. |
L
When the vlan id is in the list of VLAN IDs allowed by the port
L
When the vlan id is not in the list of VLAN IDs allowed by the port, the packet is discarded. |
L
When the vlan id is the same as the default vlan id and is the vlan id allowed by the port, remove the tag and send the packet
L
When the vlan id is different from the default vlan id and is the vlan id allowed by the port, the original tag is kept and the packet is sent. |
|
Hybrid Port |
When the vlan id carried in the packet is the vlan id allowed by the port, the packet is sent andPort Hybrid
VLANCommand to configure whether the port carries a tag when sending packets of this VLAN (including the default VLAN) |