简体   繁体   中英

Openstack - how to assign floating IP pool to specific tenant

In OpenStack (regardless of particular release/version), can you assign a specific floating IP pool to specific tenants? ie Pool 1 gets used by Tenant 1 and Pool 2 gets used by Tenant 2?

I need a way to distinguish clients from on a network layer.

You can check the command nova floating-ip-associate or if you are using Neutron, try the following:

Select a floating IP address for the new VM instance to use. Use the neutron floatingip-list command to display floating IP addresses for the tenant you chose in Step 1. If necessary, use the neutron floatingip-create command to create a floating IP address for this tenant. Note the ID of the floating IP address.

Associate the floating IP address with the new VM instance. Use the neutron floatingip-associate command to associate the floating IP address from Step 6 with the new VM instance.

http://docs.oracle.com/cd/E36784_01/html/E54155/clicreatevm.html

You can check Openstack docs, it explained there just share with the exact command line. But be careful when associate by command line by practice I find its better to de associate by command line.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM