cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
48126
Views
34
Helpful
12
Replies

disable vlan 1

sahar.co67
Level 1
Level 1

Hi friends. İ have one question about that how i can disable vlan 1 ?

Sent from Cisco Technical Support iPhone App

12 Replies 12

Sandeep Choudhary
VIP Alumni
VIP Alumni

HI Sahar,

use this:

switch#conf t

switch(config)# no vlan xx

switch#conf t

switch(config)# no int vlan xx

reagrds

Please rate if it helps.

Jon Marshall
Hall of Fame
Hall of Fame

Sahar

You cannot realy disable vlan 1 because it is the default vlan and even if you don't use it the switch still does. The steps you need to take to stop using vlan 1 -

1) remove the int vlan as per Sandeep's instructions

2) assign all ports into different vlans

3) change the native vlan on your switch to a vlan other than vlan 1. The native vlan should be a vlan that you do not assign any ports and it does not have a L3 SVI ie. int vlan xx

4) you can also clear vlan 1 off your trunk links but as i mentioned earlier the switch itself will still use vlan 1 to send it's own control protocols.

Be aware that all ports are in vlan 1 by default so you must do 2) to make sure vlan 1 is not being used.

Hello everybody,

In addition to the suggestions made by Jon and Sandeep, the interface Vlan1 can be shutdown but it cannot be removed. So the command no interface vlan1 will merely result in the switch saying:

% Default interface VLAN 1 may not be deleted.

Best regards,

Peter

@ peter Paluch: you are right ,

I just menstion for vlan xx.

we can not delete vlan 1,1002-1005.

we can just assgin the ports to other vlan to disable from vlan 1.

Regards

Peter is in my experience pretty much always right

Peter, thanks for pointing that out. This is the sort of thing i used to know !!!

Jon

sahar.co67
Level 1
Level 1

İn this command no int vlan xx int refer to interface? Or int is another thing?

Sent from Cisco Technical Support iPhone App

HI Sahar,

Int refer to Interface.

But ..keep in mind that u can not delte Vlan1(Nativ). and 1002-1005 these are all default vlan.

Other vlan u can delete.

Reagrds

please rate if it helps.

sahar.co67
Level 1
Level 1

İ do this interface range fastethernet 0/1 -2 , gigabitethernet 0/1 -2

Switchport access vlan 2

Switchport trunk native vlan 2

İs it correct?

Sent from Cisco Technical Support iPhone App

Hi Sahar,

These commands is correct:

BUt i dont know much furthere intention.

Regards

sahar.co67
Level 1
Level 1

You said in step 1 remove int vlan but i cannot remove int vlan 1 ;((

Sent from Cisco Technical Support iPhone App

You cannot remove Vlan 1, 1002,1003,1004,1005.

Other then these....u can delete.

Regards

stubinski
Level 1
Level 1

Hi,

"İ do this interface range fastethernet 0/1 -2 , gigabitethernet 0/1 -2

Switchport access vlan 2

Switchport trunk native vlan 2"

You do not need a native vlan if you have your switchport set as an Access port.  Native vlans are needed for Trunk ports.

Interface Gig0/1

switchport trunk encapsulation dot1q

switchport mode trunk

switchport trunk native vlan 2

You also need to make sure that the native vlan is the same on both ends of the trunk.

As for interface Vlan 1, Peter is correct.  You cannot delete interface Vlan1, only shut it down.

interface Vlan1

shutdown

Hope this helps

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco