openstack Queens版本在centos7.1,最小化安装(启动实例)

在控制节点上操作

 

创建外部网络

--share选项允许所有项目使用虚拟网络。

--external选项将虚拟网络定义为外部。如果你想创建一个内部网络,你可以使用--internal。默认值是internal

[root@controller ~]# openstacknetwork create  --share --external\

>  --provider-physical-network provider \

>  --provider-network-type flat provider

+---------------------------+--------------------------------------+

| Field                     | Value                                |

+---------------------------+--------------------------------------+

| admin_state_up            | UP                                   |

| availability_zone_hints   |                                      |

| availability_zones        |                                      |

| created_at                | 2018-04-25T12:01:07Z                 |

| description               |                                      |

| dns_domain                | None                                 |

| id                        |b53cdb8c-7185-4860-baf5-96a3d3fce62a |

| ipv4_address_scope        | None                                 |

| ipv6_address_scope        | None                                 |

| is_default                | False                                |

| is_vlan_transparent       | None                                 |

| mtu                       | 1500                                 |

| name                      | provider                             |

| port_security_enabled     | True                                 |

| project_id                |dcd0bdb4e3af466da534a49dd1ee3f32     |

| provider:network_type     | flat                                 |

| provider:physical_network | provider                             |

| provider:segmentation_id  | None                                 |

| qos_policy_id             | None                                 |

| revision_number           | 5                                    |

| router:external           | External                             |

| segments                  | None                                 |

| shared                    | True                                 |

| status                    | ACTIVE                               |

| subnets                   |                                      |

| tags                      |                                      |

| updated_at                | 2018-04-25T12:01:08Z                 |

+---------------------------+--------------------------------------+

 

 

创建外部网络的子网

[root@controller ~]# openstack subnetcreate --network provider \

> --allocation-poolstart=10.0.2.200,end=10.0.2.250 \

> --dns-nameserver 10.0.2.2--gateway 10.0.2.2 \

> --subnet-range 10.0.2.0/24provider

 

 **************************************************************************************************


[root@controller ~]# sourcedemo-openrc

 

创建内部网络

openstack network createselfservice

 

创建内部网络子网

[root@controller ~]# openstack subnetcreate --network selfservice \

>  --dns-nameserver 10.0.2.2 --gateway 192.168.0.1 \

> --subnet-range 192.168.0.0/24selfservice

 

  **************************************************************************************************

创建路由器

openstack Queens版本在centos7.1,最小化安装(启动实例)_第1张图片



*********************************************************************************

创建一个小规格的机型  创建密钥对  添加安全组规则

openstack Queens版本在centos7.1,最小化安装(启动实例)_第2张图片

*********************************************************************************

创建实例


你可能感兴趣的:(openstack)