I am a Cisco novice, now that we have got that out of the way I need your help.<\/p>\n
Advertisement
I need to assign a VLAN to a port on my layer 2 switch.<\/p>\n
Advertisement
I have a port that has the configuration that I need but I need to copy that to 2 other ports.<\/p>\n
I can log into my switch but from there I am lost, I would appreciate your help I am sure for someone who knows this is a doddle.<\/p>\n
So far I have learned I could use two commands - ‘show VLAN’ which will list all of my VLANs and which interfaces are assigned them.<\/p>\n
And I read on a website interface switchport access vlan #<\/p>\n
I have never used CLI before so please talk to me as such.<\/p>","upvoteCount":7,"answerCount":11,"datePublished":"2013-10-04T19:24:35.000Z","author":{"@type":"Person","name":"matthewwatkin6537","url":"https://community.spiceworks.com/u/matthewwatkin6537"},"acceptedAnswer":{"@type":"Answer","text":"
config t<\/p>\n
interface fast 0/10 (where 0/10 is the fast etherenet port you want to configure)<\/p>\n
switchport mode access<\/p>\n
switchport access vlan 10 (where 10 is the vlan you want to assign<\/p>\n
duplex auto<\/p>\n
speed auto<\/p>\n
end<\/p>\n
repeat for other ports. there is a lot more to it than that but that should get you started assuming your vlans were built properly.<\/p>","upvoteCount":4,"datePublished":"2013-10-04T19:31:52.000Z","url":"https://community.spiceworks.com/t/assign-vlan-to-port/244998/2","author":{"@type":"Person","name":"richardharrison3","url":"https://community.spiceworks.com/u/richardharrison3"}},"suggestedAnswer":[{"@type":"Answer","text":"
I am a Cisco novice, now that we have got that out of the way I need your help.<\/p>\n
I need to assign a VLAN to a port on my layer 2 switch.<\/p>\n
I have a port that has the configuration that I need but I need to copy that to 2 other ports.<\/p>\n
I can log into my switch but from there I am lost, I would appreciate your help I am sure for someone who knows this is a doddle.<\/p>\n
So far I have learned I could use two commands - ‘show VLAN’ which will list all of my VLANs and which interfaces are assigned them.<\/p>\n
And I read on a website interface switchport access vlan #<\/p>\n
I have never used CLI before so please talk to me as such.<\/p>","upvoteCount":7,"datePublished":"2013-10-04T19:24:35.000Z","url":"https://community.spiceworks.com/t/assign-vlan-to-port/244998/1","author":{"@type":"Person","name":"matthewwatkin6537","url":"https://community.spiceworks.com/u/matthewwatkin6537"}},{"@type":"Answer","text":"
How do I write this config to memory and do I need to go to elevated mode?<\/p>\n
This is great btw.<\/p>","upvoteCount":0,"datePublished":"2013-10-04T19:34:01.000Z","url":"https://community.spiceworks.com/t/assign-vlan-to-port/244998/3","author":{"@type":"Person","name":"matthewwatkin6537","url":"https://community.spiceworks.com/u/matthewwatkin6537"}},{"@type":"Answer","text":"
yes… you need to be in enable mode the prompt will look like this<\/p>\n
switch#<\/p>\n
not this<\/p>\n
switch><\/p>\n
then when you are done you just do a “write mem” or “copy run start”. then you should occasionally copy the configs to a tftp server so if the switch catches fire you can just drop your existing config on a new switch and be rolling as fast as possible. it can be done with spiceworks though i have not done that quite yet.<\/p>","upvoteCount":2,"datePublished":"2013-10-04T19:37:59.000Z","url":"https://community.spiceworks.com/t/assign-vlan-to-port/244998/4","author":{"@type":"Person","name":"richardharrison3","url":"https://community.spiceworks.com/u/richardharrison3"}},{"@type":"Answer","text":"
This is exactly what I need, thank-you very much, Im running out the door to go see Gravity but I will try this on Monday.<\/p>","upvoteCount":0,"datePublished":"2013-10-04T19:39:52.000Z","url":"https://community.spiceworks.com/t/assign-vlan-to-port/244998/5","author":{"@type":"Person","name":"matthewwatkin6537","url":"https://community.spiceworks.com/u/matthewwatkin6537"}},{"@type":"Answer","text":"
i found this. did not read it but maybe it is accurate <\/p>\n