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

Private IPs
https://forum.linode.com/viewtopic.php?f=19&t=5952
Page 1 of 1

Author:  bastawhiz [ Fri Aug 27, 2010 5:30 pm ]
Post subject:  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:

Quote:
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:

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

Author:  db3l [ Fri Aug 27, 2010 5:51 pm ]
Post subject: 

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

Author:  bastawhiz [ Fri Aug 27, 2010 5:56 pm ]
Post subject: 

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

Author:  hoopycat [ Fri Aug 27, 2010 7:19 pm ]
Post subject: 

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

Author:  tinono [ Fri Aug 27, 2010 8:17 pm ]
Post subject: 

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!

Author:  bastawhiz [ Sat Aug 28, 2010 12:41 am ]
Post subject: 

tinono wrote:
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

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