NetworkManagerを使用してブリッジを作成できない

NetworkManagerを使用してブリッジを作成できない

なぜ使用できないのかを調べようとしますNetworkManager

NetworkManager今では、ブリッジネットワークの作成方法をさまざまな場所で検索してみましたが、チュートリアル一つにも言及できないほどです。彼らはすべてほぼ同じです。私がしたステップは次のとおりです。

  1. イーサネットの切断
    nmcli dev disconnect enp42s0
    
  2. ブリッジとスレーブの生成
    nmcli con add type bridge ifname br0 con-name br0 autoconnect yes connection.zone home
    nmcli con modify enp42s0 master br0 connection.zone home
    
  3. ブリッジとスレーブの接続
    nmcli con up br0
    nmcli con up enp42s0-slave
    

最後のコマンドを除いて、すべてが成功します。次のエラーが表示されます。

Error: Connection activation failed: Unknown error
Hint: use 'journalctl -xe NM_CONNECTION=658de29d-4809-4113-9aa9-1f3f32ae40eb + NM_DEVICE=enp42s0' to get more details.

journalctlログはあまり役に立ちません。

device (enp42s0): Activation: starting connection 'enp42s0-slave' (658de29d-4809-4113-9aa9-1f3f32ae40eb)
device (enp42s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
device (enp42s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
device (enp42s0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
device (enp42s0): Activation: connection 'enp42s0-slave' could not be enslaved
device (enp42s0): state change: ip-config -> failed (reason 'unknown', sys-iface-state: 'managed')
device (enp42s0): released from master device br0
device (enp42s0): Activation: failed for connection 'enp42s0-slave'
device (enp42s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')

文脈のために、私はこれに関する質問もしました。NetworkManagerはipコマンドとは異なる情報を表示します。

ベストアンサー1

これが私の問題を解決したとは信じられません!

sudo reboot

--- 顔を覆う ---

以前これが起こらなかったのは、うまくいかなかったため、ブリッジとスレーブを削除し続けたためです。

おすすめ記事