Setting a default IP when using multiple IPs
However, the server keeps defaulting back to eth0:1 which is not what my cpanel is licensed to. For a while it would flip in and out between which IP it was responding to, but now if I check what its going out as using lynx and an ip address site, it shows up as teh secondary.
Does anyone have a work around for this?
5 Replies
maybe the system is skipping over to eth0:1 instead of eth0:0?
root@server1 [~]# route -n
0.0.0.0 69.164.221.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 97.107.141.1 0.0.0.0 UG 0 0 0 eth0
that was showing 2 default gateway routes.
root@server1 [~]# route del default gw 69.164.221.1 eth0
removed that secondary route that I didn't want. No need to network restart, server started coming up as the IP I wanted.
@mattm:
just hoping the DHCP of linode network doesn't blip it back…
DHCP only gives your linode it's networking info if you've got it setup to use DHCP. If you have static networking configured, then DHCP has nothing to do with you.