Ubuntu 22.04 LTS で固定IPアドレスを設定しようとした時、gateway4に対して下記警告が。
** (generate:XXXX) WARNING ** XX:XX:XX.XXX:`gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
検索したら、今 gateway4 は非推奨になっていて、routes で default gateway の設定を行うよう推奨されているらしい。
すべてのコンテンツ作成者のための情報発信プラットフォーム。
Shen et al. characterize protein signatures in the blood associated with social isolation and loneliness, demonstrating how these link social isolation and loneliness to an increased risk of disease and mortality.
Ubuntu22.04になって非推奨へ変わったこと インストール時に静的IPを設定し、インストール完了後に設定ファイル(/etc/netplan/00-install-config.yaml)をチェッ
なので、gateway4~ の記述を消して、下記のように設定し直した。
network:
version: 2
renderer: NetworkManager
ethernets:
eth0:
dhcp4: no
dhcp6: no
addresses: [XXX.XXX.XXX.XXX/24]
routes:
- to: default
nameservers: [XXX.XXX.XXX.XXX, XXX,XXX,XXX,XXX]