LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-26-2019, 07:19 AM   #1
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Rep: Reputation: 103Reputation: 103
A start job is running for Wait for Network to be Configured - netplan Ubuntu 18.04


I am using a virtual machine within virtual box 5.2.18 within Ubuntu 18.04.2. I have two network adapters, one is the default nat (10.0.2.0/24) and the other is a host-only adapter, which means it can only communicate with other virtual machines within the same subnet (in my case 192.168.99.1/24; dhcp server: 192.168.99.100; dhcp pool .101-.254).
I've removed the cloud-init package, I've also removed the cloud network config in /etc/netplan and I've created the following file in /etc/netplan/config.yml:
Code:
network:
        renderer: networkd
        version: 2
        ethernets:
                enp0s3:
                        dhcp4: yes
                enp0s8:
                        dhcp4: yes
The problem is that during the booting process, I get this message:
Code:
A start job is running for Wait for Network to be Configured
which lasts around 2 minutes.
Everything works just fine when the system has booted, I have access to the internet, although I do get a message that it failed to connect to https://changelogs.ubuntu.com and that I should check my internet connection.

Related messages found in syslog:
Code:
[Tue Feb 26 14:08:00 2019] e1000 0000:00:08.0 enp0s8: renamed from eth1
[Tue Feb 26 14:08:00 2019] e1000 0000:00:03.0 enp0s3: renamed from eth0
Feb 26 14:08:07 reverseproxy kernel: [    7.504798] IPv6: ADDRCONF(NETDEV_UP): enp0s8: link is not ready
Feb 26 14:08:07 reverseproxy kernel: [    7.515006] e1000: enp0s8 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
Feb 26 14:08:07 reverseproxy kernel: [    7.515527] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s8: link becomes ready
Feb 26 14:08:07 reverseproxy kernel: [    7.523682] IPv6: ADDRCONF(NETDEV_UP): enp0s3: link is not ready
Feb 26 14:08:07 reverseproxy kernel: [    7.532122] e1000: enp0s3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
Feb 26 14:08:07 reverseproxy kernel: [    7.537654] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s3: link becomes ready
Feb 26 14:08:07 reverseproxy systemd-networkd[666]: enp0s3: Link is not managed by us
Feb 26 14:08:07 reverseproxy systemd-networkd[666]: lo: Link is not managed by us
Feb 26 14:08:07 reverseproxy systemd-networkd[666]: enp0s8: IPv6 successfully enabled
Feb 26 14:08:07 reverseproxy systemd[1]: Starting Network Name Resolution...
Feb 26 14:08:07 reverseproxy systemd[1]: Starting Wait for Network to be Configured...
Feb 26 14:08:07 reverseproxy systemd-networkd[666]: lo: Link is not managed by us
Feb 26 14:08:07 reverseproxy systemd-networkd[666]: enp0s3: IPv6 successfully enabled
Feb 26 14:08:07 reverseproxy systemd-networkd[666]: enp0s8: Gained carrier
Feb 26 14:08:07 reverseproxy systemd-networkd[666]: enp0s8: DHCPv4 address 192.168.99.101/24
Feb 26 14:08:07 reverseproxy systemd-networkd[666]: enp0s3: Gained carrier
Feb 26 14:08:07 reverseproxy systemd-networkd[666]: enp0s3: DHCPv4 address 10.0.2.4/24 via 10.0.2.2
Feb 26 14:08:07 reverseproxy systemd-networkd[666]: enp0s8: DHCP: No routes received from DHCP server: No data available
Feb 26 14:08:08 reverseproxy systemd-networkd[666]: enp0s8: Gained IPv6LL
Feb 26 14:08:09 reverseproxy systemd-networkd[666]: enp0s3: Gained IPv6LL
Feb 26 14:08:09 reverseproxy systemd-networkd[666]: enp0s3: Configured
Feb 26 14:08:09 reverseproxy systemd-networkd-wait-online[690]: managing: enp0s3
Feb 26 14:08:09 reverseproxy systemd-networkd-wait-online[690]: ignoring: lo
 
Old 02-28-2019, 02:30 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
You can try to change "dhcp4: yes" to "dhcp4: true".
 
Old 03-30-2019, 07:59 PM   #3
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Original Poster
Rep: Reputation: 103Reputation: 103
Unfortunately I don't remember exactly how I solved this, but it might also be related to this yml and yaml thing. Of course, the fact that it read the configuration from .yml as it was would seemingly contradict that. In any case, it works now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Netplan auth block unrecognised lolmc Linux - Wireless Networking 1 02-22-2019 10:44 PM
LXer: Have a Plan for Netplan LXer Syndicated Linux News 0 10-17-2018 12:32 AM
LXer: How to Use the Netplan Network Configuration Tool on Linux LXer Syndicated Linux News 0 09-09-2018 04:51 AM
Ubuntu 17.04, netplan, bring up interface without ip da1 Ubuntu 3 01-24-2018 10:04 AM
I download then wait and download and wait... jsheffie SUSE / openSUSE 1 11-04-2005 04:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration