Comment 71 for bug 1301015

Hayjumper (hayjumper) wrote :

The command in comment #8 *should* do this in a single exec resource:

sudo ifdown --exclude=lo -a && sudo ifup --exclude=lo -a

However, I have found this does not actually work either for any significant config change (e.g. IP address change, gateway change). In fact, the command above frequently causes networking to stop working in such cases.

The only way I've found that works is to reboot the server; NetworkManager is not an option when doing text-based network config. Other distros using upstart do not seem to have this problem. It's a shame that Canonical hasn't seen fit to address this, and its cost them my employer's (albeit meager) support budget.