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

Cisco Switch


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

1 Solution
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
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.

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.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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