1.bridge-utilsのインストール
$ sudo apt update && sudo apt install -y bridge-utils
2.Netplanの設定
/etc/netplan/00-installer-config.yaml
network:
ethernets:
eth0:
dhcp4: false
dhcp6: false
accept-ra: false
bridges:
br0:
interfaces: [eth0]
addresses: [192.168.1.100/24]
gateway4: 192.168.1.1
link-local: []
nameservers:
addresses: [192.168.1.1]
parameters:
forward-delay: 0
stp: no
optional: true
version: 2
3.設定の適用
$ sudo netplan apply