cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2232
Views
0
Helpful
2
Replies

vlan change on multiple interfaces with script

sukhigrwl
Level 1
Level 1

Good Morning All,

we doing IP address and VLAN change project in my organization. just looking to automate this process so I don't have to go into each interface and change access/voice VLAN id manually.

  for example. 

if multiple interfaces are in VLAN 50 as access and 60 voice  (old). The script will identify those interfaces on given switch and change them from VLAN  access50/voice60 to new VLAN access70/voice80. if no voice VLAN configured on interface script skip the voice VLAN assignment step.

 

we mainly using Cisco 2960 S and 3850 switches in our network.

I never did any automation before so I am totally new to this. 

 

Thanks 

Sukhdeep Grewal 

 

2 Replies 2

Hello Daniel,

 

First of all thanks for your reply and link.

I did look at this post before but not sure about that reboot part.

and second, I don't think it will fulfill my one need where if port not in voice VLAN then script skip assigning voice VLAN to this port...

 

Best Regards

Sukhdeep 

 

Review Cisco Networking for a $25 gift card