0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu22.04でネットワーク接続のアイコンがなくなった時の対策

Posted at

Ubuntu22.04 でネットワーク接続ができなくなる

以下の画像のようにネットワーク設定のアイコンが消滅してしまった。

image.png

対策方法

色々調べてみると、以下のような記事を見つけた。

下記コマンドでON/OFFを操作できるようだが、試してみても駄目だった。

$ sudo nmcli networking off
$ sudo nmcli networking on

原因

Ubuntu22.04では

/etc/netplan/01-network-manager-all.yaml (他にもファイルがある?)

/etc/netplan/以下のyamlファイルがnetworkservice起動時に読み込まれる。

自分は仮想環境同士のping接続確認の際に

/etc/netolan/99_****.yamlというファイルを作成していた。

すべて読み込まれることをどこかの記事で見たため、作成したファイルが怪しいと思い

削除してみると、アイコンが復活した。

結果

01-neteork-manager-all.yamlより後に作成したyamlが読み込まれていたため、

サービス起動時の設定が異なるものとなっていたと考える。

まとめ

昔のバージョンのように、簡単にネットワーク設定ができなくなっている。

(簡単に設定はできるが、競合してしまう)

表面的な操作だけを覚えるのではなく、

ある操作がどのようにOS側の設定に影響を与えているかを把握しながら、

操作していくことが必要だと実感した。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?