Skip to content

Instantly share code, notes, and snippets.

@tetsuyainfra
Last active September 15, 2017 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tetsuyainfra/e16b34a4bd6b9556adb61f39a67a71d9 to your computer and use it in GitHub Desktop.
Save tetsuyainfra/e16b34a4bd6b9556adb61f39a67a71d9 to your computer and use it in GitHub Desktop.
KVMでbridge専用でethernet使う時のメモ
# ブリッジ作成
nmcli con add type bridge ifname br1
nmcli con modify bridge-br1 bridge.stp no
IP 割り振らずにできないのかなぁ
nmcli con modify bridge-br1 ipv4.method manual
# 物理デバイスをブリッジに追加
nmcli con add type bridge-slave ifname ens224 master bridge-br1
# ※connection nameを設定しない場合 bridge-DEV_NAME となる
# 名前を付ける場合はcon-name オプションを追加する
# nmcli con add type bridge ifname br1 con-name eth0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment