2
1

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 3 years have passed since last update.

Ubuntu 20.04LTSでブリッジ接続を作成する

Last updated at Posted at 2021-09-22

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?