<pre>
$ sudo apt install iproute2
</pre>
====静的IPアドレス====
----
[[File:docker_except_ip_router.png|500px]]
<pre>
$ ls /etc/netplan
99-netcfg.yaml bak
</pre>
<pre>
$ sudo vi /etc/netplan/99-netcfg.yaml
network:
version: 2
renderer: NetworkManager
ethernets:
enp1s0f1:
dhcp4: no
addresses: [192.168.0.23/24]
gateway4: 192.168.0.1
nameservers:
addresses: [192.168.0.1, 8.8.8.8, 8.8.4.4]
</pre>
<pre>
$ sudo netplan apply
</pre>
====ネットワークブリッジを作成====