Send dhcp-users mailing list submissions to dhcp-users@lists.isc.org
To subscribe or unsubscribe via the World Wide Web, visit https://lists.isc.org/mailman/listinfo/dhcp-users or, via email, send a message with subject or body 'help' to dhcp-users-requ...@lists.isc.org You can reach the person managing the list at dhcp-users-ow...@lists.isc.org When replying, please edit your Subject line so it is more specific than "Re: Contents of dhcp-users digest..." Today's Topics: 1. Re: dhcp-users Digest, Vol 136, Issue 13 (LOCHET Charles) ---------------------------------------------------------------------- Message: 1 Date: Thu, 27 Feb 2020 16:06:57 +0000 From: LOCHET Charles <charles.loc...@lecnam.net> To: "dhcp-users@lists.isc.org" <dhcp-users@lists.isc.org> Subject: Re: dhcp-users Digest, Vol 136, Issue 13 Message-ID: <3c4c686c-41c9-456b-bd0d-e95414c18...@lecnam.net> Content-Type: text/plain; charset="utf-8" --------------------- Charles Lochet ESGT / Le Cnam Service Informatique 1, Boulevard Pythagore Campus Universitaire 72000 Le Mans M?l : charles.loc...@lecnam.net<mailto:olivier.vil...@lecnam.net> T?l : +33(0)2 43 43 31 03Fax : +33(0)2 43 43 31 57 Le 27 f?vr. 2020 ? 15:43, dhcp-users-requ...@lists.isc.org<mailto:dhcp-users-requ...@lists.isc.org> a ?crit : Send dhcp-users mailing list submissions to dhcp-users@lists.isc.org<mailto:dhcp-users@lists.isc.org> To subscribe or unsubscribe via the World Wide Web, visit https://lists.isc.org/mailman/listinfo/dhcp-users or, via email, send a message with subject or body 'help' to dhcp-users-requ...@lists.isc.org You can reach the person managing the list at dhcp-users-ow...@lists.isc.org When replying, please edit your Subject line so it is more specific than "Re: Contents of dhcp-users digest..." Today's Topics: 1. no subnet declaration & not configured to listened on any interfaces error message trouble (LOCHET Charles) 2. Re: no subnet declaration & not configured to listened on any interfaces error message trouble (glenn.satch...@uniq.com.au) ---------------------------------------------------------------------- Message: 1 Date: Thu, 27 Feb 2020 13:50:05 +0000 From: LOCHET Charles <charles.loc...@lecnam.net> To: "dhcp-users@lists.isc.org" <dhcp-users@lists.isc.org> Subject: no subnet declaration & not configured to listened on any interfaces error message trouble Message-ID: <bdb48f96-0f73-4365-9240-bb25be66a...@lecnam.net> Content-Type: text/plain; charset="utf-8" We have 2 Dhcp server, dhcp3 service former debian, then changing of virtualizing server, I have to reinstall them on new esxi virtualizing servers, so did install debian 10 and isc dhcp server, copie dhcpd.conf config file and adapt it, verify it with dhcpd -t dhcpd.conf got not error, so start it and got error message: no subnet declaration for start (no ipv4 adresses) not configured to listen on any interfaces! I then checked /etc/default/isc-dhcp-server and /etc/network/interface files which looked ok. I had been advised to start with simpler dhcp.conf files to start and add bit by bit areas? But I always get the same error message whatever subnet declration I have inside my config file. I don?t understand what happens or what to do now? looks like what ever the dhcpd.conf file is, I get same error message, is there any other config file I don?t know about ? or anything missing ? server is at 192.134.130.43 and config files are such: ##########interfaces file: # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug ens192 iface ens192 inet static address 192.134.130.43 #address 192.134.130.20 netmask 255.255.255.240 gateway 192.134.130.33 broadcast 192.134.130.31 dns-nameservers 192.134.130.2, 192.134.130.22,163.173.128.6, 192.134.130.60 dns-search esgt.cnam.fr<http://esgt.cnam.fr> up service isc-dhcp-server restart ###### isc-dhcp-server file: # Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server) # Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf). DHCPDv4_CONF=/etc/dhcp/dhcpd.conf #DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf # Path to dhcpd's PID file (default: /var/run/dhcpd.pid). DHCPDv4_PID=/var/run/dhcpd.pid #DHCPDv6_PID=/var/run/dhcpd6.pid # Additional options to start dhcpd with. # Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead #OPTIONS="" # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". INTERFACESv4="ens192" INTERFACESv6=? ? ##### DHCPD.CONF file # dhcpd.conf # # Sample configuration file for ISC dhcpd # option domain-name "esgt.cnam.fr<http://esgt.cnam.fr>"; option domain-name-servers marmite.egst.cnam.fr<http://marmite.egst.cnam.fr>; option domain-name-servers marmite.esgt.cnam.fr<http://marmite.esgt.cnam.fr>, 163.173.128.6; authoritative; default-lease-time 600; max-lease-time 7200; subnet 192.134.130.32 netmask 255.255.255.240 { range 192.134.130.34 192.134.130.46; option subnet-mask 255.255.255.240; option broadcast-address 192.134.130.47; option routers 192.134.130.33; } # 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.) ddns-update-style none; --------------------- Charles Lochet ESGT / Le Cnam Service Informatique 1, Boulevard Pythagore Campus Universitaire 72000 Le Mans M?l : charles.loc...@lecnam.net<mailto:olivier.vil...@lecnam.net> T?l : +33(0)2 43 43 31 03Fax : +33(0)2 43 43 31 57 -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20200227/8f8f6b8b/attachment-0001.htm> ------------------------------ Message: 2 Date: Fri, 28 Feb 2020 01:43:11 +1100 From: glenn.satch...@uniq.com.au To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: no subnet declaration & not configured to listened on any interfaces error message trouble Message-ID: <1840ddfc1346ae28dc90c9c836570...@uniq.com.au> Content-Type: text/plain; charset=UTF-8; format=flowed Hi Charles, The broadcast address in the interfaces file doesn't match the subnet: broadcast 192.134.130.31 should be broadcast 192.134.130.47 and that might cause dhcpd to think the local ip address is not in the subnet. Second thing is that the ip address of the dhcpd server is in the defined range for dhcpd to hand out. The range should be specified as range 192.134.130.34 192.134.130.42; range 192.134.130.44 192.134.130.46; regards, -glenn Hi! thank you very much! that was it! after many tries and changes may be the broadcast address of the interface fil finally ended wrong. but I didn?t think about the server itself being in subnet? I changed and tried and no more error message, but this one instead: There?s already a DHCP server running. I so changed the IP to the former server and stopped it, it was secondary? Got same ? There?s already a DHCP server running ? So did the same for primary server, and got always same message error There?s always a DHCP server running. Both new server have now the former server Ip adresse, and former servers are stopped. Well, so did go back, changing IP and stopping new servers and running former servers till tomorrow. Is there timing to stop and replace, to avoid this and let new server replace formers ? Charles. On 2020-02-28 00:50, LOCHET Charles wrote: We have 2 Dhcp server, dhcp3 service former debian, then changing of virtualizing server, I have to reinstall them on new esxi virtualizing servers, so did install debian 10 and isc dhcp server, copie dhcpd.conf config file and adapt it, verify it with dhcpd -t dhcpd.conf got not error, so start it and got error message: no subnet declaration for start (no ipv4 adresses) not configured to listen on any interfaces! I then checked /etc/default/isc-dhcp-server and /etc/network/interface files which looked ok. I had been advised to start with simpler dhcp.conf files to start and add bit by bit areas? But I always get the same error message whatever subnet declration I have inside my config file. I don?t understand what happens or what to do now? looks like what ever the dhcpd.conf file is, I get same error message, is there any other config file I don?t know about ? or anything missing ? server is at 192.134.130.43 and config files are such: ##########interfaces file: # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug ens192 iface ens192 inet static address 192.134.130.43 #address 192.134.130.20 netmask 255.255.255.240 gateway 192.134.130.33 broadcast 192.134.130.31 dns-nameservers 192.134.130.2, 192.134.130.22,163.173.128.6, 192.134.130.60 dns-search esgt.cnam.fr<http://esgt.cnam.fr> [1] up service isc-dhcp-server restart ###### isc-dhcp-server file: # Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server) # Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf). DHCPDv4_CONF=/etc/dhcp/dhcpd.conf #DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf # Path to dhcpd's PID file (default: /var/run/dhcpd.pid). DHCPDv4_PID=/var/run/dhcpd.pid #DHCPDv6_PID=/var/run/dhcpd6.pid # Additional options to start dhcpd with. # Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead #OPTIONS="" # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". INTERFACESv4="ens192" INTERFACESv6=? ? ##### DHCPD.CONF file # dhcpd.conf # # Sample configuration file for ISC dhcpd # option domain-name "esgt.cnam.fr<http://esgt.cnam.fr> [1]"; option domain-name-servers marmite.egst.cnam.fr<http://marmite.egst.cnam.fr> [2]; option domain-name-servers marmite.esgt.cnam.fr<http://marmite.esgt.cnam.fr> [3], 163.173.128.6; authoritative; default-lease-time 600; max-lease-time 7200; subnet 192.134.130.32 netmask 255.255.255.240 { range 192.134.130.34 192.134.130.46; option subnet-mask 255.255.255.240; option broadcast-address 192.134.130.47; option routers 192.134.130.33; } # 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.) ddns-update-style none; --------------------- Charles Lochet ESGT / Le Cnam Service Informatique 1, Boulevard Pythagore Campus Universitaire 72000 Le Mans M?l : charles.loc...@lecnam.net<mailto:charles.loc...@lecnam.net> T?l : +33(0)2 43 43 31 03Fax : +33(0)2 43 43 31 57 Links: ------ [1] http://esgt.cnam.fr [2] http://marmite.egst.cnam.fr [3] http://marmite.esgt.cnam.fr _______________________________________________ dhcp-users mailing list dhcp-users@lists.isc.org<mailto:dhcp-users@lists.isc.org> https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ Subject: Digest Footer _______________________________________________ dhcp-users mailing list dhcp-users@lists.isc.org<mailto:dhcp-users@lists.isc.org> https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ End of dhcp-users Digest, Vol 136, Issue 13 ******************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20200227/ce2509ba/attachment.htm> ------------------------------ Subject: Digest Footer _______________________________________________ dhcp-users mailing list dhcp-users@lists.isc.org https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ End of dhcp-users Digest, Vol 136, Issue 14 *******************************************