-
Book Overview & Buying
-
Table Of Contents
OpenStack Networking Cookbook
By :
Port is another building block in OpenStack Neutron. You will not find a way to create a Port using the Horizon dashboard. As we saw earlier in the Associating a Network to an instance using Horizon recipe, a Port is created implicitly as a part of the create instance operation from the dashboard. However, using CLI, some advanced networking configuration can be accomplished. This recipe shows you how to create a Port using OpenStack CLI.
You will need the following information to get started:
The next set of steps will show you how to use Neutron CLI to create a Port:
neutron port-create and the only mandatory parameter is the Network name. However, it is a good practice to specify a name for the Port:
neutron port-list command to view a list of all the Ports in the system:
A Port primarily represents an endpoint in a Network. The most common Ports in an OpenStack environment are the virtual interfaces in a virtual machine.
When the neutron port-create command is executed, OpenStack Neutron allocates a unique MAC address to the Port. The Network name argument effectively helps Neutron in identifying a Subnet and then Neutron assigns an IP address to the Port from the list of available IP addresses in the Subnet.
The post-create request is also the most common trigger to configure the physical and virtual Networks using the appropriate drivers.
Change the font size
Change margin width
Change background colour