| Linode Forum https://forum.linode.com/ |
|
| Trouble using multiple IPs on one linode https://forum.linode.com/viewtopic.php?f=19&t=7257 |
Page 1 of 1 |
| Author: | PHLAK [ Wed Jun 15, 2011 8:35 pm ] |
| Post subject: | Trouble using multiple IPs on one linode |
I just got a second IP for my linode and have followed the example in the Static IP library article and configured my /etc/network/interfaces with the following Code: # This file describes the network interfaces available on your system After doing this I ran "/etc/init.d/networking restart" and it restarted successfully. However, I am unable to ping into 96.126.115.54 or out to it's corresponding gateway, 96.126.115.1, I get the following: Code: chris@Megatron:~$ ping 96.126.115.1 Am I missing something? What do I need to do in order to get this IP working in conjunction with the other? |
|
| Author: | NeonNero [ Wed Jun 15, 2011 8:45 pm ] |
| Post subject: | |
What does the ifconfig command report on your system? |
|
| Author: | PHLAK [ Wed Jun 15, 2011 8:49 pm ] |
| Post subject: | |
Code: chris@Megatron:~$ ifconfig |
|
| Author: | db3l [ Wed Jun 15, 2011 9:41 pm ] |
| Post subject: | |
Just a quick check, but have you rebooted your Linode after having the new address allocated? I know you have to do that for private addresses, and believe for additional public addresses as well. Before that you can actually make everything look proper from your internal guest viewpoint but it's still not going to work. -- David |
|
| Author: | PHLAK [ Wed Jun 15, 2011 10:49 pm ] |
| Post subject: | |
I thought running "/etc/init.d/networking restart" would be sufficient, but I'll try rebooting it. |
|
| Author: | PHLAK [ Wed Jun 15, 2011 10:50 pm ] |
| Post subject: | |
That seemed to work, thanks. Not sure why restarting the networking service didn't do it. |
|
| Author: | db3l [ Wed Jun 15, 2011 11:37 pm ] |
| Post subject: | |
PHLAK wrote: That seemed to work, thanks. Not sure why restarting the networking service didn't do it.
I'm not familiar with the Xen technical details, but believe that changing this sort of resource assigned to your Linode requires host-level reconfiguration as well, which only takes place during a restart. So it's not that it corrected something within your virtual machine (restarting networking was fine for that), but that the host environment hadn't yet been configured to allow the new address. -- David |
|
| Author: | carmp3fan [ Wed Jun 15, 2011 11:37 pm ] |
| Post subject: | |
PHLAK wrote: That seemed to work, thanks. Not sure why restarting the networking service didn't do it.
It would work on a non-Linode system. The Linode system requires a reboot to assign IPv4 addresses and, I believe, initial IPv6 addresses. |
|
| Author: | mnordhoff [ Thu Jun 16, 2011 6:00 pm ] |
| Post subject: | Re: Trouble using multiple IPs on one linode |
PHLAK wrote: Code: # This file describes the network interfaces available on your system Although it apparently works for you, there are two errors in this file: 1.) The "auto" line brings up eth0:1, even though you're only using eth0 and eth0:0. (The guide also has an eth0:1 interface for the private network, but you're not using that.) 2.) You should not have a second gateway line for eth0:0. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|