I have configured a list of eth aliases with static ips to /etc/network/interfaces like:
Normally one edits the file and removes the interface from the config file (/etc/network/interfaces) restarting the network service with:
iface eth0 inet static
iface eth0:2 inet static
iface eth0:4 inet static
... and it should work but unexpectedly the removed interface (eth0:2) comes back after a while although it's not included in the config file /etc/network/interfaces .
service networking restart
I also used the sync command to flush the file system buffers (I don't know if it's relevant).
Note that it worked when I made a reboot or with this cmd:
Normally this shouldn't happen.
Any ideas? of why this is happening and a possible resolution except reboot or flush?
System: Ubuntu 10.04.3 LTS