cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
484
Views
0
Helpful
4
Replies

2960X trunk port egress tagged

denis.hsieh
Level 1
Level 1

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

4 Replies 4

Francesco Molino
VIP Alumni
VIP Alumni

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 


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

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

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

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  


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question
Review Cisco Networking for a $25 gift card