4
2

More than 3 years have passed since last update.

【CentOS】nmtuiコマンドにて変更したIPアドレスが反映されない場合の対処法

Last updated at Posted at 2021-01-10

nmtuiコマンドとは

Network Manager Text User Interfaceの略。
IPアドレスやデフォルトゲートウェイなどのネットワーク情報をGUIにて変更することが出来るコマンドのこと。

今回の事象

nmtuiコマンドを実行し、IPアドレス、デフォルトゲートウェイ変更後、
# systemctl restart NetworkManager を実施したが、変更が反映されなかった。

環境

  • CentOS Linux release 7.6.1810 (Core)

対処法

nmtuiコマンドを実行し、IPアドレス、デフォルトゲートウェイ変更後、以下のコマンドを実行することで解決。
# nmcli c down eth0; nmcli c up eth0

解説

①ネットワークアダプタ(eth0)を停止する。
# nmcli c down eth0

②ネットワークアダプタ(eth0)を開始する。
# nmcli c up eth0

参考にした記事

4
2
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
4
2