NetworkManager 基本コマンド
CentOSでWifiやLanの接続、切断などの操作をCUIにて行う基本コマンド集です。
コマンド |
意 味 |
nmcli device |
ネットワーク機器リスト表示 |
nmcli radio wifi on |
wifi ネットワークへ接続 |
nmcli radio wifi off |
wifi ネットワークから切断 |
nmcli networking on |
全てのネットワークを接続 |
nmcli networking off |
全てのネットワークを切断 |
nmcli device connect [デバイス名] |
ネットワークデバイスを有効化 |
nmcli device disconnect [デバイス名] |
ネットワークデバイスの無効化 |
nmcli connection show |
メモリ・ディスク上のプロファイル表示 |
nmcli device status |
デバイスの接続状況 |
nmcli device show [デバイス名] |
デバイスの詳細表示 |
nmcli device wifi |
接続可能な無線アクセスポイント表示 |
nmcli networking connectivity |
接続状態(下のテーブル参照) |
状 態 |
意 味 |
none |
the host is not connected to any network. |
portal |
the host is behind a captive portal and cannot reach the full Internet. |
limited |
the host is connected to a network, but it has no access to the Internet. |
full |
the host is connected to a network and has full access to the Internet. |
unknown |
the connectivity status cannot be found out. |