I host a folder on a virtualhost 192.168.0.101
How can i make this virtualhot run at startup?
I edited the /etc/network/interfaces and added
iface eth0:1 inet static
address 192.168.0.101
and when i run 'ifup eth0:1' it works fine but how do i get the computer to do this at boot?
i put the command into a script in '/root/virtualup.sh'
and edited root crontab with '@reboot /root/virtualup.sh' the script ran fine when i tested it but this didn't happen at startup
so I changed it to '@reboot ifup eth0:1' but this didn't work either.
then i put 'ifup eth0:1' into '/etc/rc.local' but that didn't work.
Please note the '' around the commands are for illustration and not part of the command. im using mint 14 nadia
**I've now also tried putting 'eth0:1' in the auto line at the top of the 'interfaces' file.
and also put the line 'dhclient eth0:1' in 'rc.local' but still no luck.
Just tried 'sudo /etc/init.d/networking restart' and 'sudo service network-manager restart'.
eth0:1 showed up but the desktop interface went funny so i rebooted the computer which put it back to normal but still no eth0:1 at startup.
could network manager be the problem?
ok final update and then off to bed,
i added 'echo it worked >> /path/to/home/success.txt' below the command 'ifconfig eth0:1 192.168.0.101'.
The text file showed up in my home folder but the host was not cofigured, why could this be??


