isc-dhcp-server 4.4.1

Samuel Motta <[email protected]>
Newsgroups gmane.network.dhcp.isc.dhcp-server
Message-ID <CAG7K_szzL1it8TbpUiDBMiYqoq5-joEALnUgcjb_NXS_uCQpOA@mail.gmail.com>
Hi folks, I installed isc-dhcp-server 4.4.1 version on a Debian 11 and it
does not work here.

*here my ifconfig parse that show that I does not use ipv6*

enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.3  netmask 255.255.255.0  broadcast 192.168.0.255
        ether fc:aa:14:f7:ae:45  txqueuelen 1000  (Ethernet)
        RX packets 242347683  bytes 334820398436 (311.8 GiB)
        RX errors 0  dropped 17209  overruns 0  frame 0
        TX packets 151899938  bytes 181862408834 (169.3 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Loopback Local)
        RX packets 3175  bytes 163958 (160.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3175  bytes 163958 (160.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I´m trying to force *isc-dhcp-server* to only start the v4 instance with
INTERFACESv4 option that is the new directive

if I try to use interfaces directive like older versions syslog show me to
use INTERFACESv4 OPTION but it migrate automatically for now.


Feb 23 13:30:25 debian-backup isc-dhcp-server[388886]: DHCPv4 interfaces
are no longer set by the INTERFACES variable in
Feb 23 13:30:25 debian-backup isc-dhcp-server[388886]:
/etc/default/isc-dhcp-server.  Please use INTERFACESv4 instead.
F

*here my /etc/default/isc-dhcp-server *
INTERFACESv4="enp2s0"


*here my dhcpd.conf*

ddns-update-style none;

#option definitions common to all supported networks...
#option domain-name "example.org";
#option domain-name-servers ns1.example.org, ns2.example.org;

default-lease-time 691200;
max-lease-time 691200;

# 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;

failover peer "dhcp-failover" {
        secondary;
        address 192.168.0.3;
        port 647;
        peer address 192.168.0.2;
        peer port 648;
        max-response-delay 30;
        max-unacked-updates 10;
        load balance max seconds 5;
        mclt 3600;
       # split 255;   // split value somente no principal
}

subnet 192.168.0.0 netmask 255.255.255.0 {
  option domain-name-servers 192.168.0.5 ;
  option routers 192.168.0.254 ;
  option netbios-name-servers 192.168.0.5 ;
  option ntp-servers 192.168.0.5 ;
  option broadcast-address 192.168.0.255;
  pool {
        failover peer "dhcp-failover";
        default-lease-time 691200;
        max-lease-time 691200;
        range 192.168.0.11 192.168.0.200;
  }
}

*here my syslog (still trying load dhcpd6.conf but lauch IPv4 server only
that it is what I need.)*

Feb 23 13:19:01 debian-backup isc-dhcp-server[388778]:
/etc/init.d/isc-dhcp-server: 50: cannot open /etc/dhcp/dhcpd6.conf: No such
file
Feb 23 13:19:01 debian-backup isc-dhcp-server[388771]: Launching IPv4
server only.
Feb 23 13:19:01 debian-backup dhcpd[388780]: Internet Systems Consortium
DHCP Server 4.4.1
Feb 23 13:19:01 debian-backup dhcpd[388780]: Copyright 2004-2018 Internet
Systems Consortium.
Feb 23 13:19:01 debian-backup dhcpd[388780]: All rights reserved.
Feb 23 13:19:01 debian-backup dhcpd[388780]: For info, please visit
https://www.isc.org/software/dhcp/
Feb 23 13:19:01 debian-backup isc-dhcp-server[388771]: Starting ISC DHCPv4
server: dhcpddhcpd service already running (pid file /var/run/dhcpd.pid
currenty exists) ...
Feb 23 13:19:01 debian-backup isc-dhcp-server[388784]:  failed!
Feb 23 13:19:01 debian-backup systemd[1]: isc-dhcp-server.service: Control
process exited, code=exited, status=1/FAILURE
Feb 23 13:19:01 debian-backup systemd[1]: isc-dhcp-server.service: Failed
with result 'exit-code'.

*here my syntax check of dhcpd.conf with no errors*
root@debian-backup:/etc/dhcp# dhcpd -t -cf /etc/dhcp/dhcpd.conf
Internet Systems Consortium DHCP Server 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /etc/dhcp/dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/dhcpd.pid



I did find where is the problem. Any suggestion?

my best regards,

Samuel Motta
Brazil

-- 
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/dhcp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.