Wednesday, March 19, 2008

How do I change a VE's ip address?

To change a VE's IP address, you can ssh into the server, you may either edit /etc/sysconfig/vz-scripts/$VEID.conf, or you may run the following two commands (we'll use VE 102 with an IP of 1.2.3.4 as an example):

vzctl set 102 --ipdel 1.2.3.4 --save
vzctl set 102 --ipadd 2.3.4.5 --save

No comments: