单实例OpenStack IP网络配置 [英] Single Instance OpenStack IP Network Configuration
问题描述
我对OpenStack如何处理IP配置感到好奇,我拥有一个完整的工作OpenStack仪表板,其静态IP为192.168.1.73/24,我想将其更改为其他名称.使用RHEL \ Scientific Linux \ Centos 7.5作为来宾主机作为VM运行.
Am curious about how OpenStack handles IP configuration, i have a complete working openstack dashboard with a static IP of 192.168.1.73/24 and i want to change it to something else. Running as a VM using RHEL\Scientific Linux\Centos 7.5 as the Guest Host.
正在运行openstack-queens(repo)-/etc/yum.repos.d
Am running openstack-queens (repo) -- /etc/yum.repos.d
我尝试过的失败了...
What i've tried and failed...
1.在/etc/sysconfig/network-scripts/ifcfg-eth0中更改静态IP
1.Changing static IP in /etc/sysconfig/network-scripts/ifcfg-eth0
2.确保/etc/resolv.conf中的内容反映了我的新配置.
2.Made sure in /etc/resolv.conf reflects my new configuration.
2.替换packstack-answerfile中用于计算节点和我配置的其余服务的IP配置.
2.Replacing IP configuration in packstack-answerfile for the compute node and the rest of the services i've configured.
我所说的!!!
1.systemctl status -l redis.service ---当我更改IP配置时失败,它以其初始配置处于活动状态(正在运行).
1.systemctl status -l redis.service --- fails when i change the IP configuration, this is active (running) with its initial configuration.
2.虚拟化守护进程在启动过程中也失败-(作为KVM运行)
2.Virtualization daemon also fails during boot--(running as KVM)
OpenStack的联网功能如何深入"?我如何实现设置其他IP的目标,同时又可以启动并运行仪表板?
How "deep" does Networking go for OpenStack and how do i achieve my goals of setting a different IP and still have my dashboard up and running?
推荐答案
这很容易.我错过的只是重新运行我的packstack应答文件.
This was Easy. What I missed to do is to only re-run my packstack answerfile.
首先,在/etc/sysconfig/network-scripts/ifcfg-br-ex中更改机器上的IP地址,即如果您已经为OpenStack Env设置网络了.
First, change the IP address on the machine in /etc/sysconfig/network-scripts/ifcfg-br-ex thats if you already gone ahead in setting up networking for your OpenStack Env.
如果已经备份了ifcfg-eth0,请还原到该备份并更改为新的IP配置.
If you have done a backup of your ifcfg-eth0, revert to it and change to new IP configuration.
第二,在packstack-answerfile中为计算节点和配置的其余服务替换新的IP配置.
Second, Replace new IP configuration in packstack-answerfile for the compute node and the rest of the services configured.
最后但并非最少:需要稳定的Internet连接!!!
Last But not Least: Requires Steady Internet Connection!!!
最后一步是使用新的IP配置重新运行您的packstack-answer文件.
Last Step is to re-run your packstack-answerfile with the new IP configuration.
这篇关于单实例OpenStack IP网络配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!