Problem with server

Glenn Satchell glenn.satchell at uniq.com.au
Tue May 24 23:49:09 UTC 2022


Hi Leslie,

One config error jumps out at me immediately, in the failover peer 
declaration:

> failover peer "dhcp-failover" {
>     address 192.168.1.50;
>     port 647;
>     peer address 192.168.1.51;
>     peer port 648;

> failover peer "dhcp-failover" {
>     address 192.168.1.51;
>     port 647;
>     peer address 192.168.1.50;
>     peer port 648;

So server 192.168.1.50 is listening on port 647 and expecting 
192.168.1.51 to be listening on port 648.

Server 192.168.1.51 is listening on port 647 and expecting 192.168.1.50 
to be listening on port 648.

These need to match up so that both sides know to use 192.168.1.50:647 
and 192.168.1.51:648 Typically I just use port 647 for both servers.


Next, there is no primary or secondary declaration in the failover peer 
section. It doesn't matter which is which, but one needs to be primary 
and the other secondary.


Now the errors about subnet declarations mean that the dhcp process 
can't find a subnet declaration that matches the address on the eth2 and 
eth0 interfaces on the second server.

I don't use Debian, but my Ubuntu system, which will be similar, has 
/etc/default/isc-dhcp-server where you can add a list of interfaces to 
listen on.

Alternatively you can add dummy declarations to match the addresses on 
those interfaces:

> subnet 192.168.2.0 netmask 255.255.255.0 {}

If you are not serving IPv6 requests then you don't need to run 
isc-dhcp-server6.service, just stop and disable that service. I expect 
the default /etc/dhcp/dhcpd6.conf doesn't have anything for your local 
networks.

I hope this helps.

regards,
Glenn

/etc/default/isc-dhcp-server
On 2022-05-25 08:32, Leslie Rhorer wrote:
> Hello all,
> 
>     This is my first post to this list.
> 
>     I am having a small problem with isc-dhcp-server.  I have been
> running two DHCP servers with load sharing for many years with no real
> issues.  The two machines are nearly identical in hardware.  I
> recently upgraded both to Debian 11 (Bullseye), and sine then one
> server has been acting up.  'Really strange.  No matter what, it never
> runs without errors, although it seems to be working.  I can't tell
> for certain because of the errors, and ISC is not very specific about
> errors.  The error I get depends on how I run it (start or restart). 
> It never seems to properly delete or deal with the run file, plus it
> gives the following spuriou message on startup:
> 
>  ****************************************************************************************
>  No subnet declaration for eth2 (no IPv4 addresses).
>  ** Ignoring requests on eth2.  If this is not what
>     you want, please write a subnet declaration
>     in your dhcpd.conf file for the network segment
>     to which interface eth2 is attached. **
> 
>  failover peer dhcp-failover: I move from communications-interrupted to 
> startup
>  Server starting service.
> 
>  Wrote 0 NA, 0 TA, 0 PD leases to lease file.
> 
>  No subnet6 declaration for eth0 (fe80::a62:66ff:fea1:4051).
>  ** Ignoring requests on eth0.  If this is not what
>     you want, please write a subnet6 declaration
>     in your dhcpd.conf file for the network segment
>     to which interface eth0 is attached. **
> 
> 
>  No subnet6 declaration for eth2 (no IPv6 addresses).
>  ** Ignoring requests on eth2.  If this is not what
>     you want, please write a subnet6 declaration
>     in your dhcpd.conf file for the network segment
>     to which interface eth2 is attached. **
> 
> 
>  Not configured to listen on any interfaces!
> 
>  If you think you have received this message due to a bug rather
>  than a configuration issue please read the section on submitting
>  bugs on either our web page at www.isc.org or in the README file
>  before submitting a bug.  These pages explain the proper
>  process and the information we find helpful for debugging.
> 
>  ****************************************************************************************
> 
>     I don't expect this is a bug, because one server functions 
> perfectly.
> 
>     Here is the functional declaration of dhcpd6.conf on both systems:
> 
> 
> default-lease-time 2592000;
> preferred-lifetime 604800;
> option dhcp-renewal-time 3600;
> option dhcp-rebinding-time 7200;
> allow leasequery;
> option dhcp6.name-servers 3ffe:501:ffff:100:200:ff:fe00:3f3e;
> option dhcp6.domain-search "test.example.com","example.com";
> option dhcp6.info-refresh-time 21600;
> 
>     Here is the functional declaration of dhcpd.conf on the Main
> (functioning) server:
> 
> ddns-update-style none;
> default-lease-time 3600;
> max-lease-time 7200;
> authoritative;
> log-facility local7;
> failover peer "dhcp-failover" {
>     address 192.168.1.50;
>     port 647;
>     peer address 192.168.1.51;
>     peer port 648;
>     max-response-delay 30;
>     max-unacked-updates 10;
>     load balance max seconds 3;
>     split 0;
>     mclt 3600;
> }
> 
> subnet 192.168.1.0 netmask 255.255.255.0 {
>     filename "pxelinux.0";
>     next-server 192.168.1.51;
>     option routers 192.168.1.1;
>     option domain-name "att.net";
>     option domain-name-servers 8.8.8.8, 68.94.156.9, 68.94.157.9;
>            pool {
>                    failover peer "dhcp-failover";
>                    range 192.168.1.220 192.168.1.240;
>            }
> }
> 
> include "/etc/dhcp/dhcpd.static";
> 
>     Here is the functional declaration of dhcpd.conf on the secondary
> (malfunctioning) server:
> 
> ddns-update-style none;
> default-lease-time 3600;
> max-lease-time 7200;
> authoritative;
> log-facility local7;
> failover peer "dhcp-failover" {
>     address 192.168.1.51;
>     port 647;
>     peer address 192.168.1.50;
>     peer port 648;
>     max-response-delay 30;
>     max-unacked-updates 10;
>     load balance max seconds 3;
>     split 0;
>     mclt 3600;
> }
> 
> subnet 192.168.1.0 netmask 255.255.255.0 {
>     filename "pxelinux.0";
>     next-server 192.168.1.50;
>     option routers 192.168.1.1;
>     option domain-name "att.net";
>     option domain-name-servers 8.8.8.8, 68.94.156.9, 68.94.157.9;
>            pool {
>                    failover peer "dhcp-failover";
>                    range 192.168.1.220 192.168.1.240;
>            }
> }
> 
> include "/etc/dhcp/dhcpd.static";
> 
>     Here is the file dhcpd.static on both servers:
> 
> host Island {
>     hardware ethernet 00:01:c0:2a:32:b8;
>     fixed-address 192.168.1.1;
> }
> host 10Gswitch {
>     hardware ethernet d8:eb:97:68:d3:fb;
>     fixed-address 192.168.1.2;
> }
> host POEswitch {
>     hardware ethernet 88:43:e1:7b:4a:c0;
>     fixed-address 192.168.1.6;
> }
> host Alarm {
>     hardware ethernet b8:b7:d7:0b:9a:6c;
>     fixed-address 192.168.1.10;
> }
> host WaterBarrel-1 {
>     hardware ethernet 12:42:0b:60:40:2f;
>     fixed-address 192.168.1.11;
> }
> host WaterBarrel-2 {
>     hardware ethernet 12:42:92:b0:7b:32;
>     fixed-address 192.168.1.12;
> }
> host WaterBarrel-3 {
>     hardware ethernet 12:42:b3:a6:ca:6f;
>     fixed-address 192.168.1.13;
> }
> host WaterBarrel-4 {
>     hardware ethernet 12:42:79:22:0f:e2;
>     fixed-address 192.168.1.14;
> }
> host Thermostat-Dining {
>     hardware ethernet b8:27:eb:5c:af:06;
>     fixed-address 192.168.1.21;
> }
> host Thermostat-Liza {
>     hardware ethernet b8:27:eb:ae:6f:57;
>     fixed-address 192.168.1.22;
> }
> host Thermostat-Tiffany {
>         hardware ethernet b8:27:eb:88:10:b7;
>         fixed-address 192.168.1.23;
> }
> host Thermostat-Lunchroom {
>         hardware ethernet b8:27:eb:65:3c:23;
>         fixed-address 192.168.1.24;
> }
> host Thermostat-Theater {
>     hardware ethernet b8:27:eb:55:05:95;
>     fixed-address 192.168.1.25;
> }
> host Thermostat-Leslie {
>     hardware ethernet b8:27:eb:65:3c:23;
>     fixed-address 192.168.1.26;
> }
> host Thermostat-Office {
>     hardware ethernet b8:27:eb:8d:6d:09;
>     fixed-address 192.168.1.28;
> }
> host Printer {
>     hardware ethernet 50:65:f3:e8:b7:45;
>     fixed-address 192.168.1.32;
> }
> host Thermometer {
>     hardware ethernet b8:27:eb:9c:78:26;
>     fixed-address 192.168.1.33;
> }
> host HVAC-Relay1 {
>         hardware ethernet 02:42:20:6a:01:01;
>     fixed-address 192.168.1.34;
> }
> host HVAC-Relay2 {
>     hardware ethernet b8:27:eb:dc:63:ad;
>     fixed-address 192.168.1.35;
> }
> host Aquarium_Relay {
>     hardware ethernet b8:27:eb:b4:c7:af;
>     fixed-address 192.168.1.40;
> }
> host Moravian_Star {
>     hardware ethernet b8:27:eb:4a:77:5b;
>     fixed-address 192.168.1.41;
> }
> host Bedroom {
>     hardware ethernet dc:a6:32:7e:6e:51;
>     fixed-address 192.168.1.42;
> }
> host Onkyo-AVR {
>     hardware ethernet 00:09:b0:ef:e0:2e;
>     fixed-address 192.168.1.43;
> }
> host AVR-Pioneer {
>     hardware ethernet 74:5e:1c:0f:0c:28;
>     fixed-address 192.168.1.44;
> }
> host AVR-Yamaha {
>     hardware ethernet 00:a0:de:88:5d:86;
>     fixed-address 192.168.1.45;
> }
> host AlarmClock {
>     hardware ethernet 80:1f:02:cc:f6:b3;
>     fixed-address 192.168.1.53;
> }
> host FPP-Outside {
>     hardware ethernet b8:27:eb:92:dc:9e;
>     fixed-address 192.168.1.57;
> }
> host AVR-Pioneer-VSX-933 {
>     hardware ethernet 00:09:b0:ef:e0:2e;
>     fixed-address 192.168.1.59;
> }
> host FPP-Inside {
>     hardware ethernet 00:1d:43:c0:0f:8c;
>     fixed-address 192.168.1.61;
> }
> host Sprinkler {
>     hardware ethernet b8:27:eb:ff:63:23;
>     fixed-address 192.168.1.63;
> }
> 
> host Garage {
>     hardware ethernet 64:52:99:50:41:6b;
>     fixed-address 192.168.1.64;
> }
> 
> host Sony-TV {
>     hardware ethernet 04:5d:4b:22:ea:52;
>     fixed-address 192.168.1.65;
> }
> 
> host LG-TV {
>     hardware ethernet 20:17:42:1e:51:d5;
>     fixed-address 192.168.1.66;
> }
> 
> host Camera1 {
>     hardware ethernet 00:12:15:49:5d:00;
>     fixed-address 192.168.1.70;
> }
> host Camera2 {
>     hardware ethernet 00:12:14:20:30:37;
>     fixed-address 192.168.1.71;
> }
> host Moto-Z {
>     hardware ethernet f4:f5:24:45:00:cd;
>     fixed-address 192.168.1.77;
> }
> 
> host Laptop {
>     hardware ethernet 44:03:2c:86:0d:b7;
>     fixed-address 192.168.1.78;
> }
> 
> host Google-1 {
>     hardware ethernet 00:f6:20:77:db:d2;
>     fixed-address 192.168.1.79;
> }
> 
> host Google-2 {
>     hardware ethernet 00:f6:20:99:70:32;
>     fixed-address 192.168.1.80;
> }
> host temp1 {
>     hardware ethernet d6:a1:34:bf:bb:1b;
>     fixed-address 192.168.1.81;
> }
> host Theater-Remote {
>     hardware ethernet 50:02:91:e9:64:78;
>     fixed-address 192.168.1.82;
> }
> host Google-3 {
>     hardware ethernet cc:f4:11:df:89:66;
>     fixed-address 192.168.1.83;
> }
> host Bedroom-Fan {
>     hardware ethernet c8:93:46:88:12:5f;
>     fixed-address 192.168.1.84;
> }
> host  temp2 {
>     hardware ethernet 50:8a:06:bd:01:fd;
>     fixed-address 192.168.1.85;
> }
> host  temp3 {
>     hardware ethernet f4:cf:a2:3a:b1:12;
>     fixed-address 192.168.1.86;
> }
> host  temp4 {
>     hardware ethernet e2:d0:a6:dd:17:0d;
>     fixed-address 192.168.1.87;
> }
> host Japanese {
>     hardware ethernet d8:f1:5b:b6:0c:2f;
>     fixed-address 192.168.1.88;
> }
> host Livingroom-Fan-1 {
>     hardware ethernet 68:57:2d:a9:c0:16;
>     fixed-address 192.168.1.89;
> }
> host Livingroom-Fan-2 {
>     hardware ethernet 68:57:2d:a9:b0:f8;
>     fixed-address 192.168.1.90;
> }
> host Select-Comfort {
>     hardware ethernet 64:db:a0:07:41:20;
>     fixed-address 192.168.1.91;
> }
> host Roomba {
>     hardware ethernet 40:9f:38:65:2e:47;
>     fixed-address 192.168.1.92;
> }
> host Livingroom-Light-3 {
>     hardware ethernet d8:f1:5b:b6:0c:e3;
>     fixed-address 192.168.1.93;
> }
> host Livingroom-Light-4 {
>     hardware ethernet 60:01:94:fa:bd:5f;
>     fixed-address 192.168.1.94;
> }
> host Theater-Stair-Lights {
>     hardware ethernet 40:f5:20:c8:28:2b;
>     fixed-address 192.168.1.95;
> }
> host Theater-Fan-1 {
>     hardware ethernet 68:57:2d:a9:b6:ec;
>     fixed-address 192.168.1.96;
> }
> host Theater-Fan-2 {
>     hardware ethernet 68:57:2d:a9:b3:38;
>     fixed-address 192.168.1.97;
> }
> host Theater-Light-1 {
>     hardware ethernet c8:2b:96:cd:89:f8;
>     fixed-address 192.168.1.98;
> }
> host Theater-Light-2 {
>     hardware ethernet c8:2b:96:e0:6f:67;
>     fixed-address 192.168.1.99;
> }
> host Vonage_Phone {
>     hardware ethernet 00:15:9a:c7:f8:e5;
>     fixed-address 192.168.1.100;
> }
> host S3_Liza {
>     hardware ethernet 00:11:d9:07:af:cd;
>     fixed-address 192.168.1.101;
> }
> host S3_Livingroom {
>     hardware ethernet 00:11:D9:09:56:24;
>     fixed-address 192.168.1.102;
> }
> host TiVo_HD {
>     hardware ethernet 00:11:D9:0B:66:54;
>     fixed-address 192.168.1.103;
> }
> host Premier {
>     hardware ethernet 00:11:d9:59:69:a1;
>     fixed-address 192.168.1.104;
> }
> host Switch_Bedroom_TiVo {
>     hardware ethernet 50:8a:05:bc:f5:d2;
>     fixed-address 192.168.1.105;
> }
> host Theater-Light-3 {
>     hardware ethernet 40:f5:20:c0:57:33;
>     fixed-address 192.168.1.107;
> }
> host Theater-Light-6 {
>     hardware ethernet a4:cf:12:cd:9c:b8;
>     fixed-address 192.168.1.108;
> }
> host Theater-Light-7 {
>     hardware ethernet cc:50:e3:f5:5a:41;
>     fixed-address 192.168.1.109;
> }
> host Switch {
>     hardware ethernet 00:40:f4:d2:c5:37;
>     fixed-address 192.168.1.110;
> }
> host Christmas-1 {
>     hardware ethernet 60:01:94:ef:b8:f4;
>     fixed-address 192.168.1.111;
> }
> host Relay {
>     hardware ethernet 00:40:9d:3e:8b:d1;
>     fixed-address 192.168.1.117;
> }
> host Contact_Scanner {
>     hardware ethernet 00:80:a3:99:df:2d;
>     fixed-address 192.168.1.118;
> }
> host UPS {
>     hardware ethernet 00:c0:b7:c8:26:ec;
>     fixed-address 192.168.1.119;
> }
> host Liza {
>         hardware ethernet c8:9c:dc:6e:2c:75;
>         fixed-address 192.168.1.120;
> }
> host Leslie {
>     hardware ethernet b4:2e:99:49:3e:41;
>     fixed-address 192.168.1.121;
> }
> 
> host Tiffany-L {
>     hardware ethernet 64:66:b3:03:d6:42;
>     fixed-address 192.168.1.122;
> }
> 
> host Tiffany-W {
>         hardware ethernet 60:a4:4c:c8:a6:c7;
>         fixed-address 192.168.1.122;
> }
> 
> host Areca-1 {
>     hardware ethernet 00:1b:4d:61:51:2d;
>     fixed-address 192.168.1.131;
> }
> 
> host Phone-Leslie {
>     hardware ethernet 5a:2b:55:cb:a3:b5;
>     fixed-address 192.168.1.141;
> }
> 
> host Phone-Linda {
>     hardware ethernet da:6b:0a:d6:bb:c3;
>     fixed-address 192.168.1.142;
> }
> 
> host Theater-PC {
>     hardware ethernet 60:a4:4c:c8:a6:c4;
>     fixed-address 192.168.1.150;
> }
> 
> host Guest-PC {
>         hardware ethernet c8:60:00:60:b7:d4;
>         fixed-address 192.168.1.151;
> }
> 
> host Livingroom-PC {
>         hardware ethernet 60:a4:4c:40:c1:e5;
>         fixed-address 192.168.1.152;
> }
> 
> host Enphase1 {
>     hardware ethernet 00:1d:c0:60:d8:ed;
>     fixed-address 192.168.1.200;
> }
> 
> host Enphase2 {
>     hardware ethernet 00:1d:c0:70:48:46;
>     fixed-address 192.168.1.201;
> }
> 
> host Tstat7 {
>     hardware ethernet 00:d0:2d:2a:eb:72;
>     fixed-address 192.168.1.207;
> }
> 
> host Tstat8 {
>     hardware ethernet 00:d0:2d:3a:2c:55;
>     fixed-address 192.168.1.208;
> }
> 
> host Tstat9 {
>         hardware ethernet 00:d0:2d:2a:db:b6;
>         fixed-address 192.168.1.209;
> }
> 
> host Tstat10 {
>     hardware ethernet 00:d0:2d:3a:2c:73;
>     fixed-address 192.168.1.210;
> }


More information about the dhcp-users mailing list