| Author |
Message |
RBurbank
Joined: 25 Aug 2010
Posts: 4
|
| Posted: Wed Aug 25, 2010 8: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 |
|
| Back to top |
|
BarkerJr
Joined: 02 Aug 2009
Posts: 220
Location: Connecticut, USA
|
| Posted: Wed Aug 25, 2010 8: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.. |
|
| Back to top |
|
RBurbank
Joined: 25 Aug 2010
Posts: 4
|
| Posted: Thu Aug 26, 2010 1: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. |
|
| Back to top |
|
Internat
Joined: 17 Aug 2004
Posts: 254
Location: Brisbane, Australia
|
| Posted: Thu Aug 26, 2010 2:18 am Post subject: |
|
|
| have you rebooted since you put the new ips on? |
|
| Back to top |
|
jed
Joined: 28 Mar 2009
Posts: 394
Location: New Jersey
|
| Posted: Thu Aug 26, 2010 8: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. |
|
| Back to top |
|
RBurbank
Joined: 25 Aug 2010
Posts: 4
|
| Posted: Thu Aug 26, 2010 9:32 am Post subject: |
|
|
| Thanks guys. I rebooted the Linode and its working fine now. Initially, I just restarted network. |
|
| Back to top |
|
| |