DHCP options

Antworten
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

DHCP options

Beitrag von SisterOfMercy »

Could it be possible to use a DHCP option field to tell the OPSI bootimage what the opsi depot server is in the domain?

For instance a bit of isc dhcpd.conf with such an option, used for configuration of Avaya VoIP phones:

Code: Alles auswählen

option avaya-96xx code 242 = text;
option domain-name-servers 10.23.0.2;
option routers 10.23.0.23;
option ntp-servers 10.23.0.23;
option subnet-mask 255.255.0.0;
filename "linux/pxelinux.0";
next-server 10.23.0.25;

subnet 10.23.0.0 netmask 255.255.0.0 {
  pool {
    option avaya-96xx "L2QVLAN=0,L2Q=0,HTTPSRVR=10.23.0.40,HTTPDIR=/avaya/";
    max-lease-time 7200;
    range 10.23.20.1 10.23.40.254;
  }
}
Not that I need it, but maybe this could be a replacement for the lost functionality since a while ago. Forgot what happened.. Something got updated and since then you would have to set the name of the opsi depot server in the bootimage when not directly booting to a chosen PXE option.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
ueluekmen
uib-Team
Beiträge: 1939
Registriert: 28 Mai 2008, 10:53

Re: DHCP options

Beitrag von ueluekmen »

Hi,

you have to modify your file:

Code: Alles auswählen

/tftpboot/linux/pxelinux.cfg/default
The append line should have a option like:

Code: Alles auswählen

service=https://opsi.domain.local:4447/rpc
This should be done by upgrading the opsi-packages, but in some cases it doesn't work. When you have these option, the bootimage should see the right service-url.
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.
http://www.uib.de
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: DHCP options

Beitrag von SisterOfMercy »

ueluekmen hat geschrieben: The append line should have a option like:

Code: Alles auswählen

service=https://opsi.domain.local:4447/rpc
This should be done by upgrading the opsi-packages, but in some cases it doesn't work. When you have these option, the bootimage should see the right service-url.
Ah, it didn't have that! But I normally copy the mac address and select 'hwinvent' from the opsi configed, so it's never a problem for me.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Antworten