Skip to content

Instantly share code, notes, and snippets.

@Poil
Created June 26, 2019 19:58
Show Gist options
  • Save Poil/6ac748bc4ee628bcca9552927dc275cd to your computer and use it in GitHub Desktop.
Save Poil/6ac748bc4ee628bcca9552927dc275cd to your computer and use it in GitHub Desktop.
$ cat /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp1s0f0:
dhcp4: no
dhcp6: no
enp1s0f1:
dhcp4: yes
dhcp6: no
bridges:
br0:
interfaces: [enp1s0f0]
macaddress: xx:xx:xx:xx:xx:xx
dhcp4: yes
dhcp6: no
parameters:
stp: false
forward-delay: 0
$ reboot
# généré le plan et systemctl restart systemd-networkd ne suffit pas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment