I have an interface
eth0, and I wish to give it an extra virtual IP. I achieve this by the following:
ifconfig eth0:0 ip.address.goes.here netmask subnet.address.goes.here
This works fine, however, when I reboot, this is lost.
I have tried editing
/etc/network/interfaces to add the following:
auto eth0:0 iface eth0:0 inet static address ip.address.goes.here netmask subnet.address.goes.here
However, upon rebooting, the static ip for eth0 is loaded fine, but, the eth0:0 virtual IP is not loaded at all.
So, how can I permanently add the
eth0:0 virtual IP?