Opsi server IP address change problem
Verfasst: 19 Sep 2013, 09:40
Hello,
I need to change the IP address of the opsi server from 192.168.1.24/24 to 172.25.32.38/23. I tried to do it myself following this thread viewtopic.php?f=8&t=2523. But without success. My steps are described below.
First of all I made small opsiproduct which changes the file C:\Program files\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf and changes the line
url = https://192.168.1.24:4447/rpc
to line
url = https://172.25.32.38:4447/rpc
I run this job on client and control that the address in the config file is changed after the job end.
After that I change the file /etc/network/interfaces on the ubuntu opsi server (see the result below)
iface eth0 inet static
address 172.25.32.38
netmask 255.255.254.0
network 172.25.32.0
broadcast 172.25.33.255
gateway 172.25.32.1
# address 192.168.1.24
# netmask 255.255.255.0
# network 192.168.1.0
# broadcast 192.168.1.255
# gateway 192.168.1.18
after that I changed the /etc/hosts file on the opsi server to
127.0.0.1 localhost
#192.168.1.24 install.soma.cz install
172.25.32.38 install.soma.cz install
after that I changed the addresses in file on server /var/lib/opsi/config/depots/install.soma.cz.ini to
[depotserver]
description =
hardwareaddress = 00:50:56:93:4c:40
inventorynumber =
ipaddress = 172.25.32.38
ismasterdepot = true
network = 172.25.32.0/255.255.254.0
notes =
after that I run the command on opsi server
opsi-setup --init-current-config --ip-address 172.25.32.38
finally I changed the DNS entry on our DNS server and reboot the opsi server. The last step was reboot of the client.
After these steps the client does not connect to the opsi server. The Admin interface in the web browser works. However, the fire on demand action for the client does not work (I get timeout after 15 sec.). Further when the client boot up, there is no lock picture in the upper right corner of the monitor.
Have you any sugestions what to do else?
Thank you in advance,
Jan Hubeny
I need to change the IP address of the opsi server from 192.168.1.24/24 to 172.25.32.38/23. I tried to do it myself following this thread viewtopic.php?f=8&t=2523. But without success. My steps are described below.
First of all I made small opsiproduct which changes the file C:\Program files\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf and changes the line
url = https://192.168.1.24:4447/rpc
to line
url = https://172.25.32.38:4447/rpc
I run this job on client and control that the address in the config file is changed after the job end.
After that I change the file /etc/network/interfaces on the ubuntu opsi server (see the result below)
iface eth0 inet static
address 172.25.32.38
netmask 255.255.254.0
network 172.25.32.0
broadcast 172.25.33.255
gateway 172.25.32.1
# address 192.168.1.24
# netmask 255.255.255.0
# network 192.168.1.0
# broadcast 192.168.1.255
# gateway 192.168.1.18
after that I changed the /etc/hosts file on the opsi server to
127.0.0.1 localhost
#192.168.1.24 install.soma.cz install
172.25.32.38 install.soma.cz install
after that I changed the addresses in file on server /var/lib/opsi/config/depots/install.soma.cz.ini to
[depotserver]
description =
hardwareaddress = 00:50:56:93:4c:40
inventorynumber =
ipaddress = 172.25.32.38
ismasterdepot = true
network = 172.25.32.0/255.255.254.0
notes =
after that I run the command on opsi server
opsi-setup --init-current-config --ip-address 172.25.32.38
finally I changed the DNS entry on our DNS server and reboot the opsi server. The last step was reboot of the client.
After these steps the client does not connect to the opsi server. The Admin interface in the web browser works. However, the fire on demand action for the client does not work (I get timeout after 15 sec.). Further when the client boot up, there is no lock picture in the upper right corner of the monitor.
Have you any sugestions what to do else?
Thank you in advance,
Jan Hubeny