【netplan】ネットワーク確認で起動が遅い【Ubuntu 20.04】

≪≪この記事をすべて読むには約 2 分かかります≫≫

Ubuntu 20.04を使ってみているのですが、起動がとても遅いことが多いです。起動ログを見ているといつも同じところで止まっています。

A start job is running for wait for network to be configured.

20秒からスタート・・・。2分までひたすら待機しています。

netplanで設定

何度か設定しているnetplanのyamlファイルに、optional: trueを追加します。

エントリーごとに設定すれば解決です。

Unless you’ve got a specific ethernet network interface that MUST be completely operational for other services to properly start (like a WAN port), go ahead and add this statement to the other ethernet interface stanzas.

 

設定を自動に任せる部分がなしで完全に設定できていればoptional: trueを書かなくてもよいようですが、そうでない場合は止まるようです。