标签:col body field 信息 oci 详细 sort efault 指定
浮动IP相关功能点:
模块 | 功能 | 描述 | 备注 |
---|---|---|---|
FloatingIP | 创建浮动IP | 指定带宽大小创建单个/多个浮动IP | |
指定子网、指定IP创建浮动IP | |||
绑定浮动IP,修改带宽 | 绑定浮动IP到指定主机的网卡 | ||
修改浮动IP的带宽 | |||
释放浮动IP,删除浮动IP | 解绑、释放浮动IP,删除浮动IP | 释放浮动IP,此IP可以被该项目下其它port绑定,删除浮动IP能被其它项目的port申请并绑定 |
浮动IP相关命令:
floatingip-associate Create a mapping between a floating IP and a fixed IP. floatingip-create Create a floating IP for a given tenant. floatingip-delete Delete a given floating IP. floatingip-disassociate Remove a mapping from a floating IP to a fixed IP. floatingip-list List floating IPs that belong to a given tenant. floatingip-show Show information of a given floating IP.
floatingip-create子命令相关属性:
参数
|
描述
|
---|---|
--tenant-id | 指定租户 |
--description | 描述信息 |
--port-id | 指定port(指定云主机网卡) |
--fixed-ip-address | port的私网IP |
--floating-ip-address | 指定浮动IP |
--subnet | 浮动IP所在子网 |
示例:创建一个指定IP的浮动IP,并绑定到指定云主机的网卡。
命令语法:neutron floatingip-create <浮动IP所在Network_ID > --tenant-id < 与浮动IP绑定的云主机所在租户ID > --description ‘详细说明信息.‘
--port-id < 指定云主机的网卡 > --fixed-ip-address < 指定云主机网卡的私网IP > --floating-ip-address < 指定浮动IP > --subnet < 指定浮动IP所在的子网ID >
[root@10-0-192-18 ~]# neutron floatingip-create c68a590d-4b7a-4c89-aa26-4e87ac65e6d5 --tenant-id 73c538f5e43c4ac98ee01482f371539c --description ‘test create floatingip.‘ --port-id 229279e9-ea5b-4f39-a493-fe23ef250ee1 --fixed-ip-address 192.168.101.6 --floating-ip-address 110.76.187.117 --subnet 1f7f901d-0c86-45b7-bde9-d81b7b3c2290 Created a new floatingip: +---------------------+--------------------------------------+ | Field | Value | +---------------------+--------------------------------------+ | created_at | 2017-05-10T06:37:40Z | | description | test create floatingip. | | fixed_ip_address | 192.168.101.6 | | floating_ip_address | 110.76.187.117 | | floating_network_id | c68a590d-4b7a-4c89-aa26-4e87ac65e6d5 | | id | 1d6a78aa-635c-4ff1-96c6-17ac10fb7016 | | port_id | 229279e9-ea5b-4f39-a493-fe23ef250ee1 | | project_id | 73c538f5e43c4ac98ee01482f371539c | | revision_number | 1 | | router_id | bcf44d8f-54f1-46b7-96f3-ec695e062e61 | | status | DOWN | | tenant_id | 73c538f5e43c4ac98ee01482f371539c | | updated_at | 2017-05-10T06:37:40Z | +---------------------+--------------------------------------+
floatingip-disassociate子命令相关属性:
参数
|
描述
|
---|---|
FLOATINGIP_ID | 要解绑浮动IP的ID |
示例:解绑一个浮动IP
命令语法: neutron floatingip-disassociate < FLOATINGIP_ID >
[root@10-0-192-18 ~]# neutron floatingip-disassociate 1d6a78aa-635c-4ff1-96c6-17ac10fb7016 Disassociated floating IP 1d6a78aa-635c-4ff1-96c6-17ac10fb7016
floatingip-associate子命令相关属性:
参数
|
描述
|
---|---|
FLOATINGIP_ID | 要绑定浮动IP的ID |
PORT | 绑定浮动的IP的port |
--fixed-ip-address | 绑定浮动IP的port的私网IP地址 |
示例:绑定一个浮动IP到指定主机的网卡
命令语法:neutron floatingip-associate < FLOATINGIP_ID > < fixed-ip-address_portID >
[root@10-0-192-18 ~]# neutron floatingip-associate 1d6a78aa-635c-4ff1-96c6-17ac10fb7016 229279e9-ea5b-4f39-a493-fe23ef250ee1 Associated floating IP 1d6a78aa-635c-4ff1-96c6-17ac10fb7016
floatingip-delete子命令相关属性:
参数
|
描述
|
---|---|
FLOATINGIP | 要删除浮动IP的ID |
示例:删除一个或多个浮动IP
命令语法:neutron floatingip-delete < FLOATINGIP_ID >
[root@10-0-192-18 ~]# neutron floatingip-delete 692cf7cb-2c7f-4d1d-9784-c51ef4142d66 Deleted floatingip(s): 692cf7cb-2c7f-4d1d-9784-c51ef4142d66
标签:col body field 信息 oci 详细 sort efault 指定
原文地址:https://www.cnblogs.com/gushiren/p/9591768.html