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

5 Replies

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..

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.

have you rebooted since you put the new ips on?

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.

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

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct