OpenVZ Forum


Home » General » Support » Which fles contains IPs?
Which fles contains IPs? [message #51163] Fri, 28 February 2014 01:08 Go to next message
postcd is currently offline  postcd
Messages: 73
Registered: April 2013
Member
Hello,

after migrating VM to a new server, which linux files i need to edit so everything like websites start working?

i see

/etc/hosts
/etc/sysconfig/network-scripts/ifcfg-venet0:0
/var/named/chroot/var/named/domainname.com

are one where old IP remains Sad
Re: Which fles contains IPs? [message #51168 is a reply to message #51163] Fri, 28 February 2014 12:44 Go to previous messageGo to next message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
use vzctl

p.s. please take more time to read wiki, documentation. find answer by yourself. it's quite strange to see such and other your questions from servers provider (as you advertising).
Re: Which fles contains IPs? [message #51178 is a reply to message #51168] Sat, 01 March 2014 19:11 Go to previous messageGo to next message
postcd is currently offline  postcd
Messages: 73
Registered: April 2013
Member
Im not sure if vzctl edit files. I know it add/delete ip from VM, but thats not a question
Re: Which fles contains IPs? [message #51179 is a reply to message #51178] Sun, 02 March 2014 03:13 Go to previous messageGo to next 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

Re: Which fles contains IPs? [message #51184 is a reply to message #51179] Sun, 02 March 2014 16:22 Go to previous message
postcd is currently offline  postcd
Messages: 73
Registered: April 2013
Member
dipps wrote on Sun, 02 March 2014 04:13

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

Which configs files please?
Previous Topic: /vz/root and /vz/private,double space?
Next Topic: nat , ip tables, eth0 issue
Goto Forum:
  


Current Time: Tue Nov 05 20:36:40 GMT 2024

Total time taken to generate the page: 0.07033 seconds