| Linode Forum https://forum.linode.com/ |
|
| Problems bringing up a second virtual network interface https://forum.linode.com/viewtopic.php?f=19&t=9599 |
Page 1 of 1 |
| Author: | tubaguy50035 [ Wed Dec 05, 2012 6:33 pm ] |
| Post subject: | Problems bringing up a second virtual network interface |
I'm having issues adding a second IP address to one interface. Below is my Code: /etc/networking/interfaces Code: # The loopback network interface When I run Code: /etc/init.d/networking restart, I get several errors about resolv.conf and then a fail error about bringing up eth0:1: Code: resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything. Any reason this would be? I didn't have any problems with I first set up eth0 and eth0:0. |
|
| Author: | mnordhoff [ Wed Dec 05, 2012 6:41 pm ] |
| Post subject: | Re: Problems bringing up a second virtual network interface |
Remove the 'gateway' line from eth0:1. BTW, the /etc/resolv.conf thing isn't an error, exactly. The system is just whining that automatic management of the file is disabled. If that's what you want, it's not an error. |
|
| Author: | tubaguy50035 [ Wed Dec 05, 2012 6:48 pm ] |
| Post subject: | Re: Problems bringing up a second virtual network interface |
Removed the gateway line and am still seeing the error. I've also tried manually bringing down the interfaces and then bringing them back up. Code: sudo ifdown eth0:1 Code: sudo ifup eth0:1 |
|
| Author: | tubaguy50035 [ Wed Dec 05, 2012 7:03 pm ] |
| Post subject: | Re: Problems bringing up a second virtual network interface |
I rebooted and that fixed my problem... Is there a correct way to restart networking? I was doing /etc/init.d/networking restart. |
|
| Author: | Vance [ Thu Dec 06, 2012 8:59 am ] |
| Post subject: | Re: Problems bringing up a second virtual network interface |
Note that a reboot is necessary to add a new IP address (this is a Linode requirement, not a Linux one). |
|
| Author: | Yifan [ Sat Dec 08, 2012 11:19 pm ] |
| Post subject: | Re: Problems bringing up a second virtual network interface |
The linode tutorial is unclear about the reboot. After adding interfaces, the tutorial says now you can ping the gateway. In fact, you won't be able to ping the second gateway until you reboot. |
|
| Author: | tubaguy50035 [ Thu Dec 20, 2012 4:58 pm ] |
| Post subject: | Re: Problems bringing up a second virtual network interface |
Vance wrote: Note that a reboot is necessary to add a new IP address (this is a Linode requirement, not a Linux one). Any reason why? A Zen thing? |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|