Ubuntu – Even after removing vlan entry in /etc/network interfaces file, ifconfig is showing the intreface

ifconfiginterfacenetworkingvirtualbox

I had set up a vlan in interfaces file. Later on, even after removing the entries and restarting network, the ifconfig command is displaying that interface. Even ifdown isnt taking it down. Ifdown throws error message that the interface isnt configured.

Even after multiple times of examination, I am seeing the same thing again. Wondering why it worked in the same way in the Oracle VM Virtual Box also.
Even after commenting-out in the interfaces file, networking restart, networking stop / start, ifdown && ifup, even machine reboot also..!!
Same experience..!!
Could somebody please try this and explain..?

Best Answer

Edit /etc/network/interfaces

sudo gedit /etc/network/interfaces

Remove the vlan entries

Now you have to restart the interface

sudo ifdown eth0 

you can ignore the error if it appears here then

sudo ifup etho 

Now check again ifconfig

If it still shows that entry you may need to make a system reboot.