04-03-2019 12:17 PM
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?
Solved! Go to Solution.
04-03-2019 12:38 PM - edited 04-03-2019 12:45 PM
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
04-03-2019 12:38 PM - edited 04-03-2019 12:45 PM
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
04-03-2019 12:53 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide