openstack 入门 【准备篇】一:整体介绍【centos】 M版本

前端之家收集整理的这篇文章主要介绍了openstack 入门 【准备篇】一:整体介绍【centos】 M版本前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

本次搭建才用双节点 由于本人是大三学生 电脑配置不够所以就才用双节点 我把网络节点部署在controller上

本次测试环境在vm下测试的 首先需要开启虚拟化

wKioL1kdEF-hXsfIAABdp4NTq40848.jpg-wh_50


本次环境是centos7


内部网络 controller :192.168.100.10 eth0

compute1:192.168.200.10 eth1

外部网络 controller:192.168.100.20 eth0

compute1:192.168.200.10 eth1



管理网络(内部网络),用于OpenStack组件以及MysqL DB Server,RabbitMQ
messaging server之间的通信

外部网络:用于本机和实例通信
硬件基本配置
控制节点: 1 processor,2 GB memory,and 5 GB storage
计算节点: 1 processor,and 10 GB storage
hosts配置:
#控制节点:
192.168.100.10 controller
# 计算节点
192.168.100.20 compute1
网络节点
外网网卡配置:
编辑/etc/sysconfig/network-scripts/ifcfg-INTERFACE_NAME文件,完成下面内容
不要改变HWADDR 和 UUID keys.

?

1

2

3

4

[root@controller ~]# cat /etc/sysconfig/network-scripts/ifcfg-eno16777736

TYPE=Ethernet

BOOTPROTO=static

IPADDR=192.168.100.10

NETMASK=255.255.255.0

GATEWAY=192.168.100.2

NAME=eno16777736

DEVICE=eno16777736

ONBOOT=yes


[root@compute1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eno16777736

TYPE=Ethernet

BOOTPROTO=static

IPADDR=192.168.100.20

NETMASK=255.255.255.0

GATEWAY=192.168.100.2

NAME=eno16777736

DEVICE=eno16777736

ONBOOT=yes


检测网络互通性


1.从控制节点 ping外网
?

01

02

03

04

05

06

07

08

09

10

ping -c compute

PING openstack.org (192.168.100.20) 56(84) bytes of data.

64 bytes from 192.168.100.20: icmp_seq=1 ttl=54 time=18.3 ms

64 bytes from 192.168.100.20: icmp_seq=2 ttl=54 =17.5 ms

64 bytes from 192.168.100.20: icmp_seq=3 ttl=54 64 bytes from 192.168.100.20: icmp_seq=4 ttl=54 =17.4 ms

--- openstack.org statistics ---

4 packets transmitted,4 received,0% packet loss,time 3022ms

rtt min/avg/max/mdev = 17.489/17.715/18.346/0.364 ms


2.从控制节点,ping计算节点管理网络


?

-c 4 compute1

PING compute1 (192.168.100.10) 56(84) bytes of data.

64 bytes from compute1 (192.168.100.10): icmp_seq=1 ttl=64 =0.263 ms

64 bytes from compute1 (192.168.100.10): icmp_seq=2 ttl=64 =0.202 ms

64 bytes from compute1 (192.168.100.10): icmp_seq=3 ttl=64 =0.203 ms

64 bytes from compute1 (192.168.100.10): icmp_seq=4 ttl=64 --- compute1 3000ms

= 0.202.217.263.030 ms


3.从计算节点,ping外网

01

02

03

04

05

06

07

08

09

10

4.从计算节点,ping控制节点管理网络
-c 4 controller

PING controller (192.168.100.10) 56(84) bytes of data.

64 bytes from controller (192.168.100.10): icmp_seq=1 ttl=64 64 bytes from controller (192.168.100.10): icmp_seq=2 ttl=64 64 bytes from controller (192.168.100.10): icmp_seq=3 ttl=64 64 bytes from controller (192.168.100.10): icmp_seq=4 ttl=64 --- controller .030 ms

猜你在找的CentOS相关文章