I have a unmanaged server that I take care of for a friend, and I was adding a second IP to the eth0 list, this is what was there to beign with: auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet static address xxx.xxx.xxx.150 network 255.255.255.0 netmask xxx.xxx.xxx.0 broadcast xxx.xxx.xxx.255 gateway xxx.xxx.xxx.1 dns-nameservers xxx.xxx.xxx.xxx and I added: auto eth0:0 iface eth0:0 inet static address xxx.xxx.xxx.151 network 255.255.255.0 netmask xxx.xxx.xxx.0 broadcast xxx.xxx.xxx.255 gateway xxx.xxx.xxx.1 then did /etc/init.d/networking restart it hung. I had to call the hosting company to reset the server, and the error message he said was that the eth0:0 was not coming up. What is the issue? is it the allow-hotplug eth0 line? I have seen in the install pages here, that it should be renames to auto eth0... so i was just wondering. Now, my second question is, is what is this dns-nameservers line? does it need to be there? the same line is in the /etc/resolv.conf file. Should I also add it to the eth0:0 too? I dont want to take the server down for 30 minutes again, so I need to get this right the second time
That's possible. I'd comment it out. You don't need it if you have valid nameservers in /etc/resolv.conf.
so it would look like: Code: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address xxx.xxx.xxx.150 network 255.255.255.0 netmask xxx.xxx.xxx.0 broadcast xxx.xxx.xxx.255 gateway xxx.xxx.xxx.1 auto eth0:0 iface eth0:0 inet static address xxx.xxx.xxx.151 network 255.255.255.0 netmask xxx.xxx.xxx.0 broadcast xxx.xxx.xxx.255 gateway xxx.xxx.xxx.1 Does it make any difference that these are external IP addresses? rather than internal?
The external IP address must have been assigned to your server by your hoster - you cannot simply use any public IP address.
I understand that... i was just wondering if in fact, it makes any differnece that it is an external IP, rather than an internal one...