09-04-2009 05:59 AM - edited 03-06-2019 07:36 AM
Is it possible to share ports among different VLANs for Catalyst 2960? If so how?
Solved! Go to Solution.
09-04-2009 09:01 AM
Hello Jamal,
I guess you would like to have multiple vlans on the same port.
This is called a trunk port
example:
int f0/5
switchport
switchport enc dot1q
switchport mode trunk
switchport trunk allowed vlan 10,20,30
this puts port fas0/5 in vlans 10,20,30.
be aware that device that connects to this must be able to understand the so called vlan tag and to agree on the list of permitted vlans.
Hope to help
Giuseppe
09-14-2009 07:48 AM
Jamal
Yes the other suggestion is to change the interface config from:
switchport mode access
to
switchport mode trunk
HTH
Rick
09-14-2009 08:34 AM
Hello Jamal,
if switchport enc dot1q is not supported it means that C2960 like C2950 supports only dot1q.
Don't worry about this.
as Rick has noted you need the
switchport mode trunk to make the port acts as a trunk
Hope to help
Giuseppe
09-04-2009 09:01 AM
Hello Jamal,
I guess you would like to have multiple vlans on the same port.
This is called a trunk port
example:
int f0/5
switchport
switchport enc dot1q
switchport mode trunk
switchport trunk allowed vlan 10,20,30
this puts port fas0/5 in vlans 10,20,30.
be aware that device that connects to this must be able to understand the so called vlan tag and to agree on the list of permitted vlans.
Hope to help
Giuseppe
09-14-2009 07:05 AM
Hi Giuseppe,
I don't have the "switchport encapsulation dot1q" as a command option.
I still am not able to put a phyical port on two seperate vlans. Here is what the running configuration had for my port.
Int gb 0/5
switchport access vlan 10
switchport trunk allowed 10, 20
switchport mode access
I'm not sure how to grant access to vlan 20.
If enter "switchport access to vlan 20" for that port, vlan 10 is no longer on the access list. It almost as if I can only assign one port to only one vlan.
I can't get port 5 to be on both vlan 10 and 20.
Any other suggestions?
09-14-2009 07:48 AM
Jamal
Yes the other suggestion is to change the interface config from:
switchport mode access
to
switchport mode trunk
HTH
Rick
09-14-2009 08:34 AM
Hello Jamal,
if switchport enc dot1q is not supported it means that C2960 like C2950 supports only dot1q.
Don't worry about this.
as Rick has noted you need the
switchport mode trunk to make the port acts as a trunk
Hope to help
Giuseppe
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