Ubuntu20: Difference between revisions

From I Will Fear No Evil
Jump to navigation Jump to search
(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...")
 
mNo edit summary
Line 29: Line 29:
       dhcp6: no
       dhcp6: no
</pre>
</pre>
[[Category:Ubuntu]]

Revision as of 19:18, 24 January 2022

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