Skip to content

Instantly share code, notes, and snippets.

@manojrege
Created December 28, 2019 12:48
Show Gist options
  • Select an option

  • Save manojrege/d99f7eeb834da64a67c12f7621ffe133 to your computer and use it in GitHub Desktop.

Select an option

Save manojrege/d99f7eeb834da64a67c12f7621ffe133 to your computer and use it in GitHub Desktop.
Netplan configuration to assign multiple IPs to EC2 instance using DHCP
network:
version: 2
ethernets:
eth0:
dhcp4: true
match:
macaddress: <MAC_ADDRESS_1>
set-name: eth0
eth1:
dhcp4: true
match:
macaddress: <MAC_ADDRESS_2>
set-name: eth1
eth2:
dhcp4: true
match:
macaddress: <MAC_ADDRESS_3>
set-name: eth2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment