Muti-Vlan configure on cisco switch problem

Hi All


        i have a problem of configuring mutli-vlan on cisco 2960s Switch, when i perform below command, all the switch port 1 - 23 will assigned to vlan 100, how do i perform vlan 1 & 100 together assigned on switch port from 1 - 23 ?

int range Gi1/0/1 - 23
switchport access vlan 100


Keith
piaakitAsked:
Who is Participating?
 
Don JohnstonConnect With a Mentor InstructorCommented:
You can't have two VLANs on an access port.

You can make a trunk that only allows two VLANs.

int range Gi1/0/1 - 23
switchport trunk allowed vlan 1, 100
switchport mode trunk

In this case, VLAN 1 is the native (or untagged) VLAN.
0
 
Jordan MedlenConnect With a Mentor Commented:
What is the reason you need both VLANs on each of those switchports simultaneously?
0
 
Cyclops3590Connect With a Mentor Commented:
the only exception to the single vlan on an access port is when you're using a voice vlan configuration.
0
 
Don JohnstonInstructorCommented:
A voice VLAN configuration is still a two VLAN trunk. It's just that it can be accomplished with different commands.
0
 
Cyclops3590Commented:
donjohnston, yes i agree, but you don't configure it as a trunk.  to me, its like the exception that proves the rule.  i agree its a trunk port, but the configuration looks like an access port.  that is what I was referring to.  but yes, access ports by definition are a single vlan only

EDIT: forgive me if I caused confusion with my statement
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.