Cisco Switch


I have been asked to tag two switch ports to a certain vlan, what commands should i use to accomplish this?

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.

Patrick BogersDatacenter platform engineer LindowsCommented:

switch(config)# interface fa0/1  (as an example)
 switch(config-if)# switchport access vlan 9 (again an example)
 switch(config-if)# switchport mode access

Then check
switch# sh vlan br

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
davidm27Author Commented:
cheers mate works perfectly
Login--Type en and then conf t [Password required]

create the vlan if it does not exist - type vlan x [x=integer]
access the switchport interfaces - type int ge0/x [x=interface]
apply settings for access port - type switchport access vlan x
additional settings - type speed 10/100/1000 duplex full

You can add a description as well nice for monitoring and troubleshooting.
 Also remember to create a trunk port and allow access for your vlan basically this trunk will connect your switches to other switches/routers

switchport trunk allow access vlan x

Look at this site for more details.
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.