ZStack私有云管理节点IP修改

1,使用zstack-ctl 命令更改IP

[root@zstack-1 ~]# zstack-ctl change_ip --ip 192.168.10.3
Update /etc/hosts, old_ip:192.168.10.3, new_ip:192.168.10.3
Update cloudbus server ip 192.168.10.3 in /usr/local/zstack/apache-tomcat/webapps/zstack/WEB-INF/classes/zstack.properties 
Update management server ip 192.168.10.3 in /usr/local/zstack/apache-tomcat/webapps/zstack/WEB-INF/classes/zstack.properties 
Update console proxy overridden ip 192.168.10.3 in /usr/local/zstack/apache-tomcat/webapps/zstack/WEB-INF/classes/zstack.properties 
Update chrony server ip 192.168.10.3 in /usr/local/zstack/apache-tomcat/webapps/zstack/WEB-INF/classes/zstack.properties 
Update mysql new url jdbc:mysql://192.168.10.3:3306 in /usr/local/zstack/apache-tomcat/webapps/zstack/WEB-INF/classes/zstack.properties 
Update mysql new url jdbc:mysql://192.168.10.3:3306 in /usr/local/zstack/zstack-ui/zstack.ui.properties 
update iptables rules successfully
Change ip successfully

 

2,修改网卡配置文件IP地址

[root@zstack-1 ~]# vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO="static"
BONDING_OPTS="mode=4 miimon=100"
IPADDR=192.168.10.3
PREFIX=24
GATEWAY=192.168.10.1

 

3,改完以后重启节点

[root@zstack-1 ~]# zstack-ctl  restart_node
zstack-ctl  restart_node
the management node has been stopped
cleared management node heartbeat for 192.168.10.3
successfully started Tomcat container; now it's waiting for the management node ready for serving APIs, which may take a few seconds
successfully started management node

 

posted @ 2022-04-28 21:13  局域网外  阅读(831)  评论(0编辑  收藏  举报