Last active
September 15, 2017 08:13
-
-
Save tetsuyainfra/e16b34a4bd6b9556adb61f39a67a71d9 to your computer and use it in GitHub Desktop.
KVMでbridge専用でethernet使う時のメモ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ブリッジ作成 | |
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