07-07-2016 01:02 PM - edited 03-08-2019 06:32 AM
Hi,
I have a 2960X 24port switch. I would like to config one trunk port egress traffic with vlan tag. How do I configure it. I find some people say 'switchport trunk encapsulation dot1q'. But it's not supported on 2960X. Plz help to tell me the command to set this.
Here is my setup.
config port 1 vlan access mode to vlan 10
config port 2 vlan access mode to vlan 20
config port 4 vlan trunk mode, add vlan 10, 20
I hope port 1 income packet forward to port4 then go out with vlan 10 tag. port 2 income packet forward to port4 then go out with vlan 20 tag.
Thanks
Denis
07-07-2016 03:44 PM
Hi
you want commands to set your setup you've written?
if yes it would be
interface port1 (should be giga0/1)
switch mode acc
swit acc vlan 10
interface port2
Swi mode acc
swi acc vlan 20
int port4
swi mode trunk
swit trunk allowe vlan 10,20
is that what you're looking for?
thanks
PS: Please don't forget to rate and mark as correct answer if this solved your issue
07-07-2016 07:38 PM
Hi,
I have set the command you list.
But the egress packet of trunk port didn't bring vlan tag.
So I need additional command to make trunk port egress packet tag 802.1q.
Thanks
Denis
07-13-2016 06:20 AM
Hi,
So do you know how to make trunk port egress packet tag vlan 1q header?
Why 'switchport trunk encapsulation dot1q' doesnt support on 2960X. I think it's pretty common feature on switch.
Thanks
Denis
07-13-2016 01:58 PM
Hi
you want to get your frames tagged with the right vlan?
Just use "switchport mode trunk". The encapsulation dot1q is working on certain switches like cat 3750
hope this is clear
thanks
PS: Please don't forget to rate and mark as correct answer if this solved your issue
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide