OpenVZ Forum


Home » General » Support » Which fles contains IPs?
Re: Which fles contains IPs? [message #51179 is a reply to message #51178] Sun, 02 March 2014 03:13 Go to previous messageGo to previous message
dipps is currently offline  dipps
Messages: 22
Registered: May 2013
Location: Out in the scrub
Junior Member
vzctl does edit startup files inside the container as well as /etc/vz/VEID.conf. really, it's the easy way to do it.

vzctl set VEID --ipdel OLD_IP --save
vzctl set VEID --ipadd NEW_IP --save


If you must edit files to change the IP, it will probably work if you shut down the VE, edit IP in etc/vz/VEID.conf, then start the container. But please test it.

For websites and named, of course you'll have to edit the configs, vzctl doesn't do that Smile

[Updated on: Sun, 02 March 2014 03:22]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: /vz/root and /vz/private,double space?
Next Topic: nat , ip tables, eth0 issue
Goto Forum:
  


Current Time: Sat Sep 13 19:39:57 GMT 2025

Total time taken to generate the page: 0.08631 seconds