P
P
Phorcys2021-05-13 19:57:18
Computer networks
Phorcys, 2021-05-13 19:57:18

What kind of traffic does the hybrid port carry from endpoints?

I want to know where I'm wrong.
So, as I understand the work of various ports:
Trunk is a trunk port that allows you to create a trunk connection between intermediate network devices (switches). Between ports in trunk mode, tagged traffic is transmitted. The switch removes the tag from the frame before it is sent to the access port. It has a Native VLAN that can receive untagged traffic.
Access - an access port that receives and transmits untagged traffic, each access port is assigned its own vlan.
Hybrid - in Cisco these are trunks configured like this:

switchport mode trunk
switchport trunk native vlan 33
switchport trunk allowed vlan 33, 34

Those. hybrid ports can operate as access ports, i.e. receive untagged traffic, and in the mode of receiving tagged traffic.
Yes, I understand that these are pseudo-hybrid ports.
Now I'll give a comparison with real hybrid ports on switches from other manufacturers, like Planet:
switchport mode hybrid
switchport hybrid pvid 33
switchport hybrid allowed vlan add 33 untagged
switchport hybrid allowed vlan add 34 tagged

For example, this way I can simultaneously connect a phone and a computer - the phone receives tagged traffic from 34 vlans, and the computer receives untagged traffic from 33.
Now I'm wondering what kind of traffic does the hybrid or pseudo-hybrid ports transmit?
It seemed to me that the switch, when receiving untagged traffic from the computer (from the hybrid port), then either tags it (if this traffic is not from Native VLAN), or passes it on untagged (if it is Native VLAN), and the phone is already transmitting tagged traffic. This is true? Well, or I'm confused and do not understand anything.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Strabbo, 2021-05-13
@Strabbo

Trunk - a trunk port that allows you to create a trunk connection between intermediate network devices (switches).

No, the term trunk has nothing to do with trunks and backbone links. Trunk - port mode, in which it can send tagged packets. You can use the trunk towards another router, switch, computer, server, and so on.
Those. hybrid ports can operate as access ports, i.e. receive untagged traffic, and in the mode of receiving tagged traffic.

Yes.
It seemed to me that the switch, when receiving untagged traffic from the computer (from the hybrid port), then either tags it (if this traffic is not from Native VLAN), or passes it on untagged (if it is Native VLAN), and the phone is already transmitting tagged traffic. This is true?

It all depends on what you need to do next with traffic.
switchport mode hybrid
switchport hybrid pvid 33
switchport hybrid allowed vlan add 33 untagged
switchport hybrid allowed vlan add 34 tagged

In your case, if the packet came untagged, it will go to vlan 33, if you need to send this packet to a neighboring port with the same config, then the switch will not tag it and will directly send it as it is. If, for example, this packet needs to be sent to another port that operates in trunk mode (for example, to another switch or to another port of the same switch, only with a different config (trunk)), then your packet will be transmitted already tagged.
switchport hybrid allowed vlan add 34 tagged

Allows you to receive a packet with vlan 34 and in the opposite direction, if you need to send a packet to this port with this vlan, then it will be tagged. If you need to send a packet to another place, then everything already depends on the config of another port.
You can accept a package untagged, attach a tag to it and send it tagged to another place.
If you take into account, then use wireshark on all ports, it will be visible there how and with what tags the packets go.
It all depends on the specific config.
If you started all this for the sake of connecting a phone + computer to one port, then cisco has a voice vlan for this, which is easily configured.

D
Dmitry, 2021-05-13
@Tabletko

Everything that is not tagged is stuffed into the native vlan with the corresponding tag, and the tagged one is transmitted as if through a trunk port, if there is permission, of course.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question