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.

  1. Run ip -a and copy the mac address and the adapter name (eg: ens3)
  2. Open /etc/netplan/50-netplan.yaml for editing
  3. Under ethernets add a new section in the format below
  4. Make sure set-name and macaddress match what was showing with ip -a
  5. Save and close the file
  6. 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

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us