Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Multiple IPs

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linux Networking
Author Message
lostcarpark



Joined: 26 Feb 2007
Posts: 20

Posted: Thu Nov 08, 2007 2:40 am    Post subject: Multiple IPs  

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!
Back to top  
pclissold



Joined: 24 Oct 2003
Posts: 470
Location: Netherlands

Posted: Thu Nov 08, 2007 4:05 am    Post subject:  

Your second IP looks like it's being blocked by a firewall.
Back to top  
lostcarpark



Joined: 26 Feb 2007
Posts: 20

Posted: Thu Nov 08, 2007 5:11 am    Post subject:  

Ah, of course!

I think I know what to do now.

Thanks.
Back to top  
lostcarpark



Joined: 26 Feb 2007
Posts: 20

Posted: Thu Nov 08, 2007 2:44 pm    Post subject:  

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?
Back to top  
kangaby



Joined: 20 Oct 2004
Posts: 62

Posted: Thu Nov 08, 2007 4:22 pm    Post subject:  

Try changing eth0:0 to eth0:1

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



Joined: 26 Feb 2007
Posts: 20

Posted: Thu Nov 08, 2007 5:10 pm    Post subject:  

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
Back to top  
aaron



Joined: 12 Sep 2003
Posts: 27

Posted: Thu Nov 08, 2007 11:41 pm    Post subject:  

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)
Back to top  
lostcarpark



Joined: 26 Feb 2007
Posts: 20

Posted: Fri Nov 09, 2007 3:13 am    Post subject:  

Thanks, that's done the trick!

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



Joined: 26 Feb 2007
Posts: 20

Posted: Fri Nov 09, 2007 3:19 am    Post subject:  

I have edited it now. Someone more expert than me might want to check it.

Thanks again.
Back to top  
OverlordQ



Joined: 04 Jun 2004
Posts: 200

Posted: Wed Nov 21, 2007 6:19 am    Post subject:  

FWIW I couldn't get that to work on my debian box.

Quote: RTNETLINK answers: Invalid argument

Meh.
Back to top  
 
       Linode.com Forum Forum Index -> Linux Networking
Page 1 of 1