Assign Specific MAC to Instance

Problem

Assign a specific MAC address to a port and attach it to an instance.

Environment

  • Platform9 Managed OpenStack - All Versions

Procedure

  1. Create a port with a fixed IP and MAC address using the following CLI command.

# openstack port create --network=[Network UUID] --fixed-ip subnet=[Subnet UUID],ip-address=10.128.228.24 --mac-address=fa:16:3e:aa:bb:cc [port_name]
  1. Create a server using and attach the created port to it using the following command.

# openstack server create --image [image UUID] --flavor 1 --port [port UUID] [instance-name]

Last updated