Ask Your Question
0

Assign Public IP Address to Instances via OVS

asked 2020-06-11 03:22:19 -0500

ehsan gravatar image

Hi, everyone. I installed manually OpenStack Train version on Centos 7. I have a controller, a compute node, and a network node. I used Open vSwitch as a mechanism driver. So my question is; how can I assign the public IP address to instances via OVS?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-06-11 04:31:25 -0500

I assume you mean floating IP addresses, not public IP addresses. You don't use OVS to assign floating IP addresses, you use Neutron.

On the command line:

openstack floating ip create PUBLIC_NETWORK
openstack server add floating ip SERVER FLOATING_IP

where PUBLIC_NETWORK is the name or UUID of your external network, SERVER is the name or UUID of the instance, and FLOATING_IP is the value or UUID of the floating IP.

You can also use the GUI. Probably the easiest method is listing instances, opening the action menu of the instance in question, selecting add floating IP and following the flow.

edit flag offensive delete link more

Comments

thx for your response. Is it possible to assign floating IP address to Flat network?

ehsan gravatar imageehsan ( 2020-06-11 05:17:02 -0500 )edit

I am not sure if I understand your question. Floating IPs are not assigned to networks, but to ports. They come from the subnets of external networks, which are often flat.

Bernd Bausch gravatar imageBernd Bausch ( 2020-06-11 09:59:48 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-06-11 03:22:19 -0500

Seen: 57 times

Last updated: Jun 11