Comment 9 for bug 1628552

Revision history for this message
Dan Streetman (ddstreet) wrote :

> well i've now been able to restart 3 of the 4 systems about 5-10x each through the day. all have
> had their gateway and dns- settings from /e/n/i reliably set. that is, until now. i've got one
> system that did not get gateway or dns- settings.

The gateway is set directly from ifup (by calling 'ip route add default via ...'). But the resolv.conf entries are set by the /etc/network/if-up.d/000resolvconf script, which is only run if all other interface configuration succeeded, so if you're missing the dns that could just mean some other part of the interface setup failed (e.g. setting the gateway).

> is there a way to check for a failure status code tied to ifup or resolvconf runs during startup?

are you using upstart or systemd? For upstart look in the /var/log/upstart/network* log files, for systemd look in /var/log/syslog.