cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
534
Views
5
Helpful
3
Replies

Setting a vlan to only unused ports

b1brock23
Level 1
Level 1

Is there a command to add a vlan to only unused ports on switch.  We have existing production switches but we would like to add a unused vlan to all unused ports.   I know the range command, but there are many active ports on the switch and wanted to find a quicker way to add this besides configuring each individual port.

Thanks.

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

the port by default assign to VLAN1, only make keep VLAN1 not use and hence you get what you want. 

EEM and TCL would be the easiest once they have been added to the switch configuration.  Alternatively you could look into using products like Cisco Prime or APIC EM.  And if you really want to start coding, you could go down the python route.

Ansible could also be an option.

But as for an "on the box" command.  The range command is the best you will get.

--
Please remember to select a correct answer and rate helpful posts
Review Cisco Networking products for a $25 gift card