HELP! allow-hotplug eth0, and virtual IP address...

Discussion in 'Installation/Configuration' started by MisterVlad, Oct 15, 2007.

  1. MisterVlad

    MisterVlad New Member

    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 :p
     
  2. falko

    falko Super Moderator ISPConfig Developer

    That's possible. I'd comment it out.

    You don't need it if you have valid nameservers in /etc/resolv.conf.
     
  3. MisterVlad

    MisterVlad New Member

    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?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    The external IP address must have been assigned to your server by your hoster - you cannot simply use any public IP address.
     
  5. MisterVlad

    MisterVlad New Member

    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...
     
  6. falko

    falko Super Moderator ISPConfig Developer

    No, it makes no difference. :)
     

Share This Page