Private IPs

Hey folks

I'm trying to get private IPs set up with my Linodes. I'm running Debian. Here's my Linode's Network tab:

> eth0: 69.164.214.146 ( li129-146.members.linode.com )

Gateways: 69.164.214.1

Netmask: 255.255.255.0

Private eth0: 192.168.140.217

Netmask: 255.255.128.0

DNS Servers: 97.107.133.4

207.192.69.4

207.192.69.5

and here's my /etc/network/interfaces file:

> auto lo

iface lo inet loopback

auto eth0 eth0:0

iface eth0 inet static

address 69.164.214.146

netmask 255.255.255.0

gateway 69.164.214.1

iface eth0:0 inet static

address 192.168.140.217

netmask 255.255.128.0

On the linode I'm setting up, I can ping 192.168.140.217 just fine. The other linode will not, though.

Yes, the other Linode is in the same data center.

Perhaps there is something I need to do with iptables? Perhaps my configuration isn't right? Any help is appreciated.

5 Replies

Have you rebooted both Linodes after adding the private interfaces to them in the Linode Manager? You'll need at least one reboot for a new address to be enabled for the Linode by its host, in addition to any local configuration you do on the Linode itself.

So, for example, if you haven't rebooted the "other Linode" since it was assigned a private address, it won't be able to reach any other Linodes over the private address.

If you have, the next thing I'd think to check is any firewalls/filtering you may have in place on either end. If they were set up when you only had public addresses, they may not have proper holes to allow traffic between the two private addresses.

– David

I've rebooted both servers. What kind of firewalls could be installed on Debian by default? Could this be iptables throwing a tantrum?

I can ping 192.168.140.217 OK, so I think your end is fine. What's the IP of the other server?

You cannot ping your linode's private IP from another linode's public IP!

Both linodes need a private IP for them to be able to communicate through the private network!

@tinono:

You cannot ping your linode's private IP from another linode's public IP!

Both linodes need a private IP for them to be able to communicate through the private network!

Ok, cool. I reconfigured the pinging server to have a private IP. Hooray! It works!

Now I think I just need to get iptables set up to allow inbound connections to things like Memcached and Redis. Thanks

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