Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Private IPs
PostPosted: Fri Aug 27, 2010 5:30 pm 
Offline
Newbie

Joined: Fri Aug 27, 2010 5:24 pm
Posts: 4
Website: http://serverboy.net/
Location: Pennsylvania
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.


Top
   
 Post subject:
PostPosted: Fri Aug 27, 2010 5:51 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
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


Top
   
 Post subject:
PostPosted: Fri Aug 27, 2010 5:56 pm 
Offline
Newbie

Joined: Fri Aug 27, 2010 5:24 pm
Posts: 4
Website: http://serverboy.net/
Location: Pennsylvania
I've rebooted both servers. What kind of firewalls could be installed on Debian by default? Could this be iptables throwing a tantrum?


Top
   
 Post subject:
PostPosted: Fri Aug 27, 2010 7:19 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
I can ping 192.168.140.217 OK, so I think your end is fine. What's the IP of the other server?

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Fri Aug 27, 2010 8:17 pm 
Offline
Junior Member

Joined: Sat Jul 11, 2009 7:19 am
Posts: 30
Location: Martinique
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!


Top
   
 Post subject:
PostPosted: Sat Aug 28, 2010 12:41 am 
Offline
Newbie

Joined: Fri Aug 27, 2010 5:24 pm
Posts: 4
Website: http://serverboy.net/
Location: Pennsylvania
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group