Ubuntu20

From I Will Fear No Evil
Revision as of 19:12, 24 January 2022 by Chubbard (talk | contribs) (Created page with "Some gotchas when dealing with Ubuntu 20.. Adding static IP address with a bridge - /etc/netplan/01-netplan.yaml <pre> network: version: 2 renderer: networkd ethernets...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Some gotchas when dealing with Ubuntu 20..

Adding static IP address with a bridge

- /etc/netplan/01-netplan.yaml

network:
  version: 2
  renderer: networkd
  ethernets:
    enp2s0f0:
      dhcp4: no
      addresses: [192.168.15.107/24]
      gateway4: 192.168.15.1
      nameservers:
        addresses: [192.168.15.1,1.1.1.1]
    enp2s0f1:
      dhcp4: no
  bridges:
    br0:
      interfaces: [enp2s0f1]
      addresses: [192.168.15.108/24]
      nameservers:
        addresses: [192.168.15.1,1.1.1.1]
      parameters:
        stp: true
        forward-delay: 4
      dhcp4: no
      dhcp6: no