cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6293
Views
0
Helpful
2
Replies

[Packet Tracer 7.2.1]Completely delete VLAN and/or SVI from 2911 Router

GillverK
Level 1
Level 1

Please note that "no vlan 2" and commands of that nature do not seem to work on the 2911 Router

 

After attaching an HWIC-4ESW module to the 2911 Router I set up an interface VLAN and assigned an IP to the interface using the commands:

 

interface vlan 2
ip address 10.10.10.2 255.255.255.0
no shut
exit
interface f0/3/1
switchport mode access
switchport access vlan 2
no shut
end

 

I then moved the interface to VLAN 1 and deleted thought I deleted the VLAN by doing:

interface f0/3/1
switchport access vlan 1
exit
no interface vlan 2
end

 

But when I do the following command on the 2911 Router Vlan 2 still seems to show up:

# show vlan brief
VLAN     NAME             STATUS       PORTS
------------------------------------------
1            VLAN001        ACTIVE         F0/3/1
2            VLAN002        ACTIVE         



# show vlan id 2
VLAN     NAME             STATUS       PORTS
------------------------------------------
2            VLAN002        ACTIVE         

 

Can anyone tell me why this is and how to actually delete the vlan on the router? Is the only way to delete vlan .dat?

1 Accepted Solution

Accepted Solutions

luis_cordova
VIP Alumni
VIP Alumni

Hi @GillverK ,

 

Effectively, in this device the way to delete all vlan is by deleting the vlan.dat file and restarting the device.

 

Router#delete vlan.dat

Confirm

Router#reload

Confirm

 

If you want to delete a single vlan, you must do it in the vlan database

 

Router#vlan database

Router(vlan)#no vlan 2

Router(vlan)#exit

 

Regards

View solution in original post

2 Replies 2

luis_cordova
VIP Alumni
VIP Alumni

Hi @GillverK ,

 

Effectively, in this device the way to delete all vlan is by deleting the vlan.dat file and restarting the device.

 

Router#delete vlan.dat

Confirm

Router#reload

Confirm

 

If you want to delete a single vlan, you must do it in the vlan database

 

Router#vlan database

Router(vlan)#no vlan 2

Router(vlan)#exit

 

Regards

I see.

 

I avoided "vlan database" because the device issued a warning that I should do anything regarding VLANS in "config mode" because "vlan database" was being deprecated.

 

 

Thanks so much luis_cordova. Much appreciated.

Review Cisco Networking for a $25 gift card