Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi Guys! I'm very much new to ci 1

Status
Not open for further replies.

newguy87

Technical User
May 29, 2012
2
US
Hi Guys!

I'm very much new to cisco IOS, Somehow I found myself in a job position where having practical knowledge of cisco commands can come in very handy.. So, here's my latest question.

I need to allow communications across a wider VLAN range than is currently specified in my switch config.. How can I change this line? I'll include some of the switch config.. the line I want to change is "vlan 2-35,99-115"


vtp mode transparent
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
vlan 2-35,99-115
!
interface FastEthernet0/1
switchport access vlan 11
spanning-tree portfast
!
interface FastEthernet0/2
switchport access vlan 2
spanning-tree portfast
!

 
So you want to add one or more additional vlans to this switch? This switch is running in transparent mode so you would have to manually add them which is probably why you asked.

To do that, just modify the vlan command you have there and then set a port that you want to be on that vlan. You may need to modify your trunk port to allow that vlan communication to another switch if you have specified an allow vlan list.

Code:
vlan 2-35,66,99-115
!
interface FastEthernet0/2
 switchport access vlan 66
 
Wow, That was much simpler than I thought it would be.

Thank you very much for your help! It's greatly appreciated!
 
You really don't need to modify the whole line just use. This adds vlan 66 to the listed vlans. To remove just go into config mode and enter " no vlan 66 " .

conf t
vlan 66
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top