问题原文
原帖链接 · Grant · CC BY-SA 3.0
I understand how VLANs work, but am not quite sure what the various settings in my HP switch actually do.
I have an HP 1910 switch, and I'm using the web interface to configure it (personally I'd prefer the CLI, but we have some CLIphobic people involved).
I can set a port to be a tagged or untagged member of a VLAN. I can only set one untagged VLAN on a port, which makes sense. I can also set the port type to Access, Trunk or Hybrid.
What I don't understand is how those two options combine. Why would I set a port as Access, and have it a tagged member of multiple VLANs?
What is the difference between Access, Trunk and Hybrid, and how do they differ in how they handle incoming and outgoing tagged and untagged traffic?
已采纳解答
原帖链接 · Grant · CC BY-SA 4.0
I believe I have found the answer on page 148 of the HP 1910 User Guide
For inbound untagged frames:
- Access port will tag the frame with the PVID of the port.
- Trunk and Hybrid will check if the PVID of the port is permitted on that port, and tag it. If the PVID is not one of the ones allowed on the port, the frame is dropped.
For inbound tagged frames:
- Access port will pass the frame along if the VLAN tag matches the port's PVID. Otherwise it will drop the frame.
- Trunk and Hybrid will receive the frame if the VLAN is one of the ones allowed on that port, otherwise they drop it.
For outbound traffic (this is where Trunk and Hybrid differ):
- Access port will remove the VLAN tag, and send the frame untagged.
- Trunk will remove the tag if it matches the PVID and the port belongs to the PVID. It will send it with a VLAN tag if the VLAN is carried on that port, but different from the PVID.
- Hybrid will send the frame tagged or untagged, depending on whether the VLAN is set for tagged or untagged membership. Hybrid ports can have multiple untagged VLANs.
This still doesn't give a satisfactory explaination of hybrid ports, but explains everything else well enough. Hopefully someone can add some information about hybrid ports.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
