Linode Forum
https://forum.linode.com/

CentOS multiple IP's can't ping in or out
https://forum.linode.com/viewtopic.php?f=19&t=5944
Page 1 of 1

Author:  RBurbank [ Wed Aug 25, 2010 9:47 pm ]
Post subject:  CentOS multiple IP's can't ping in or out

I setup multiple IP's on my CentOS Linode with a static configuration for eth0 and eth0:0. From the box itself eth0:0 responds to ping or http requests. Externally, I can not ping the new IP and I can't ping out either.

It appears to me that I need to add a second gateway or route. I tried a GATEWAY statement in ifcfg-eth0:0 and it did not help.

I would like to point out that eth0 is working fine.

Any suggestions?

Here are my IP's from the Linode network page:
eth0: 74.207.242.xxx ( lixx-xxx.members.linode.com )
eth0: 173.230.152.xxx ( lixxx-xxx.members.linode.com )
Gateways: 74.207.242.1
173.230.152.1
Netmask: 255.255.255.0
DNS Servers: 74.207.241.5
74.207.242.5

My primary IP before adding the second IP was 173.230.152.xxx. It is still eth0 in the static configuration.

######## File ifcfg-eth0

DEVICE=eth0
BOOTPROTO=none

ONBOOT=yes

IPADDR=173.230.152.xxx
NETMASK=255.255.255.0
GATEWAY=173.230.152.1

########File ifcfg-eth0:0

# Configuration for eth0:0
DEVICE=eth0:0
BOOTPROTO=none

ONBOOT=yes

IPADDR=74.207.242.xxx
NETMASK=255.255.255.0

Author:  BarkerJr [ Wed Aug 25, 2010 9:56 pm ]
Post subject: 

First, the eth0:0 should be ONPARENT, not ONBOOT. Also, don't forget to arping after you ifup.

arping -UI eth0 -qc 5 173.230.152.xxx

arping registers it with the gateway so it knows where to route your packets..

Author:  RBurbank [ Thu Aug 26, 2010 2:26 am ]
Post subject: 

Thanks for the reply BarkerJr.

I made the ONPARENT change and ran the arping. No change. The interface responds from the server console but not from remote. I tried with the firewall turned off as well.

Author:  Internat [ Thu Aug 26, 2010 3:18 am ]
Post subject: 

have you rebooted since you put the new ips on?

Author:  jed [ Thu Aug 26, 2010 9:38 am ]
Post subject: 

You added the second IP fairly recently, but haven't rebooted since a while ago (I found you). Our system requires a reboot after adding or removing IPs, in order to configure the backend for you.

Fire off a quick reboot and I bet you it'll work.

Author:  RBurbank [ Thu Aug 26, 2010 10:32 am ]
Post subject: 

Thanks guys. I rebooted the Linode and its working fine now. Initially, I just restarted network.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/