Boot taking a long time

Paul Groves paul.groves.787 at gmail.com
Mon Nov 5 17:07:19 UTC 2018


It turns out my suspicion was correct.

Here is my netplan configuration as generated by the Ubuntu Server Setup 
wizard on the install disc:

network:
     bonds:
         bond0:
             addresses:
             - 192.168.0.9/24
             dhcp4: false
             dhcp6: false
             gateway4: 192.168.0.1
             interfaces:
             - eno1
             - enp2s0
             nameservers:
                 addresses:
                 - 192.168.0.5
                 search:
                 - groves
             parameters:
                 mode: balance-rr
     ethernets:
         eno1:
             addresses: []
             dhcp4: false
             dhcp6: false
         enp2s0:
             addresses: []
             dhcp4: false
             dhcp6: false


The problem is that the system was waiting for the network interfaces 
eno1 and enps2s0 to come up and causing the delay at boot. Of course, 
the interfaces configured this way will never come 'up'.

As suggested on another mailing list I modified the configuration to the 
following.

     ethernets:
         eno1:
             addresses: []
             dhcp4: false
             dhcp6: false
             optional: true
         enp2s0:
             addresses: []
             dhcp4: false
             dhcp6: false
             optional: true


This has now resolved the problem. Because the interfaces are now set as 
optional they are not required to be up in order to boot the system.

Then once the system is booted and the network bonding module is loaded 
bond0 comes up.

Should this not be set automatically?




More information about the ubuntu-users mailing list