Current time: 12-23-2024, 11:04 PM Hello There, Guest! (LoginRegister)


Post Reply 
Change IP Address
Author Message
diems Offline
Junior Member
*

Posts: 25
Joined: Jan 2008
Reputation: 0
Post: #1
Change IP Address
Hi, this is my first post here ... I am beginner in Ispcp ...

I need change IP address, now the IP is a local IP address ex: 192.168.1.10

Now, I have to assign an WAN external IP address, but the panel stops to work.

What modifications should I carry out?

Some Howto ?

(I am from Argentina, sorry for my english)

Regards!
(This post was last modified: 01-17-2008 08:28 AM by diems.)
01-17-2008 08:27 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Change IP Address
Here is a small HowTo --> http://www.isp-control.net/ispcp/wiki/do.../change_ip

It is only in German. But maybe you can translate it with a online Serive.

Greez BeNe
01-17-2008 04:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
diems Offline
Junior Member
*

Posts: 25
Joined: Jan 2008
Reputation: 0
Post: #3
RE: Change IP Address
"mini HowTo" in Spanish

Como cambiar la dirección IP de un servidor instalado con ISPC-Omega


Es algo común que instalemos nuestro servidor conectado a una LAN y luego tengamos que trasladarlo a un Datacenter, o simplemente conectarlo a otra red donde funcionará finalmente y es necesario poder asignar al servidor otra IP que la que utilizamos en la instalación, así que manos a la obra !

Este “mini howto” fue realizado sobre Debian-Etch, pero no debería ser muy distinto en otras distros.

Los pasos a seguir son los siguientes:

1) Modificaciones en la base de datos:

mysql> use ispcp;

mysql> UPDATE server_ips SET ip_number = "NUEVA_IP" WHERE ip_id = "ID_DEL_REGISTRO";

mysql> UPDATE domain SET domain_status = "change" WHERE domain_ip_id = “ID_DEL_REGISTRO”;




2) Ahora ejecutamos el siguiente script:

# /var/www/ispcp/engine/ispcp-rqst-mngr


3) Modificaciones en configuración Apache:

Es neceario modifiquemos la IP en el archivo de configuración de apache, para esto editamos el archivo /etc/apache2/sites-enabled/ispcp.conf y remplazamos todas las IP_VIEJA por la IP_NUEVA. Seguramente hay muchas formas de hacer esto, pero como no soy un experto bash, simplemente edite el archivo con “vim” y utilize un comando para “buscar y remplazar”, el comando es el siguiente: :%s/192.168.1.6/192.168.1.15/gic


:%s/X/Y/gic

El comando anterior buscará el dato X y lo remplazará por Y, adicionalmente irá solicitando la confirmación del cambio.

Para terminar con la configuración de apache solo falta editar el archivo /etc/apache2/sites-enabled/00_master.conf y replazar la IP por la nueva.


4) Modificaciones en archivos de BIND:

Para saber en que archivos tenemos configurada o existe la IP vieja podemos ejecutar:

# grep -ri IP_VIEJA /var/cache/bind/*

El comando anterior nos listará aquellos archivos de bind que tengan configurada la IP vieja, ahora solo nos quedará editar y modificar la IP vieja por la nueva IP

5) Importante: debe cambiarse la direccion IP de archivos en copia de trabajo IspCp-Omega, de lo contrario al realizar algun cambio desde el panel, los cambios anteriores se restablecerán, para esto Buscamos en que archivos de copias de trabajo esta tambien configurada la IP_VIEJA

grp -ri IP_VIEJA /etc/ispcp/apache/working./*

Se deben modificar estos archivos con la IP_NUEVA


6) Reiniciamos los servicios:

# /etc/init.d/apache2 restart

#/etc/init.d/bind9 restart


Con esto debería estar listo, ojo! Esto no cambia la IP del server para esto deberemos editar el archivo /etc/network/interfaces y realizar allí el cambio de IP de la interfaz ethernet.

Saludos!
(This post was last modified: 01-26-2008 06:35 AM by diems.)
01-18-2008 07:56 AM
Find all posts by this user Quote this message in a reply
digibyte Offline
Junior Member
*

Posts: 108
Joined: Jan 2007
Reputation: 3
Post: #4
RE: Change IP Address
Please change
/var/www/ispcp/engine/ispcp-rqst-mng
into
/var/www/ispcp/engine/ispcp-rqst-mngr
01-18-2008 09:04 PM
Find all posts by this user Quote this message in a reply
diems Offline
Junior Member
*

Posts: 25
Joined: Jan 2008
Reputation: 0
Post: #5
RE: Change IP Address
digibyte Wrote:Please change
/var/www/ispcp/engine/ispcp-rqst-mng
into
/var/www/ispcp/engine/ispcp-rqst-mngr


modified ... regards!
01-22-2008 08:39 PM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #6
RE: Change IP Address
Maybe when the english Howto is moved to Dokuwiki, you can put your HowTO vm the spanish Section. Simply open the english Howto an click in the right corner of the Wiki at "es" .
01-22-2008 08:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
diems Offline
Junior Member
*

Posts: 25
Joined: Jan 2008
Reputation: 0
Post: #7
RE: Change IP Address
Ok, I will try to make it in english too
01-24-2008 12:45 PM
Find all posts by this user Quote this message in a reply
diems Offline
Junior Member
*

Posts: 25
Joined: Jan 2008
Reputation: 0
Post: #8
RE: Change IP Address
I have a problem.

Some process restores the old IP

it's posible?

thanks!
01-24-2008 12:53 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #9
RE: Change IP Address
Hi diems

you always should also set the manual changes in the ispcp-working copies:

/etc/ispcp/apache/working (or bind instead of apache etc)

There is a copy of the apache config (00_master.conf and ispcp.conf) which is taken as base if ispcp adds or deletes anything in the configurations.
So if you don't change the working copy then with the next change on that part of service, you'll loose the changes...

Maybe also add this to the howto.

/Joximu
01-25-2008 04:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
diems Offline
Junior Member
*

Posts: 25
Joined: Jan 2008
Reputation: 0
Post: #10
RE: Change IP Address
joximu Wrote:Hi diems

you always should also set the manual changes in the ispcp-working copies:

/etc/ispcp/apache/working (or bind instead of apache etc)

There is a copy of the apache config (00_master.conf and ispcp.conf) which is taken as base if ispcp adds or deletes anything in the configurations.
So if you don't change the working copy then with the next change on that part of service, you'll loose the changes...

Maybe also add this to the howto.

/Joximu


Thanks !
01-26-2008 06:35 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)