Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Did 'no int vlanx', but vlan still listed on 'show vlan'

Hi, can you help on this ?

Interesting. I would like to 'clean' all configuration from my Cat 2900XL. I did 'no int vlan 2' and 'no int vlan 3', 'no switchport trunk...' .

I did 'wri mem'.

However, I see that on 'show vlan' such Vlan0002, Vlan00003 and TRUNKMANAGEMENT still appears listed there.

Can you please clarify what I am missing ? I want to delete all existing vlans or trunk configuration for good.

Output from the Cat 2900XL is pasted below.

show vlan

VLAN Name Status Ports

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

1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5,

Fa0/6, Fa0/7, Fa0/8, Fa0/9,

Fa0/10, Fa0/11, Fa0/12

2 VLAN0002 active

3 VLAN0003 active

4 TRUNKMANAGEMENT active

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2

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

1 enet 100001 1500 - - - - - 1002 1003

2 enet 100002 1500 - - - - - 0 0

3 enet 100003 1500 - - - - - 0 0

4 enet 100004 1500 - - - - - 0 0

1002 fddi 101002 1500 - - - - - 1 1003

1003 tr 101003 1500 1005 0 - - srb 1 1002

1004 fdnet 101004 1500 - - 1 ibm - 0 0

1005 trnet 101005 1500 - - 1 ibm - 0 0

Switch#show run

Building configuration...

Current configuration:

!

version 12.0

no service pad

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname Switch

!

!

!

!

!

!

!

ip subnet-zero

!

!

!

interface FastEthernet0/1

shutdown

--More-- switchport mode trunk

!

interface FastEthernet0/2

!

interface FastEthernet0/3

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

--More-- !

interface VLAN1

no ip address

no ip directed-broadcast

no ip route-cache

!

!

line con 0

transport input none

stopbits 1

line vty 0 4

login

line vty 5 15

login

!

end

Switch#

1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Re: Did 'no int vlanx', but vlan still listed on 'show vlan'

I'm not sure whether you want to entirely clear off all of the configuration from the switch, or just simply want to remove the VLAN configuration from the switch.

If you want to remove the VLAN configuration only from the switch, there are a few things to keep in mind. One is that the VLAN database is stored in a file, VLAN.DAT, on the flash of the device. The second is that you should remove the device from a VTP domain, if configured. Removing the VLAN.DAT file will not remove the VLAN configuration is the device is a VTP client on a running VTP domain. The device will ?retrieve? the current VLAN configuration from a VTP server on the network.

First, it would probably be safest to remove the device from the network before performing the following tasks if you are unfamiliar with VTP configuration. You should determine if the device is a member of a VTP domain and if it is a server or client device in the VTP domain:

switch# show vtp status

VTP Version : 2

Configuration Revision : 143

Maximum VLANs supported locally : 254

Number of existing VLANs : 81

VTP Operating Mode : Client

VTP Domain Name : SomeDomain

VTP Pruning Mode : Disabled

VTP V2 Mode : Disabled

VTP Traps Generation : Disabled

The VTP Operating Mode will tell you if you are in ?Server?, ?Client?, or ?Transparent? mode.

If you are in ?Client? mode, change the device to server mode:

switch#vlan database

switch(vlan)#vtp server

Next, you should change the VTP domain that the device is configured for:

switch(vlan)#vtp domain SomeOtherDomain

switch(vlan)#exit

Now delete the VLAN.DAT file from the device?s flash and reload the device:

switch#delete flash:vlan.dat

switch#reload

When the switch reboots, all startup-configuration will be retained, but the VLAN configuration will be entirely cleaned (removed).

If you want to clear the running-configuration from the device as well, the you should ?erase? the startup-configuration and then reload the device. The easiest way:

switch#write erase

switch#reload

Regards,

Chris

2 REPLIES
Purple

Re: Did 'no int vlanx', but vlan still listed on 'show vlan'

It shows up because all you got rid of was the layer 3 SVI definition and not the layer 2 vlan . If you want to get rid of it you need to go into the vlan database and delete it in there or just delete the vlan.dat file in flash .

New Member

Re: Did 'no int vlanx', but vlan still listed on 'show vlan'

I'm not sure whether you want to entirely clear off all of the configuration from the switch, or just simply want to remove the VLAN configuration from the switch.

If you want to remove the VLAN configuration only from the switch, there are a few things to keep in mind. One is that the VLAN database is stored in a file, VLAN.DAT, on the flash of the device. The second is that you should remove the device from a VTP domain, if configured. Removing the VLAN.DAT file will not remove the VLAN configuration is the device is a VTP client on a running VTP domain. The device will ?retrieve? the current VLAN configuration from a VTP server on the network.

First, it would probably be safest to remove the device from the network before performing the following tasks if you are unfamiliar with VTP configuration. You should determine if the device is a member of a VTP domain and if it is a server or client device in the VTP domain:

switch# show vtp status

VTP Version : 2

Configuration Revision : 143

Maximum VLANs supported locally : 254

Number of existing VLANs : 81

VTP Operating Mode : Client

VTP Domain Name : SomeDomain

VTP Pruning Mode : Disabled

VTP V2 Mode : Disabled

VTP Traps Generation : Disabled

The VTP Operating Mode will tell you if you are in ?Server?, ?Client?, or ?Transparent? mode.

If you are in ?Client? mode, change the device to server mode:

switch#vlan database

switch(vlan)#vtp server

Next, you should change the VTP domain that the device is configured for:

switch(vlan)#vtp domain SomeOtherDomain

switch(vlan)#exit

Now delete the VLAN.DAT file from the device?s flash and reload the device:

switch#delete flash:vlan.dat

switch#reload

When the switch reboots, all startup-configuration will be retained, but the VLAN configuration will be entirely cleaned (removed).

If you want to clear the running-configuration from the device as well, the you should ?erase? the startup-configuration and then reload the device. The easiest way:

switch#write erase

switch#reload

Regards,

Chris

385
Views
5
Helpful
2
Replies