How to configure eth0:0 on a Xen VPS hosted on an OVH dedicated server?

Discussion in 'Site & Server Administration' started by Fiery Duck, Nov 21, 2011.

  1. #1
    The title of this topic makes this sound like an easy question, but it really isn't.
    I have an OVH dedicated server running Xenserver 5.6.
    I am using a virtual machine (VPS) which is running off this server.

    Now I have eth0 successfully configured by the OVH bridge client.
    So I currently have one working ip address.

    That's fine.
    Now here is where the problems start:

    I want to add another ip address to the same vps.
    So I set up eth0:0 and then pinged it.
    The ip ping was successful when pinging from the guest machine.
    But if I try to ping from anywhere else it won't ping.

    The fact that it pings from the guest machine makes me think I've configured eth0:0 correctly.
    So why is it only pinging from the guest machine and refusing to ping from anywhere else?
    I need that ip to ping from everywhere or, well, that ip will never work for use with websites.

    I've been at this for hours, and with OVH not providing support for VPSes you run on their dedicated servers,
    I was wondering if someone else might know the solution to this rather unusual problem I'm having. :confused:
     
    Fiery Duck, Nov 21, 2011 IP
  2. lachrymologist

    lachrymologist Active Member

    Messages:
    456
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    70
    #2
    you sure you've configured eth0:0 correctly?

    check this: http://help.ovh.com/IpAlias
    if you have set it up correctly it should be pingable from anywhere
     
    lachrymologist, Nov 22, 2011 IP
  3. Fiery Duck

    Fiery Duck Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I am really not sure now.
    Basically I followed the OVH Bridge Client: http://help.ovh.ie/BridgeClient
    when I first installed the VPS.
    That worked fine. I had ONE ip address, and that IP was (and still is) 100% working.

    Later on I decided that I wanted to add another IP address.
    So I ran the command:

    cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0
    Code (markup):
    And changed the DEVICE to eth0:0 on ifcfg-eth0:0, and replaced the IP FAILOVER with IP FAILOVER number 2.
    I also removed the HWADDRESS line on ifcfg-eth0:0

    My configuration now looks like this:

    ifcfg-eth0

    This works. This is the main IP I use with the VPS.

    ifcfg-eth0:0

    This doesn't work. I can ping it when logged into my VPS over SSH.
    But it will not ping from anywhere else. What is going on? :confused:

    Also...

    Again, this works! This is part of the OVH Bridge Client.

    And....

    eth0:0 didn't work BEFORE i added this,
    and it still doesn't work AFTER i added this.
    :confused:
     
    Last edited: Nov 22, 2011
    Fiery Duck, Nov 22, 2011 IP