A
A
Alexander2019-07-20 19:13:14
ubuntu
Alexander, 2019-07-20 19:13:14

How to connect additional ip correctly?

There is a dedicated server on OVH (UBUNTU 16.04 installed), an additional IP was purchased for it, which is connected according to the following instructions - https://docs.ovh.com/gb/en/dedicated/network-ipali...


auto eth0:0
iface eth0:0 inet static
address failover_ip
netmask 255.255.255.255
post-up /sbin/ifconfig eth0:0 failover_ip netmask 255.255.255.255 broadcast failover_ip
pre-down /sbin/ifconfig eth0:0 down

The site is deployed on an additional IP, how to make requests from the server also sent from failover_ip and not from the main server IP?
"curl ifconfig.co/ip" возвращает основной IP сервера

Perhaps the question is stupid, and I did not explain it correctly, but I myself have been suffering for the second day.
I would like all requests to be sent with failover_ip, and the main IP was not displayed anywhere at all.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2019-07-20
@dimonchik2013

I would like all requests to be sent with failover_ip, and the main IP was not displayed anywhere at all.

close it with a firewall in the OVH admin panel)))))))))))))
seriously - default gateway

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question