tested on artful/17.10
cp -pi /etc/netplan/01-netcfg.yaml /etc/netplan/01-netcfg.yaml.dist
vi /etc/netplan/01-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
NIC1:
dhcp4: no
dhcp6: no
NIC2:
dhcp4: no
dhcp6: no
bridges:
pubbr0:
interfaces:
- NIC2
dhcp4: no
dhcp6: no
xenbr0:
interfaces:
- NIC1
dhcp4: no
dhcp6: no
addresses:
- x.x.x.x/xx
gateway4: x.x.x.x
# parameters:
# stp: no
# forward-delay: 0
vi /etc/rc.local
echo -n bringing up the public bridge...
ifconfig pubbr0 up && echo done
dpkg -l | grep ifupdown #should be empty
dpkg -l | grep netscript #should be empty
#systemctl restart systemd-networkd.service
netplan generate
netplan apply
ping -c1 opendns.com