Posted on April 11, 2019 1:59 am
 |  Asked by Imran Ali
Print Friendly, PDF & Email

I would to ask that I have a computer which is sending untagged traffic on switch interface eth20.

I want to tag that traffic with vlan 20. how can i do this? what command i run on switch interface eth20 to make it tagged VLAN 20.

Answered on April 11, 2019 9:14 am

Hi Imran.

I am not sure if I understood your use case, but in case the host is sending traffic without VLAN tag, you can configured the switch port as ‘switchport mode access’, ‘switchport access vlan 20’ (assuming vlan 20 is already created in the switch) or you can configure the switch port as ‘trunk’ and set the native vlan (vlan for frames without tags) to VLAN 20. This way, the untagged frames will be treated by the switch as part of VLAN 20 and they will be carried out other trunk interfaces as tagged frames.

Let me know if this helps.

Post your Answer

You must be logged in to post an answer.