02-13-2006 12:57 AM - edited 03-03-2019 01:48 AM
hi,
Can i configure single port with multiple vlans on L2 2950 switch, if yes then what are the commands.
Thanks,
Vishal D.
02-13-2006 01:05 AM
Vishal,
You can indeed. A port with multiple VLANs is called a trunk interface and carries 802.1q or ISL-tagged traffic. The command to make a port a trunk is 'switchport mode trunk'
Hope that helps - pls rate the post if it does.
Paresh
02-13-2006 02:29 AM
Paresh,
i think i have not quoted the question properly.
see by doing 'switchport mode trunk' it will flow the traffic of all vlan right.
but if i want to give access of selected vlans then what to do,
i have tried the command 'switchport trunk allowed vlan 1,2,3'
do i have to give encapsulation on that port, but on 2950 encap cannot be configured.
now can u tell me wht is possible to do.
Thanks for ur reply.
Vishal.
02-13-2006 02:38 AM
Hi Vishal,
What sort of encap do you want to use on the trunk - 802.1q ? AFAIk, the 2950 does not support ISL, so the only option is 802.1q, which is enabled by default. Therefore, you do not need to configure any encapsulation and the 'switchport trunk allowed vlan 1,2,3' will limit your VLANs on the trunk appropriately.
Hope that helps - pls rate the post if it does.
Paresh
02-13-2006 02:58 AM
Perhaps a better way might be to go with:
(config-if)#switchport trunk allowed vlan remove 2-1001
(config-if)#switchport trunk allowed vlan add 2,3,4
02-14-2006 12:43 AM
William,
Thanks for ur suggestion,
i tried the commands u said but the problem i face is when i do sh vlan it doesn't show the interface can u tell me why it is not visible.
waiting for ur reply,
Thanks,
Vishal.
02-14-2006 03:04 PM
Hi Visha,
The 'sh vlan' command will only show information for access-ports. Use the 'sh interface trunk' command to get information on trunks...
Hope that helps - pls rate the post if it does.
Paresh
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