Sharing VLAN ports

Answered Question
Sep 4th, 2009

Is it possible to share ports among different VLANs for Catalyst 2960? If so how?

I have this problem too.
0 votes
Correct Answer by Giuseppe Larosa about 7 years 4 months ago

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

Correct Answer by Richard Burts about 7 years 4 months ago

Jamal

Yes the other suggestion is to change the interface config from:

switchport mode access

to

switchport mode trunk

HTH

Rick

Correct Answer by Giuseppe Larosa about 7 years 4 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (3 ratings)
Loading.
Correct Answer
Giuseppe Larosa Fri, 09/04/2009 - 09:01

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

jekood001 Mon, 09/14/2009 - 07:05

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?

Correct Answer
Richard Burts Mon, 09/14/2009 - 07:48

Jamal

Yes the other suggestion is to change the interface config from:

switchport mode access

to

switchport mode trunk

HTH

Rick

Correct Answer
Giuseppe Larosa Mon, 09/14/2009 - 08:34

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

Actions

This Discussion