Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Multiple IPs
PostPosted: Thu Nov 08, 2007 3:40 am 
Offline
Junior Member

Joined: Mon Feb 26, 2007 7:35 pm
Posts: 20
Hi,

I added a second IP, and configured my Linode as described here:

http://www.linode.com/wiki/index.php/Multiple_IPs

When I ping locally (from the Linode itself), I get a response from both IPs, but when I do the same remotely (as in from my own PC), the old IP works fine, but the new one gives me "Request timed out".

When I run ifconfig, it lists the old IP as eth0, and the new one as eth0:1.

My old ip is 64.22.103.10, and the new one is 64.22.103.92.

Thanks for your help!


Top
   
 Post subject:
PostPosted: Thu Nov 08, 2007 5:05 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Your second IP looks like it's being blocked by a firewall.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Thu Nov 08, 2007 6:11 am 
Offline
Junior Member

Joined: Mon Feb 26, 2007 7:35 pm
Posts: 20
Ah, of course!

I think I know what to do now.

Thanks.


Top
   
 Post subject:
PostPosted: Thu Nov 08, 2007 3:44 pm 
Offline
Junior Member

Joined: Mon Feb 26, 2007 7:35 pm
Posts: 20
No, I don't. :-(

I don't think I have a firewall configured:

Code:
# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination



This is what I've configured:

Code:
# cat ifcfg-eth0:0
DEVICE=eth0:0
BOOTPROTO=none
ONBOOT=yes
IPADDR=64.22.103.92
NETMASK=255.255.255.0


Any suggestions?


Top
   
 Post subject:
PostPosted: Thu Nov 08, 2007 5:22 pm 
Offline
Senior Member

Joined: Wed Oct 20, 2004 8:55 am
Posts: 120
Try changing eth0:0 to eth0:1

I've not seen 0:0 used before (but it may be valid). I use 0:1


Top
   
 Post subject:
PostPosted: Thu Nov 08, 2007 6:10 pm 
Offline
Junior Member

Joined: Mon Feb 26, 2007 7:35 pm
Posts: 20
I had it running as eth0:1, but I changed to to :0. I've changed it back now. Still works locally, but not remotely.

Here's the output from ifconfig:

Code:
# ifconfig
eth0      Link encap:Ethernet  HWaddr FE:FD:40:16:67:0A
          inet addr:64.22.103.10  Bcast:64.22.103.255  Mask:255.255.255.0
          inet6 addr: fe80::fcfd:40ff:fe16:670a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2696115 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2742679 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:531381736 (506.7 MiB)  TX bytes:1622071325 (1.5 GiB)
          Interrupt:5

eth0:1    Link encap:Ethernet  HWaddr FE:FD:40:16:67:0A
          inet addr:64.22.103.92  Bcast:64.22.103.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:5

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:64841 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64841 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7901846 (7.5 MiB)  TX bytes:7901846 (7.5 MiB)


I'd appreciate any suggestions as to how I can diagnose the problem.

Thanks,

James


Top
   
 Post subject:
PostPosted: Fri Nov 09, 2007 12:41 am 
Offline
Junior Member

Joined: Fri Sep 12, 2003 10:10 am
Posts: 33
I just have to ask... have you rebooted your linode since you purchased the additional IP?

It won't work until you do. (The IP can't be routed to your UML instance on the fly while it's running)


Top
   
 Post subject:
PostPosted: Fri Nov 09, 2007 4:13 am 
Offline
Junior Member

Joined: Mon Feb 26, 2007 7:35 pm
Posts: 20
Thanks, that's done the trick!

It might be a good idea to add that to the Wiki entry.


Top
   
 Post subject:
PostPosted: Fri Nov 09, 2007 4:19 am 
Offline
Junior Member

Joined: Mon Feb 26, 2007 7:35 pm
Posts: 20
I have edited it now. Someone more expert than me might want to check it.

Thanks again.


Top
   
 Post subject:
PostPosted: Wed Nov 21, 2007 7:19 am 
Offline
Senior Member

Joined: Sat Jun 05, 2004 12:49 am
Posts: 333
FWIW I couldn't get that to work on my debian box.

Quote:
RTNETLINK answers: Invalid argument


Meh.


Top
   
 Post subject: reboot magic!
PostPosted: Sun Jan 11, 2009 12:00 am 
Offline
Senior Newbie

Joined: Wed Jan 07, 2009 5:25 am
Posts: 10
Website: http://chrisboshuizen.com
I had the same problem, and again a reboot solved it. Thanks!


Top
   
 Post subject:
PostPosted: Wed Sep 09, 2009 3:28 pm 
Offline
Newbie

Joined: Wed Sep 09, 2009 2:41 pm
Posts: 2
I just edited into the "Multiple IPs" article on the wiki a note about rebooting. This also worked to solve a similarly mysterious problem with my linode not being able to get its second IP working; after a reboot, everything worked fine.

I added this note under the Debian / Ubuntu section; if this applies to other distros as well, somebody please promote that warning upwards in the article.


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