Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.Before you post please read how to get help

I'm sorry for posting this into the forum because I know it's plastered all over the internet but I'm just not able to grasp it for some reason soplease someone spell it out for me:-

I host a folder on a virtualhost 192.168.0.101How can i make this virtualhot run at startup?

I edited the /etc/network/interfaces and addediface eth0:1 inet staticaddress 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 startupso 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??

Last edited by derrend on Fri Nov 30, 2012 5:33 pm, edited 1 time in total.

Some network cards (nics) detect on power changes: IBM used to be like that: so I would use both ifdown and ifup to get a status reset to the card--see if that sequence gets the nic active..http://www.computerhope.com/unix/ifup.htm

Thanks for the advice but im still having no luck,I configured the eth0:1 interface in /etc/network/interfaces and then in the rc.local file placed the command 'ifdown -a' 'ifup -a' and 'echo this script ran fine >> /home/folder/file'.I tested 'ifdown -a' and 'ifup -a' manually which brought up the interface fine and when the computer reboots the output from echo shows up in my home folder which means the two commands above it ran fine because of the -e option after #!/bin/bash doesn't it?

I cant figure out why the interface isn't showing if the commands are running? Am i being overridden somehow perhaps?

*Bump - C'mon fellow linux enthusiasts im waiting 24 hours betwen bumps and i think this is my last one, surely someone out there knows why commands relating to ifconfig and network interfaces aren't having an effect from the rc.local file? It worked in mint 13 im sure of it.

When I boot it just works, I don't need to do ifup or mess around with rc.local .

However, the network indicator in the status bar says "no connection" and when I click on it it says "Wired unmanaged" so the although the interface _is_ working (i can ping 1.14 and 1.15 from another box) the network manager doesn't recognize the connection. I'm very new to this Mint business so I don't really know why that might be. If somebody else here could explain the "proper" (i.e., managed) way to do it I'd be interested to learn.

No exaduration, ive been dealing with this for more than 7 hours today, all ive done is change config settings, add scripts and reboot but it is simply impossible to get the eth0:1 virtual ip to run at boot.

I disabled network-manager and set up the interfaces manually but even that didnt work. I placed commands in the rc.local such as 'sleep 3m; ifconfig eth0:1 192.168.0.100' or told it to sleep and then run a script containing the commanad but it never shows up. If you run the ifup eth0:1 command the shell reports that the interface is 'already configured' but it doesnt show in the ifconfig output and you cant ping it.

I'm saying BUG and giving up. Thanks for the suggestions fellas, hopefully I'll come across the answer at some point in the future.

Bummer. FWIW, I think I just found the "managed" way to do it. In Mint 14 Cinnamon, I removed everything from the 'interfaces' file except for the 'lo' (loopback) adapter, then...

Menu > Preferences > Network

...clicked the "Options..." button for the "Wired" connection, then on the "IPv4 Settings" tab selected "Method: Manual", entered both IP addresses and specified the DNS server (settings the same as my old 'interfaces' file, above).

After I rebooted both IP addresses (1.14 and 1.15) responded to pings, even if I was not logged in. After I logged in the status bar icon said that I was connected, and clicking the icon produced the little dialog with "Wired" and the on/off switch (instead of "unmanaged").

Congratulation Gord you've finally solved it! I am a bit disappointed that this method doesn't show in the ifconfig output so I'm always going to have to ping it or go to the address, and that as a linux user I ultimately failed at the command line today.

I did learn something though, i thought my dns server address would have been the same as my gateway from reading your settings above buy luckily on the wired setting page before selecting 'options' they were displayed right there on the screen for me so i just copied and pasted them (there were two) and now it seems to be working fine

Well it isn't broke any more so I can finally stop fixing it. Thanks very much for the help