Cannot delete a VLAN from a Cisco 2950
-
My practice rig for the CCENT includes a Cisco 2950 I created vlan222. I would like to delete, however I am unable.
I tried
(config)#no vlan 222
a "#sh vlan br" does not show vlan 222 as I would expect.
However a "#sh ip int br" does list and interface Vlan222 (See below)
Thoughts
KSwitch#sh vlan br
VLAN Name Status Ports
1 default active
11 Engr active Fa0/2, Fa0/3, Fa0/4, Fa0/5
Fa0/6, Fa0/7, Fa0/8
21 Sales active Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
31 Ops active Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
101 NetMan active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
KSwitch#
KSwitch#sh ip int br | i Vlan
Vlan1 unassigned YES TFTP administratively down down
Vlan11 172.16.11.1 YES manual administratively down down
Vlan21 172.16.21.1 YES manual administratively down down
Vlan31 172.16.31.1 YES manual administratively down down
Vlan101 172.16.101.1 YES TFTP up up
Vlan222 unassigned YES manual administratively down down -
Paul,
Here's what appears to have happened...
According to yourKSwitch#sh vlan br
You created multiple vlans! good!
Assigned ports to specific vlans! good!
You created also a Vlan 222 then deleted it and no longer shows! good!
According to yourKSwitch#sh ip int br | i Vlan
You created "virtual interfaces" called:
Vlan11 172.16.11.1 YES manual administratively down down
Vlan21 172.16.21.1 YES manual administratively down down
Vlan31 172.16.31.1 YES manual administratively down down
Vlan101 172.16.101.1 YES TFTP up up
Vlan222 unassigned YES manual administratively down do
The way I spotted this was the assignment of the IP addresses to the vlan interfaces. Normally, you do this on a Layer 3 switch to indicate your default gateway for the specific vlan or for management of that vlan.
To remove the interface Vlan222, try this:KSwitch# Kswitch(config)#no interface vlan 222 Kswitch(config)# %LINK-5-CHANGED: Interface Vlan222, changed state to administratively down Kswitch(config)# Kswitch(config)#do show ip int brief
The result should be that int vlan 222 is removed.
Cordially,
Ronnie Wong
Host, ITProTV -
Thanks Ronnie. That worked great.
So the key was that I created both a Vlan and an Interface but only deleted the Vlan.
Thanks for the help
Paul Kanakkanatt -
Just for my own further enlightenment. I actually created an interface called "Vlan222".
Did I have to intentionally do this or did the interface "Vlan222" get created automatically when I created 802.1Q Vlan 222?
Can I name my interface (specifically Virtual Interfaces) whatever I want?
Is it best practice to name them after the VLan to which they are associated?
Thanks again -
Paul,
You don't actually have to create a virtual interface to work with vlans. The virtual interface is not created automatically. Usually, you create one on a layer 3 switch, for inter-vlan routing on the layer 3 switch.
In reality, I've never tried to create a virtual interface with a name other than "vlan ###". I just tried this on a 2950, and it won't consider anything other than interface "vlan ###" You can create the virtual interface than assign a description to it though if you're trying to keep it distinguished.Switch(config)# Switch(config)#interface vlan 222 Switch(config-if)# description East_Campus
So this way it shows up in the show run with the description!
Cordially,
Ronnie Wong
Host, ITProTV