I have a server with 2 public IPs.
eth0 - x.x.x.x
eth0:0 - y.y.y.y
The default gateway is set on eth0.
$ip route
default via g.g.g.g dev eth0 proto dhcp metric 100
g.g.g.g dev eth0 proto dhcp scope link metric 100
x.x.x.x dev eth0 proto kernel scope link src x.x.x.x metric 100
y.y.y.y dev eth0 proto kernel scope link src y.y.y.y metric 100
When I
it always replies as if it was my secondary IP (y.y.y.y) sending the request.curl ifconfig.me
How can I have it reply on eth0 and not et0:0
Hope this makes sense. Any help is appreciated.
Thanks.