34.2. nmcli ユーティリティーを使用した 802.3 リンクの設定
イーサネット接続の 802.3 リンクを設定するには、次の設定パラメーターを変更します。
-
802-3-ethernet.auto-negotiate
-
802-3-ethernet.speed
-
802-3-ethernet.duplex
手順
接続の現在の設定を表示します。
# nmcli connection show Example-connection ... 802-3-ethernet.speed: 0 802-3-ethernet.duplex: -- 802-3-ethernet.auto-negotiate: no ...
問題が発生した場合にパラメーターをリセットする必要がある場合は、これらの値を使用できます。
速度とデュプレックスリンクの設定を行います。
# nmcli connection modify Example-connection 802-3-ethernet.auto-negotiate yes 802-3-ethernet.speed 10000 802-3-ethernet.duplex full
このコマンドは、オートネゴシエーションを有効にし、接続の速度を
10000
Mbit フルデュプレックスに設定します。接続を再度アクティベートします。
# nmcli connection up Example-connection
検証
ethtool
ユーティリティーを使用して、イーサネットインターフェイスenp1s0
の値を確認します。# ethtool enp1s0 Settings for enp1s0: ... Speed: 10000 Mb/s Duplex: Full Auto-negotiation: on ... Link detected: yes
関連情報
-
nm-settings(5)
man ページ