CCIE Pursuit Blog

June 16, 2007

Easy Way to Quickly Remove VLANs

Filed under: Cool Commands,IOS,Tech Tips — cciepursuit @ 5:25 pm

This one is a no-brainer, but I only started using it today (I was either manually deleting each vlan with “no vlan x” or deleting the vlan.dat and reloading the router):

So simple:
sw1(config)#no vlan 2-1000

Verify that VLANs (2-1000) are gone:
sw1(config)#do sh vlan br

VLAN Name                             Status    Ports
—- ——————————– ——— ——————————-
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                                Fa0/16, Fa0/17, Fa0/18, Fa0/19
                                                Fa0/20, Fa0/21, Fa0/22, Fa0/23
                                                Fa0/24, Fa0/25, Fa0/26, Fa0/27
                                                Fa0/28, Fa0/29, Fa0/30, Fa0/31
                                                Fa0/32, Fa0/33, Fa0/34, Fa0/35
                                                Fa0/36, Fa0/37, Fa0/38, Fa0/39
                                                Fa0/40, Fa0/41, Fa0/42, Fa0/43
                                                Fa0/44, Fa0/45, Fa0/46, Fa0/47
                                                Fa0/48, Gi0/1, Gi0/2, Gi0/3
1002 fddi-default                     act/unsup
1003 token-ring-default               act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup

This will save you a ton of time when you’re working through switching labs.



  1. thanks my friend.

    it is working.

    Comment by oz — November 11, 2008 @ 7:15 am | Reply

  2. Awesome (works as indicated)

    Comment by HM — March 9, 2009 @ 8:36 am | Reply

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at

%d bloggers like this: