Wireless Access

last person joined: yesterday 

Access network design for branch, remote, outdoor, and campus locations with HPE Aruba Networking access points and mobility controllers.
Expand all | Collapse all

How to delete 100 VLANs from the controller the efficient way? CLI?

This thread has been viewed 14 times
  • 1.  How to delete 100 VLANs from the controller the efficient way? CLI?

    Posted Jul 29, 2015 12:04 AM

    Hi guys,

    A newbie here with Aruba.

    We took over the wireless management of one of our buildings. It has Aruba Wireless (3600 controller w/ AP105) deployed there and now need some of your expertise so I can integrate it to our network.

     

    First, I need to delete 100s of unused VLANs from the controller.

    Is there an easy way to do it from the CLI instead of the GUI since the GUI is basically one-click-at-a-time method that's time consuming?

    I've been researching all over and the only thing that I found is how to add 100s VLAN through the CLI but zero article about deleting them.

    I could reset it to default and start over but since it's in a production environment, I'd prefer to do it slowly.

     

    TIA for the help.



  • 2.  RE: How to delete 100 VLANs from the controller the efficient way? CLI?
    Best Answer

    EMPLOYEE
    Posted Jul 29, 2015 12:10 AM

    no vlan range x-y



  • 3.  RE: How to delete 100 VLANs from the controller the efficient way? CLI?

    Posted Jul 29, 2015 12:17 AM

    Holy Crap! That was superfast respond.

     

    Thank you!



  • 4.  RE: How to delete 100 VLANs from the controller the efficient way? CLI?

    Posted Jan 12, 2017 04:38 PM

    Hi guys, i have ip addresses attached to 300+ vlans i need to delete.  Is there a more efficient way to delete ips from the vlans?  The controller will not let me delete a vlan without removing the ip attached to the vlan interface.

     

    tks!



  • 5.  RE: How to delete 100 VLANs from the controller the efficient way? CLI?

    Posted Jan 17, 2017 11:35 AM

    Hopefully, Collin could help you with that. I'm not an expert with the Aruba stuff. :( 



  • 6.  RE: How to delete 100 VLANs from the controller the efficient way? CLI?

    Posted Jan 17, 2017 11:39 AM
    Notepad++ is great for that type of stuff:

    First you need to remove the IP under the Layer 3 VLAN to be able to remove the Layer 2 VLAN

    REMOVE IP ADDRESS:

    The easiest way is to go into the CLI run the show running-config | begin interface
    Once you obtain all the information already configured, just copy and paste in Notepad ++

    For example
    Interface vlan 2
    Ip address x.x.x.x x.x.x.x

    Grab the “ip address” and replace it with “no ip address” and that will replace all the IPs under each Layer 3 VLAN

    Interface vlan 2
    No ip address

    And the copy and paste

    REMOVE VLAN:

    Then go back to the CLI and do a show vlan and that will provide all the VLANs configured in the controller, just copy and paste in Notepad ++

    For example
    vlan 2

    And grab the “v” and replace it with “no v” and then that will remove all the VLANs.

    No vlan 2

    And the copy and paste


  • 7.  RE: How to delete 100 VLANs from the controller the efficient way? CLI?

    Posted Feb 01, 2017 07:34 AM
      |   view attached

    Here's what helped for me.  Sorry I cross posted in another thread as well.

     

     Another method I found was with the use of excel and notepad ++.  the cli command i was after interms of scripting was

     

    interface vlan <ID> no ip address

    but i needed to do this 600 times per controller x 4 :-)

     

    - On an Excel spread sheet. I did the following;

      - column 1 : interface vlan

      - column 2 : <vlan id>

      - column 3 : no ip address

    I did a file down from so i was able to get vlan id's 10-11 for instanace

    so essentially it looked like this

     

    no vlan 10 ipaddress

    no vlan 11 ip address

    no vlan 12 ip address

    etc......

     

    Copied and pasted all the filled cells in notepadd++

    select all, edit -> Blank operations -> TAB to Space

    copied the text/cli commands from notepad ++

     

    pated in cli via putty and and voila.

     

    It seems more convuleded than it really is.  It took roughly 5 minutes to get rid of 600 vlans on each of our 4 of my controllers.

     

    I attached a test excel sheet along with the test txt file that has had the TAB converted in notepadd++.

    NOTE: You will need to convert the TAB to spaces so the cli commands will work properly.  If you have not converted the TAB to spaces the controller will not like the pasted commands :-) 

    Attachment(s)



  • 8.  RE: How to delete 100 VLANs from the controller the efficient way? CLI?

    EMPLOYEE
    Posted Jul 29, 2015 12:12 AM
    The CLI command would be
    no vlan x



    Thanks,
    Tim


  • 9.  RE: How to delete 100 VLANs from the controller the efficient way? CLI?

    Posted Jan 12, 2017 06:26 PM

    Hi Guys,

    Any idea is theres a to delete the multiple ip address associated to the vlans at mass?  I have 300+ vlans to delete from 2 controllers each and each one of those vlans have ips on them.

     

    thanks,

    Alfredo