Hallo Jesko,

dhcpd.conf.custom funktioniert genau einmal (wenn dhcpd.conf
entsprechend präpariert ist)!

Das erste dpkg-reconfigure linuxmuster-base gibt aus, dass es DNS
anfasst. Der ist danach noch Ordnung.
Alle Zeilen, die ich vorher in dhcpd.conf ausgelagert hatte (siehe
Anhang) waren danach wieder drin.
Alles prima?

Leider nicht!
Das zweite dpkg-reconfigure linuxmuster-base gibt aus, dass es DHCP anfasst.
Die Subnetzmaske ist noch in Ordnung, aber der Aufnahmebereich ist wie
vorher ungültig (siehe Anhang).
 
Dafür kann es keine Kiste Bordeaux geben ;-)

Gruß Jürgen



Am 14.03.2016 um 07:20 schrieb Juergen Engeland:
> Hallo Jesko,
>
> soll ich die komplette dhcpd.conf nach dhcpd.conf.custom kopieren?
>
> Das löst noch nicht das Problem, dass in
> /usr/share/linuxmuster/config/dist.conf 12 eingetragen wird.
> Ich vermute dieser Eintrag verursacht, dass neue Clients in workstations
> mit Subnetzmaske 255.240.0.0 angelegt werden.
> Allerdings habe ich noch nicht festgestellt, dass deshalb irgendetwas
> nicht funktionieren würde.
>
> Gruß Jürgen
>
> Am 09.03.2016 um 23:33 schrieb Jesko Anschütz:
>> Hallo Jürgen,
>>
>>> Am 08.03.2016 um 11:28 schrieb Juergen Engeland 
>>> <juergen.engel...@t-online.de>:
>>>
>>> Hallo Holger, hallo Frank,
>>>
>>> "gefahrlos" sind die häufigen Updates von linuxmuster-schulkonsole und
>>> oder linuxmuster-base für mich nicht!
>>>
>>> Jedesmal wird wegen der Hamburger IP-Adresse 10.0.2.0/23 für GRUEN die
>>> Subnetzmaske in
>>> /etc/dhcp/dhcpd.conf
>>> und /usr/share/linuxmuster/config/dist.conf
>>> knallhart auf 255.240.0.0 bzw. 12 gesetzt.
>>>
>>> Desweiteren wird (als Folge?) der scope für die Clientaufnahme in
>>> /etc/dhcp/dhcpd.conf
>>> auf 10.0.1.100 bis 10.0.1.200 gesetzt, auch mit der falschen Subnetzmaske.
>>>
>>> Wenn ich nicht daran denke, sofort nach einem apt-get update && apt-get
>>> dist-upgrade die beiden genannten Dateien zu korrigieren und den dhcpd
>>> neu zu starten, so läuft dieser nicht, was morgens einen Totalausfall
>>> des server gleich kommt.
>>>
>> Kopiere doch deine Konfiguration in 
>> DHCP.conf.custom rein... Dann haste Ruhe...
>>
>> Wenn das hilft--> Kiste Bordeaux an die Landesakademie per Express auf 
>> Donnerstag Abend ;)
>>
>> Lg Jesko 
>> _______________________________________________
>> linuxmuster-user mailing list
>> linuxmuster-user@lists.linuxmuster.net
>> https://mail.lehrerpost.de/mailman/listinfo/linuxmuster-user
>>
> _______________________________________________
> linuxmuster-user mailing list
> linuxmuster-user@lists.linuxmuster.net
> https://mail.lehrerpost.de/mailman/listinfo/linuxmuster-user
>

#
# Sample configuration file for ISC dhcpd for Debian
#
# tho...@linuxmuster.net
# 25.11.2014
#

# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
server-identifier server;
update-static-leases true;

# option definitions common to all supported networks...
server-name "server.linuxmuster-net.lokal";
option domain-name "linuxmuster-net.lokal";
option domain-name-servers 10.0.2.2;
option netbios-name-servers 10.0.2.2;
option ntp-servers 10.0.2.2;
option routers 10.0.2.1;
option font-servers 10.0.2.2;
option subnet-mask 255.255.254.0;
option broadcast-address 10.0.3.255;
use-host-decl-names on; #rembo

default-lease-time 86400;
max-lease-time 86400;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

allow booting;
allow bootp;

# pxelinux options for LINBO
option vendor-encapsulated-options 
09:0f:80:00:0c:4e:65:74:77:6f:72:6b:20:62:6f:6f:74:0a:07:00:50:72:6f:6d:70:74:06:01:02:08:03:80:00:00:47:04:80:00:00:00:ff;
option space pxelinux;
option pxelinux.magic      code 208 = string;
option pxelinux.configfile code 209 = string;  
option pxelinux.pathprefix code 210 = text;  
option pxelinux.reboottime code 211 = unsigned integer 32;                      
                                        
site-option-space "pxelinux";
option pxelinux.magic f1:00:74:7e;
if exists dhcp-parameter-request-list {
    # Always send the PXELINUX options (specified in hexadecimal)
    option dhcp-parameter-request-list = concat(option 
dhcp-parameter-request-list,d0,d1,d2,d3);
}
option configfile code 150 = string;
filename "pxelinux.0";

next-server 10.0.2.2;

### linuxmuster - begin ### DON'T REMOVE THIS LINE ###
# subnet for workstation import
subnet 10.0.2.0 netmask 255.255.254.0 {
        range 10.0.1.100 10.0.1.200;
        max-lease-time 3600;
        default-lease-time 3600;
        option host-name "pxeclient";
}
### linuxmuster - end ### DON'T REMOVE THIS LINE ###

group {

 # groessere lease time fuer feste ips
 default-lease-time 172800;
 max-lease-time 172800;

 # dynamically created stuff by import_workstations is included
 include "/etc/dhcp/dhcpd.conf.linuxmuster";

 # put your custom stuff in this included file
 include "/etc/dhcp/dhcpd.conf.custom";

}
# put your custom dhcp stuff in this file
option domain-name-servers 10.0.2.2;
option netbios-name-servers 10.0.2.2;
option ntp-servers 10.0.2.2;
option routers 10.0.2.1;
option font-servers 10.0.2.2;
option subnet-mask 255.255.254.0;
option broadcast-address 10.0.3.255;

next-server 10.0.2.2;

# subnet for workstation import
subnet 10.0.2.0 netmask 255.255.254.0 {
        range 10.0.2.31 10.0.2.39;
        max-lease-time 3600;
        default-lease-time 3600;
        option host-name "pxeclient";
}
_______________________________________________
linuxmuster-user mailing list
linuxmuster-user@lists.linuxmuster.net
https://mail.lehrerpost.de/mailman/listinfo/linuxmuster-user

Antwort per Email an