OVH Community, votre nouvel espace communautaire.

Ip Failover Configuration, error SO_BINDTODEVICE


yoannr
14/12/2015, 13h21
Bonjour,

J'ai configuré mon ip failover en suivant le guide d'ovh.

http://guides.ovh.com/AjouterAliasIp/

Quand j'utilise Curl et que je précise l'interface pour faire la requête, la requête est envoyée en utilisant l'Ip du serveur et non l'Ip failover.

Code:
curl --verbose --interface  eth0:0 https://api.ipify.org?format=json
* Rebuilt URL to: https://api.ipify.org/?format=json
* Hostname was NOT found in DNS cache
*   Trying 23.23.163.51...
* Local Interface eth0:0 is ip 51.255.131.130 using address family 2
* SO_BINDTODEVICE eth0:0 failed with errno 19: No such device; will do regular bind
* Local port: 0
* Connected to api.ipify.org (23.23.163.51) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* Server certificate:
*        subject: OU=Domain Control Validated; OU=EssentialSSL; CN=api.ipify.org
*        start date: 2015-10-22 00:00:00 GMT
*        expire date: 2016-11-20 23:59:59 GMT
*        subjectAltName: api.ipify.org matched
*        issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO RSA Domain Validation Secure Server CA
*        SSL certificate verify ok.
> GET /?format=json HTTP/1.1
> User-Agent: curl/7.38.0
> Host: api.ipify.org
> Accept: */*
>
< HTTP/1.1 200 OK
* Server Cowboy is not blacklisted
< Server: Cowboy
< Connection: keep-alive
< Content-Type: application/json
< Date: Mon, 14 Dec 2015 13:03:53 GMT
< Content-Length: 22
< Via: 1.1 vegur
<
* Connection #0 to host api.ipify.org left intact
{"ip":"51.255.42.178"}
Je n'arrive pas à comprendre l'erreur suivant :
Code:
Local Interface eth0:0 is ip 51.255.131.130 using address family 2
* SO_BINDTODEVICE eth0:0 failed with errno 19: No such device; will do regular bind
Voici mon fichier interfaces:

Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The normal eth0
auto eth0
iface eth0 inet dhcp
        address 51.255.42.178
        netmask 255.255.255.0
        broadcast 51.255.42.255
        network 51.255.42.0
        gateway 51.255.42.254
        post-up /sbin/ifconfig eth0:0 51.255.131.130 netmask 255.255.255.255 broadcast 51.255.131.130
        post-down /sbin/ifconfig eth0:0 down


# Maybe the VM has 2 NICs?
allow-hotplug eth1
iface eth1 inet dhcp

# Maybe the VM has 3 NICs?
allow-hotplug eth2
iface eth2 inet dhcp
Merci pour votre aide