Linode Forum Index Linode Forum
Linode Community Forums
 


Private IPs

Click here to go to the original topic

 
       Linode Forum Index -> Linux Networking
Author Message
bastawhiz



Joined: 27 Aug 2010
Posts: 4
Location: Pennsylvania

Posted: Fri Aug 27, 2010 4: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.
Back to top  
db3l



Joined: 13 May 2009
Posts: 556

Posted: Fri Aug 27, 2010 4: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
Back to top  
bastawhiz



Joined: 27 Aug 2010
Posts: 4
Location: Pennsylvania

Posted: Fri Aug 27, 2010 4: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?
Back to top  
hoopycat



Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York

Posted: Fri Aug 27, 2010 6: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?
Back to top  
tinono



Joined: 11 Jul 2009
Posts: 30
Location: Martinique

Posted: Fri Aug 27, 2010 7: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!
Back to top  
bastawhiz



Joined: 27 Aug 2010
Posts: 4
Location: Pennsylvania

Posted: Fri Aug 27, 2010 11:41 pm    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
Back to top  
 
       Linode Forum Index -> Linux Networking
Page 1 of 1