How Do I Configure Public Private Networking?
After adding a private network port to an instance, you need to modify the netplan to accommodate the private routing.
- Run ip -a and copy the mac address and the adapter name (eg: ens3)
- Open /etc/netplan/50-netplan.yaml for editing
- Under ethernets add a new section in the format below
- Make sure set-name and macaddress match what was showing with ip -a
- Save and close the file
- Run netplan apply to apply ip configuration and set the correct route table
ens10:
dhcp4: true
dhcp4-overrides:
use-routes: false
match:
macaddress: fa:16:3e:20:89:ca
mtu: 1500
set-name: ens10