alpine-conf: setup-interfaces: loopback configuration needs to be first in /etc/network/interfaces
The issue:
- setup-interfaces ends up placing the loopback configuration at the bottom of the interfaces file
- When adding a static IPv6 address (for instance) to eth0, networking only wants to come up on boot (IIRC).
- That is, any attempts to run ‘/etc/init.d/networking restart’ in this configuration, results in an error and doesn’t assign the addresses to the interface (not sure about multi-interface configurations).
The error is simply:
ip: RTNETLINK answers: Invalid argument
ip: RTNETLINK answers: No route to host
The solution:
- Placing the loopback configuration at the top fixes it.
It’d be ideal to fix this in setup-interfaces, and I could maybe put a warning on the wiki, stating that the loopback configuration must appear first in order to prevent issues like this.
(from redmine: issue id 544, created on 2011-03-15, closed on 2011-04-27)