Help us understand the problem. What is going on with this article?

Ubuntu19.10でブリッジを作る

設定ファイル

Ubuntu16.04でネットワークを設定する際は/etc/network/interfacesを編集していましたが、Ubuntu19.10環境では /etc/netplan/50-cloud-init.yamlを編集する必要があります。

ブリッジを設定する

/etc/netplan/50-cloud-init.yamlを以下のように編集します。

network:
    version: 2
    ethernets:
        enp4s0:
            dhcp4: no
    bridges:
        br0:
            interfaces:
                - enp4s0
            dhcp4: no
            addresses:
                - 192.168.99.1/24
            gateway4: 192.168.99.254
            nameservers:
                addresses: [8.8.8.8,8.8.4.4]
            parameters:
                forward-delay: 0
                stp: no
            optional: true

設定を適用する

以下のコマンドで設定を適用します。ymlの書式に問題がある場合は問題がある場所が指摘されます。

sudo netplan apply
rarudonet
Unityエンジニア。サーバー構築、ネットワーク構築、動画制作等々やります。
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした