0
In this post I’ll share a few commands I found for adding a network interface to an OpenStack instance after launching the instance. You could, of course, simply launch the instance with multiple network interfaces from the very beginning, but these commands are handy in case you messed up or in case the requirements for the instance changed after it was launched. Please note there’s nothing revolutionary or ground-breaking in the commands listed here; I’m simply trying to help share information in the event others will find it useful.
I tested these commands using OpenStack “Juno” with VMware NSX providing the networking functionality for Neutron, but (as you can tell if you check the articles in the “References” section) this functionality has been around for a while. These commands should work with any supported Neutron plug-in.
First, create the Neutron network port:
neutron port-create <Neutron network name>
If you want to attach a security group to the port (probably a good idea), then modify the command to look like this:
neutron port-create --security-group <Security group name>
<Neutron network name>
Note that you can add multiple --security-group
parameters to the command in order to specify multiple security groups on the Continue reading