vlans

I am configuring a cisco 3550 inline power switch.  I am trying to configure ports 2 -24 to vlan 10 and 15.  When I put them in one vlan it takes them out of the other. How can I get them into both at the same time?
JobeethemageAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AkinsdNetwork AdministratorCommented:
A switchport can only be in 1 VLAN at a time.
I'm guessing you're trying to configure then for LAN and VOIP.

Assuming 10 is your LAN and 15 is your VOIP

Switch(config)#int range fa0/2 - 24
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#switchport voice vlan 15

If however VOIP is not your reason for this. Then you'll have to make one VLAN your native vlan

Switch(config-if-range)#switchport native vlan 15
Any untagged traffic will be treated as belonging to vlan 15
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Switches / Hubs

From novice to tech pro — start learning today.