how to change default Vlan

Answered Question
Apr 14th, 2009
User Badges:

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.

Correct Answer by Edison Ortiz about 8 years 1 month 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
User Badges:
  • Gold, 750 points or more

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
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

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