简体   繁体   English

OpenStack-如何将浮动IP池分配给特定租户

[英]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? 在OpenStack中(无论特定的发行版/版本如何),您是否可以将特定的浮动IP池分配给特定的租户? ie Pool 1 gets used by Tenant 1 and Pool 2 gets used by Tenant 2? 池1被租户1使用, 池2被租户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: 您可以检查命令nova floating-ip-associate如果使用的是Neutron,请尝试以下操作:

Select a floating IP address for the new VM instance to use. 选择一个浮动IP地址以供新的VM实例使用。 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. 使用neutron floatingip-list命令显示您在步骤1中选择的租户的浮动IP地址。如有必要,请使用neutron floatingip-create命令为此租户创建一个浮动IP地址。 Note the ID of the floating IP address. 注意浮动IP地址的ID。

Associate the floating IP address with the new VM instance. 将浮动IP地址与新的VM实例相关联。 Use the neutron floatingip-associate command to associate the floating IP address from Step 6 with the new VM instance. 使用neutron floatingip-associate命令将步骤6中的浮动IP地址与新的VM实例相关联。

http://docs.oracle.com/cd/E36784_01/html/E54155/clicreatevm.html 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. 您可以查看Openstack文档,它解释了其中的内容,只是与确切的命令行共享。 But be careful when associate by command line by practice I find its better to de associate by command line. 但是当通过命令行关联时要小心,我发现最好通过命令行解除关联。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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