| Linode Forum https://forum.linode.com/ |
|
| Setting a default IP when using multiple IPs https://forum.linode.com/viewtopic.php?f=19&t=6054 |
Page 1 of 1 |
| Author: | mattm [ Tue Sep 28, 2010 4:09 pm ] |
| Post subject: | Setting a default IP when using multiple IPs |
I have a linode running cPanel software. I have 2 IP's on the server and I have the default gateway setup to use eth0 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? |
|
| Author: | Stan_Theman [ Tue Sep 28, 2010 4:36 pm ] |
| Post subject: | |
It sounds like you haven't configured static networking. Have you used this guide? http://library.linode.com/networking/co ... interfaces |
|
| Author: | mattm [ Wed Sep 29, 2010 10:39 am ] |
| Post subject: | |
ok I did eth0 and eth0:1 maybe the system is skipping over to eth0:1 instead of eth0:0? |
|
| Author: | mattm [ Wed Sep 29, 2010 10:41 am ] |
| Post subject: | |
meaning because i didn't create eth0:0 it's defaulting to eth0:1 for some reason. |
|
| Author: | mattm [ Wed Sep 29, 2010 4:10 pm ] |
| Post subject: | |
ok i believe I got it - just hoping the DHCP of linode network doesn't blip it back... Code: root@server1 [~]# route -n that was showing 2 default gateway routes. Code: 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. |
|
| Author: | akerl [ Wed Sep 29, 2010 6:48 pm ] |
| Post subject: | |
mattm wrote: 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. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|