Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Sharing VLAN ports

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

3 ACCEPTED SOLUTIONS

Accepted Solutions
Hall of Fame Super Silver

Re: Sharing VLAN ports

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

Hall of Fame Super Gold

Re: Sharing VLAN ports

Jamal

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

switchport mode access

to

switchport mode trunk

HTH

Rick

Hall of Fame Super Silver

Re: Sharing VLAN ports

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

4 REPLIES
Hall of Fame Super Silver

Re: Sharing VLAN ports

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

New Member

Re: Sharing VLAN ports

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?

Hall of Fame Super Gold

Re: Sharing VLAN ports

Jamal

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

switchport mode access

to

switchport mode trunk

HTH

Rick

Hall of Fame Super Silver

Re: Sharing VLAN ports

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

126
Views
0
Helpful
4
Replies
CreatePlease to create content