Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Network ipaliasing OVH
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Network ipaliasing OVH

mrbombommrbombom Member
edited February 2016 in Help

I have bought one of OVH IPV4 USA, however they guide me how to run parallel to the 2 IP. They give a lot of documents to guide but not succeed, they do not support the things needed for configuration.

I've followed the instructions here: http://docs.ovh.ca/en/guides-network-ipaliasing.htm

File ifcfg-eth0:0
DEVICE="eth0:0"
ONBOOT="yes"
BOOTPROTO="static" # For CentOS use "static"
IPADDR="149.56.65.1xx"
NETMASK="255.255.255.255"
BROADCAST="149.56.65.1xx"

When I boot up

ifup eth0:0
ipcalc: bad netmask: 255.255.255.255
ipcalc: bad netmask: 255.255.255.255
 is already in use for device eth0...xx
/".or: an inet prefix is expected rather than "149.56.65.1xx
.for eth0:0g address 149.56.65.1xx
bind: Cannot assign requested address

I need a help.

«1

Comments

  • I thought your post was unreadable and formatted it a bit. That makes it easier for others to help... ;)

  • @mrbombom said:
    I have bought one of OVH IPV4 USA, however they guide me how to run parallel to the 2 IP. They give a lot of documents to guide but not succeed, they do not support the things needed for configuration.

    I've followed the instructions here: http://docs.ovh.ca/en/guides-network-ipaliasing.htm

    > File ifcfg-eth0:0
    > DEVICE="eth0:0"
    > ONBOOT="yes"
    > BOOTPROTO="static" # For CentOS use "static"
    > IPADDR="149.56.65.1xx"
    > NETMASK="255.255.255.255"
    > BROADCAST="149.56.65.1xx"
    > 

    When I boot up

    > ifup eth0:0
    > ipcalc: bad netmask: 255.255.255.255
    > ipcalc: bad netmask: 255.255.255.255
    >  is already in use for device eth0...xx
    > /".or: an inet prefix is expected rather than "149.56.65.1xx
    > .for eth0:0g address 149.56.65.1xx
    > bind: Cannot assign requested address
    > 

    I need a help.

    Give us some more information. Errors vary based on OS, so we'd need to know that to even get started on helping you.

  • century1stopcentury1stop Member
    edited February 2016

    from whatever little information provided, this is what I can conclude for your ifcfg-eth0:0 file

    DEVICE="eth0:0"
    ONBOOT="yes"
    BOOTPROTO="static"
    IPADDR="xxx.xxx.xxx.xxx" #//your additional IPv4 provided
    NETMASK="255.255.255.255"
    BROADCAST GATEWAY="xxx.xxx.xxx.254" #//your dedicated server IP ending with .254
    

    see if this works.

  • mrbombommrbombom Member
    edited February 2016

    OS: CentOS 6 64bit. They only offer IP failover only for me, but did not provide any other information.

  • what of your provision email? should be some important information there

  • @century1stop said:
    from whatever little information provided, this is what I can conclude for your ifcfg-eth0:0 file

    > DEVICE="eth0:0"
    > ONBOOT="yes"
    > BOOTPROTO="static"
    > IPADDR="xxx.xxx.xxx.xxx" #//your additional IPv4 provided
    > NETMASK="255.255.255.255"
    > BROADCAST="xxx.xxx.xxx.254" #//your dedicated server IP ending with .254
    > 

    see if this works.

    DEVICE="eth0:0"

    ONBOOT="yes"
    BOOTPROTO="static" # For CentOS use "static"
    IPADDR="149.56.65.1xx"
    NETMASK="255.255.255.255"
    BROADCAST="192.99.54.2xx"
    I have edit , but not work

    [root@vps667xx ~]# ifup eth0:0

    ipcalc: bad netmask: 255.255.255.255
    ipcalc: bad netmask: 255.255.255.255
    is already in use for device eth0...57
    /".or: an inet prefix is expected rather than "149.56.65.1xx
    .for eth0:0g address 149.56.65.1xx
    bind: Cannot assign requested address

  • @century1stop said:
    what of your provision email? should be some important information there

    They only send a single email about adding IP USA

  • mrbombommrbombom Member
    edited February 2016

    Edit images

  • century1stopcentury1stop Member
    edited February 2016

    oh sorry, last line should be GATEWAY not BROADCAST. you should use the same gateway as your ifcfg-eth0, and BROADCAST the additional ip (broadcast and ipaddr same address).

  • mrbombommrbombom Member
    edited February 2016

    These parameters are the same in eth0

  • do you see a gateway for ifcfg-eth0? if it's not there, then it'll not be needed. probably just need this

    DEVICE="eth0:0"
    ONBOOT="yes"
    BOOTPROTO="static"
    IPADDR="xxx.xxx.xxx.xxx" #//your additional IPv4 provided
    NETMASK="255.255.255.255"
    BROADCAST="xxx.xxx.xxx.xxx" #//your additional IPv4 provided 
    
  • No gateway with eth0 , i have set IPADDR ,BROADCAST with additional ipv4, but not work.Always error
    ifup eth0:0
    ipcalc: bad netmask: 255.255.255.255
    ipcalc: bad netmask: 255.255.255.255
    is already in use for device eth0...xx
    /".or: an inet prefix is expected rather than "149.56.65.1xx
    .for eth0:0g address 149.56.65.1xx
    bind: Cannot assign requested address

  • hmm wrong netmask?

  • yes, bad netmask :(

  • but this is the general netmask used in most cases. check with support, include your error images. wonder what you'd get with service network restart?

  • mrbombommrbombom Member
    edited February 2016

    I have rest network but error . When contacting OVH they just give me the documents,

    They did not give any configuration for my application form. 2 supporter even made 2 different ways to document were unsuccessful

  • no idea what else can be done :)
    out of curiosity, what do you see in route-eth0?

  • mrbombommrbombom Member
    edited February 2016

    Eth0 only show

  • lookup the file route-eth0, see what's there

  • cat /etc/sysconfig/network-scripts/ route-eth0 not found

  • well, nothing I can say. my IP blocks always come with relevant info :)

  • apparently, you may need to reinstall so as additional IPv4 may bind accordingly. check this https://www.ovh.co.uk/vps/faq-help.xml#options

  • ktkt Member, Host Rep
    edited February 2016

    In case of using IP Aliasing the broadcast should be your 2nd IP and not end in .254 per the docs.

    You could try:
    http://docs.ovh.ca/en/guides-network-bridging.html#redhat-derivatives-centos-6-scientific-linux-clearos (leaving out HWADDR)

  • @mrbombom you may want to remove your IP. Using the .254 part and your gmail screenshot I pieced it together to be 149.56.65.254. (remove if desired @jarland or @raindog308)

  • mrbombommrbombom Member
    edited February 2016

    Hi,
    I have set eth1

    DEVICE=eth1

    BOOTPROTO=none
    ONBOOT=yes
    USERCTL=no
    IPV6INIT=no
    PEERDNS=yes
    TYPE=Ethernet
    NETMASK=255.255.255.255
    IPADDR=149.56.65.xx
    GATEWAY=192.99.54.xx
    ARP=yes

    HWADDR=MY:VI:RT:UA:LM:AC //not set

    file route-eth1

    192.99.54.xx dev eth1

    default via 192.99.54.xxx dev eth1

    But when start eth1

    does not seem to be present, delaying initialization.

  • century1stopcentury1stop Member
    edited February 2016

    yea of course, you only have 1 virtual interface, eth0. if you want to run a second interface, dummy module can be used.
    oops ip address leaked :)
    ps - did you try reinstalling and redo additional IP?

    if you REALLY want to use eth1
    modprobe dummy
    lsmod | grep dummy #see if dummy has been set, continue once verified
    ip link set name eth1 dev dummy0
    ifup eth1
  • Here's the full extent of adding an add-on IP to my OVH VPS:

    auto eth0:0
    iface eth0:0 inet static
        address 192.xx.xx.xx
        netmask 255.255.255.255

    Address + Netmask. I left the primary interface as default (DHCP), and just added that with an ifup eth0:0 and it was online.

  • mrbombommrbombom Member
    edited February 2016

    @century1stop: I have set > [root@vps66748~]# lsmod | grep dummy
    dummy 2682 0

    [root@vps66748 ~]# ifup eth1
    does not seem to be present, delaying initialization.
    Not work :(

  • good, dummy's working so you need to instruct it further.

    ip link set name eth1 dev dummy0
    ifup eth1
  • @century1stop

    [root@vps66748 ~]# ip link set name eth1 dev dummy0

    [root@vps66748 ~]# ifup eth1
    does not seem to be present, delaying initialization.
    [root@vps66748 ~]#

Sign In or Register to comment.