how to change default Vlan

Answered Question
Apr 14th, 2009

Could be changed the default Vlan (not native vlan). does exist any command to change it? i want to switch number from vlan 1 to X vlan without manually move all ports.

thanks.

I have this problem too.
0 votes
Correct Answer by Edison Ortiz about 7 years 9 months ago

The default vlan will always be Vlan 1 and it can't be changed.

You can change a group of switchports from the default Vlan 1 to Vlan X by using the interface range command, for instance:

switch(config)#interface range fx/1-48

switch(config)#switchport access vlan x

HTH,

__

Edison.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
thotsaphon Tue, 04/14/2009 - 08:32

Adriatik,

I'm not sure that I understand your question.

Let's say VLAN 10.

What about these command?

!

(conf)#vlan 10

(conf)#interface range g0/1 - 24

(conf-ran-if)#swi acc vla 10

!

Toshi

Correct Answer
Edison Ortiz Tue, 04/14/2009 - 08:34

The default vlan will always be Vlan 1 and it can't be changed.

You can change a group of switchports from the default Vlan 1 to Vlan X by using the interface range command, for instance:

switch(config)#interface range fx/1-48

switch(config)#switchport access vlan x

HTH,

__

Edison.

Actions

This Discussion