linux:commands:network:network_manager

文書の過去の版を表示しています。


NetworkManager の設定(nmcli)

$ nmcli general hostname
localhost.localdomain
$ nmcli general hostname hostname.localdomain
$ nmcli general hostname
hostname.localdomain
$ nmcli connection show
名前                UUID                                  タイプ          デバイス
eno33554992         6ddfca43-4614-44f3-82d3-08f0d967f554  802-3-ethernet  eno33554992
eno16777736         85d3a477-f9e9-4fe5-a685-27a6ac972cd4  802-3-ethernet  eno16777736
$ sudo nmcli connection modify uuid 6ddfca43-4614-44f3-82d3-08f0d967f554 connection.id eno1
$ sudo nmcli connection modify uuid 85d3a477-f9e9-4fe5-a685-27a6ac972cd4 connection.id eno2
$ nmcli connection show
名前  UUID                                  タイプ          デバイス
eno1  6ddfca43-4614-44f3-82d3-08f0d967f554  802-3-ethernet  eno33554992
eno2  85d3a477-f9e9-4fe5-a685-27a6ac972cd4  802-3-ethernet  eno16777736
$ nmcli connection show eno1
connection.id:                          eno1
connection.uuid:                        6ddfca43-4614-44f3-82d3-08f0d967f554
connection.interface-name:              --
connection.type:                        802-3-ethernet
connection.autoconnect:                 yes
connection.timestamp:                   1425802863
connection.read-only:                   no
connection.permissions:
connection.zone:                        --
connection.master:                      --
connection.slave-type:                  --
connection.secondaries:
connection.gateway-ping-timeout:        0
802-3-ethernet.port:                    --
802-3-ethernet.speed:                   0
802-3-ethernet.duplex:                  --
802-3-ethernet.auto-negotiate:          yes
802-3-ethernet.mac-address:             00:0C:29:20:A1:DB
802-3-ethernet.cloned-mac-address:      --
802-3-ethernet.mac-address-blacklist:
802-3-ethernet.mtu:                     自動
802-3-ethernet.s390-subchannels:
802-3-ethernet.s390-nettype:            --
802-3-ethernet.s390-options:
ipv4.method:                            auto
ipv4.dns:
ipv4.dns-search:
ipv4.addresses:
ipv4.routes:
ipv4.ignore-auto-routes:                no
ipv4.ignore-auto-dns:                   no
ipv4.dhcp-client-id:                    --
ipv4.dhcp-send-hostname:                yes
ipv4.dhcp-hostname:                     --
ipv4.never-default:                     no
ipv4.may-fail:                          yes
ipv6.method:                            auto
ipv6.dns:
ipv6.dns-search:
ipv6.addresses:
ipv6.routes:
ipv6.ignore-auto-routes:                no
ipv6.ignore-auto-dns:                   no
ipv6.never-default:                     no
ipv6.may-fail:                          yes
ipv6.ip6-privacy:                       -1 (不明)
ipv6.dhcp-hostname:                     --
$ sudo nmcli connection modify eno1 802-3-ethernet.mac-address "00:0C:29:20:A1:D1"
$ sudo nmcli connection modify eno2 802-3-ethernet.mac-address "00:0C:29:20:A1:D2"
$ sudo nmcli connection modify eno1 ipv4.method manual ipv4.addresses "172.16.1.81/24 172.16.1.254"
$ sudo nmcli connection modify eno2 ipv4.method manual ipv4.addresses "192.168.10.254/24"
$ sudo nmcli connection modify eno1 ipv4.dns "172.16.1.254"
$ sudo systemctl restart NetworkManager
$ sudo systemctl restart network
$ nmcli connection show
** (process:3614): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManag
er: Rejected send message, 3 matched rules; type="method_call", sender=":1.92" (uid=1000 p
id=3614 comm="nmcli connection show ") interface="org.freedesktop.DBus.Properties" member=
"GetAll" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkMana
ger" (uid=0 pid=2125 comm="/usr/sbin/NetworkManager --no-daemon ")
エラー: nmcli (0.9.9.0) と NetworkManager (不明) のバージョンが一致しません。--nocheck を
使用すると強制的に実行することはできますが、予測できない結果となります。
  • linux/commands/network/network_manager.1432160969.txt.gz
  • 最終更新: 2019/05/18 02:23
  • (外部編集)