【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を追加します。

50-cloud-init.yaml, optional: true - will the network interface get initialized if it gets online after the boot sequence?
Good eveningUnfortunately, the Man Page: is not precise in the description for the optional (bool) property.If one interface has this setting:ethernets: eth0:...

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

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を書かなくてもよいようですが、そうでない場合は止まるようです。

コメント

タイトルとURLをコピーしました