On 4/29/2015 5:43 PM, Michael Biebl wrote:
<<<snip>>>
Once /etc/init.d/networking has completed, the network is considered up.
Ah, OK. Sorry about that! I thought systemd had taken over that
functionality.
<<<snip>>>
Can you attach the output of
systemctl status networking.service
systemctl status ifup@eth0.service
Attached as "networking.service-status.txt" and
"i...@eth0.service-status.txt".
(you need to run that as root).
Does it help, if you switch "allow-hotplug eth0" to "auto eth0" in
/etc/network/interfaces?
Yes it does! If I switch to "auto eth0", then everything will correctly
wait for the network connection to come up before continuing to boot.
I have attached "post-interface-change-networking.service-status.txt" to
show the output of `systemctl status networking.service` after I changed
from "allow-hotplug eth0" to "auto eth0".
~ Karl
â—� ifup@eth0.service - ifup for eth0
Loaded: loaded (/lib/systemd/system/ifup@.service; static)
Active: active (exited) since Thu 2015-04-30 10:52:04 PDT; 2min 28s ago
Process: 710 ExecStart=/sbin/ifup --allow=hotplug %I (code=exited,
status=0/SUCCESS)
Main PID: 710 (code=exited, status=0/SUCCESS)
Apr 30 10:52:04 blargh.stanford.edu systemd[1]: Started ifup for eth0.
Apr 30 10:52:04 blargh.stanford.edu dhclient[721]: Internet Systems Consortium
DHCP Client 4.3.1
Apr 30 10:52:04 blargh.stanford.edu dhclient[721]: Copyright 2004-2014 Internet
Systems Consortium.
Apr 30 10:52:04 blargh.stanford.edu dhclient[721]: All rights reserved.
Apr 30 10:52:04 blargh.stanford.edu dhclient[721]: For info, please visit
https://www.isc.org/software/dhcp/
Apr 30 10:52:04 blargh.stanford.edu dhclient[721]:
Apr 30 10:52:04 blargh.stanford.edu ifup[710]: Internet Systems Consortium DHCP
Client 4.3.1
Apr 30 10:52:04 blargh.stanford.edu ifup[710]: Copyright 2004-2014 Internet
Systems Consortium.
Apr 30 10:52:04 blargh.stanford.edu ifup[710]: All rights reserved.
Apr 30 10:52:04 blargh.stanford.edu ifup[710]: For info, please visit
https://www.isc.org/software/dhcp/
Apr 30 10:52:04 blargh.stanford.edu dhclient[721]: Listening on
LPF/eth0/14:cc:20:00:20:36
Apr 30 10:52:04 blargh.stanford.edu dhclient[721]: Sending on
LPF/eth0/14:cc:20:00:20:36
Apr 30 10:52:04 blargh.stanford.edu dhclient[721]: Sending on Socket/fallback
Apr 30 10:52:04 blargh.stanford.edu dhclient[721]: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 5
Apr 30 10:52:04 blargh.stanford.edu ifup[710]: Listening on
LPF/eth0/14:cc:20:00:20:36
Apr 30 10:52:04 blargh.stanford.edu ifup[710]: Sending on
LPF/eth0/14:cc:20:00:20:36
Apr 30 10:52:04 blargh.stanford.edu ifup[710]: Sending on Socket/fallback
Apr 30 10:52:04 blargh.stanford.edu ifup[710]: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 5
Apr 30 10:52:09 blargh.stanford.edu dhclient[721]: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 9
Apr 30 10:52:09 blargh.stanford.edu ifup[710]: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 9
Apr 30 10:52:09 blargh.stanford.edu dhclient[721]: DHCPREQUEST on eth0 to
255.255.255.255 port 67
Apr 30 10:52:09 blargh.stanford.edu dhclient[721]: DHCPOFFER from 171.64.18.1
Apr 30 10:52:09 blargh.stanford.edu ifup[710]: DHCPREQUEST on eth0 to
255.255.255.255 port 67
Apr 30 10:52:09 blargh.stanford.edu ifup[710]: DHCPOFFER from 171.64.18.1
Apr 30 10:52:09 blargh.stanford.edu dhclient[721]: DHCPACK from 171.64.18.1
Apr 30 10:52:09 blargh.stanford.edu ifup[710]: DHCPACK from 171.64.18.1
Apr 30 10:52:09 blargh.stanford.edu dhclient[721]: bound to 171.64.19.50 --
renewal in 81898 seconds.
Apr 30 10:52:09 blargh.stanford.edu ifup[710]: bound to 171.64.19.50 -- renewal
in 81898 seconds.
â—� networking.service - LSB: Raise network interfaces.
Loaded: loaded (/etc/init.d/networking)
Drop-In: /run/systemd/generator/networking.service.d
└─50-insserv.conf-$network.conf
/lib/systemd/system/networking.service.d
└─network-pre.conf
Active: active (exited) since Thu 2015-04-30 10:52:04 PDT; 38s ago
Process: 627 ExecStart=/etc/init.d/networking start (code=exited,
status=0/SUCCESS)
Apr 30 10:52:03 blargh.stanford.edu ntpdate[690]: Can't find host
time-a.stanford.edu: Name or service not known (-2)
Apr 30 10:52:04 blargh.stanford.edu networking[627]: Configuring network
interfaces...done.
Apr 30 10:52:04 blargh.stanford.edu systemd[1]: Started LSB: Raise network
interfaces..
● networking.service - LSB: Raise network interfaces.
Loaded: loaded (/etc/init.d/networking)
Drop-In: /run/systemd/generator/networking.service.d
└─50-insserv.conf-$network.conf
/lib/systemd/system/networking.service.d
└─network-pre.conf
Active: active (running) since Thu 2015-04-30 10:56:38 PDT; 1min 4s ago
Process: 1261 ExecStop=/etc/init.d/networking stop (code=exited,
status=0/SUCCESS)
Process: 1355 ExecStart=/etc/init.d/networking start (code=exited,
status=0/SUCCESS)
CGroup: /system.slice/networking.service
└─1394 dhclient -v -pf /run/dhclient.eth0.pid -lf
/var/lib/dhcp/dhclient.eth0.leases eth0
Apr 30 10:56:31 blargh.stanford.edu dhclient[1378]: Internet Systems Consortium
DHCP Client 4.3.1
Apr 30 10:56:31 blargh.stanford.edu dhclient[1378]: Copyright 2004-2014
Internet Systems Consortium.
Apr 30 10:56:31 blargh.stanford.edu dhclient[1378]: All rights reserved.
Apr 30 10:56:31 blargh.stanford.edu dhclient[1378]: For info, please visit
https://www.isc.org/software/dhcp/
Apr 30 10:56:31 blargh.stanford.edu dhclient[1378]:
Apr 30 10:56:31 blargh.stanford.edu networking[1355]: Configuring network
interfaces...Internet Systems Consortium DHCP Client 4.3.1
Apr 30 10:56:31 blargh.stanford.edu networking[1355]: Copyright 2004-2014
Internet Systems Consortium.
Apr 30 10:56:31 blargh.stanford.edu networking[1355]: All rights reserved.
Apr 30 10:56:31 blargh.stanford.edu networking[1355]: For info, please visit
https://www.isc.org/software/dhcp/
Apr 30 10:56:31 blargh.stanford.edu dhclient[1378]: Listening on
LPF/eth0/14:cc:20:00:20:36
Apr 30 10:56:31 blargh.stanford.edu dhclient[1378]: Sending on
LPF/eth0/14:cc:20:00:20:36
Apr 30 10:56:31 blargh.stanford.edu dhclient[1378]: Sending on Socket/fallback
Apr 30 10:56:31 blargh.stanford.edu dhclient[1378]: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 7
Apr 30 10:56:31 blargh.stanford.edu networking[1355]: Listening on
LPF/eth0/14:cc:20:00:20:36
Apr 30 10:56:31 blargh.stanford.edu networking[1355]: Sending on
LPF/eth0/14:cc:20:00:20:36
Apr 30 10:56:31 blargh.stanford.edu networking[1355]: Sending on
Socket/fallback
Apr 30 10:56:31 blargh.stanford.edu networking[1355]: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 7
Apr 30 10:56:38 blargh.stanford.edu dhclient[1378]: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 20
Apr 30 10:56:38 blargh.stanford.edu networking[1355]: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 20
Apr 30 10:56:38 blargh.stanford.edu dhclient[1378]: DHCPREQUEST on eth0 to
255.255.255.255 port 67
Apr 30 10:56:38 blargh.stanford.edu dhclient[1378]: DHCPOFFER from 171.64.18.1
Apr 30 10:56:38 blargh.stanford.edu networking[1355]: DHCPREQUEST on eth0 to
255.255.255.255 port 67
Apr 30 10:56:38 blargh.stanford.edu networking[1355]: DHCPOFFER from 171.64.18.1
Apr 30 10:56:38 blargh.stanford.edu dhclient[1378]: DHCPACK from 171.64.18.1
Apr 30 10:56:38 blargh.stanford.edu networking[1355]: DHCPACK from 171.64.18.1
Apr 30 10:56:38 blargh.stanford.edu dhclient[1378]: bound to 171.64.19.50 --
renewal in 74850 seconds.
Apr 30 10:56:38 blargh.stanford.edu networking[1355]: bound to 171.64.19.50 --
renewal in 74850 seconds.
Apr 30 10:56:38 blargh.stanford.edu networking[1355]: done.
Apr 30 10:56:38 blargh.stanford.edu systemd[1]: Started LSB: Raise network
interfaces..