1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Ubuntu 20.04でKVMでブリッジを使う方法

Posted at

ホスト⇔ゲスト
ゲスト⇔他のPC
で通信したい時に使います。

デバイス名を調べる

nmcli con show

表示れい

NAME                 UUID                                  TYPE      DEVICE  
xxxxxxxxxxxx         xxxx-xxxx-xxxx-xxx-xxxxx              ethernet  enp4s0 

LANカードの物理デバイスは「enp4s0」と仮定します。
この部分は調べた結果に書き変えます。

ブリッジ作成

sudo nmcli con add type bridge ifname br0
sudo nmcli con add type bridge-slave ifname enp4s0 master br0

KVM ネットワークインターフェースの設定

「ブリッジ br0:ホストデバイス enp4s0」に設定します。
Screenshot from 2022-11-10 20-15-14.png

これで通信ができるようになりました。

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?