cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
24887
Views
17
Helpful
19
Replies

How to shutdown vlan in layer2

chandra_rc16
Level 4
Level 4

How to shutdown vlan in layer2 ? Thanks in advance.

I've done it using "shutdown" command. but still it is showing active in "show vlan".

switch0(config)#interface vlan 2
switch0(config-if)#
%LINK-5-CHANGED: Interface Vlan2, changed state to up

switch0(config-if)#shutdown


%LINK-5-CHANGED: Interface Vlan2, changed state to administratively down

switch0(config-if)#end
switch0#
%SYS-5-CONFIG_I: Configured from console by console

---------------------------

switch0#show vlan brief

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/13, Fa0/14, Fa0/15, Fa0/16

                                                Fa0/17, Fa0/18, Fa0/19, Fa0/20

                                                Fa0/21, Fa0/22, Fa0/23, Fa0/24

                                                Gig1/1, Gig1/2

2    VLAN0002                         active   

Regards,

Chandu

Regards, Chandu
19 Replies 19

  If these commands don't show up its a packet tracer problem .  This is a known IOs command that's been around for many years.

conf t

vlan 10

shutdown

There is no shutdown command here:

switch0(config-vlan)#?

VLAN configuration commands:

  exit  Apply changes, bump revision number, and exit mode

  name  Ascii name of the VLAN

  no    Negate a command or set its defaults

switch0(config-vlan)#

Regards, Chandu

rune9728
Level 1
Level 1

I believe the command you are looking for is:

switch0(config)#no vlan 2

Erasing/removing/deleting the VLAN is a bit different from placing it into shutdown (or suspend) mode.  For instance, I recall (?) if you remove the VLAN as you suggest, all ports placed in that VLAN will lose their VLAN relationship.  I.e. big difference in restoring the VLAN to use again compared to removing a shutdown (or suspend) mode within the VLAN definition.

This difference is also somewhat like using a shutdown command on a physical L3 port vs. "defaulting" the port.

BTW, as the other posters have noted, Packet Tracer very often does not provide 100% of the features/functions the real device does.

Joel Cagle
Level 1
Level 1

I realize that PT can be frustrating at times by not having all the commands that actual Cisco IOS does, but there are alternatives like GNS3/Dynamips (WAN in a box also does this I think) that can use the actual Cisco IOS roms and run them in a virtual environment. It's not as user friendly as PT but it does let you gain experience on the actual IOS's. All of that being said you can earn your CCNA with just PT. while you may not learn every shortcut and trick that the IOS can do, you do learn the "Cisco Way" of doing things and that will serve you well on the cert exams.