• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 596
  • Last Modified:

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
0
piaakit
Asked:
piaakit
  • 2
  • 2
3 Solutions
 
Don JohnstonInstructorCommented:
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 MedlenCommented:
What is the reason you need both VLANs on each of those switchports simultaneously?
0
 
Cyclops3590Commented:
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

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now