Seite 1 von 1

DHCP options

Verfasst: 07 Jan 2014, 22:23
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.

Re: DHCP options

Verfasst: 08 Jan 2014, 11:17
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.

Re: DHCP options

Verfasst: 10 Jan 2014, 00:05
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.