Private IPs
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
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
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