What's new

isc-dhcp-server on Asuswrt-Merlin

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

AitschPi

Occasional Visitor
Hi,
does anybody run the isc-dhcp-server on Merlin? I want to run two dhcp servers (failover) on two asus routers (one is router, one is AP). Installing and Testing of both servers as single one wasn't the problem. Failover won't work.

My question now:
How about startup script? Does anyone wrote one?
At the moment I added a line "/opt/sbin/dhcp" in "/jffs/scrips/service-start".

Furthermore I have questions on failover on Merlin, but at first the right startup script. ;o)
 
Well I have been trying to run a similar configuration on two AC68 APs'. Non failover mode works fine but with "peer" statements the dhcpd process fails with a segmentation fault. No core file produced. How do I debug this problem ?

admin@asus3:/tmp/mnt/sda1# dhcpd -d -cf /tmp/mnt/sda1/mydhcpd.conf br0
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: /tmp/mnt/sda1/mydhcpd.conf
Database file: /opt/var/db/dhcpd.leases
PID file: /opt/var/run/dhcpd.pid
Wrote 0 leases to leases file.
Listening on LPF/br0/38:2c:4a:9c:64:a0/192.168.8.0/24
Sending on LPF/br0/38:2c:4a:9c:64:a0/192.168.8.0/24
Sending on Socket/fallback/fallback-net
failover peer dhcp: I move from recover to startup
Server starting service.
Segmentation fault

admin@asus3:/tmp/mnt/sda1# cat mydhcpd.conf
failover peer "dhcp" {
secondary; # This defines the secondary
address 192.168.8.3;
port 647;
peer address 192.168.8.2;
peer port 647;
max-response-delay 60;
max-unacked-updates 10;
load balance max seconds 3;
}
authoritative;
allow booting;
ddns-update-style interim;
update-static-leases on;
one-lease-per-client on;
default-lease-time 300;
max-lease-time 7200;



key "rndc-key" {
algorithm hmac-md5;
secret "xxxxxxxxxxxxxxxxxxxxxx" };

zone 8.168.1920.in-addr.arpa {
primary 192.168.8.2;
key "rndc-key";
}
zone mydomain.com {
primary 192.168.8.2;
key "rndc-key";
}

subnet 192.168.8.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.8.255;
option routers 192.168.8.1;
option domain-name-servers 192.168.8.2, 192.168.8.3;
option domain-search "mydomain.com";
pool {
failover peer "dhcp";
range 192.168.8.210 192.168.8.240;
}
}


ASUSWRT-Merlin RT-AC68U 384.9-0 Sat Feb 2 18:16:52 UTC 2019
admin@asus3:/tmp/home/root# opkg list-installed
entware-opt - 227000-3
entware-release - 1.0-2
entware-upgrade - 1.0-1
findutils - 4.6.0-1
grep - 3.1-1
isc-dhcp-server-ipv4 - 4.4.1-3
libc - 2.23-8
libgcc - 7.3.0-8
libpcre - 8.42-1
libpthread - 2.23-8
librt - 2.23-8
libssp - 7.3.0-8
libstdcpp - 7.3.0-8
locales - 2.23-8
opkg - 2011-04-08-9c97d5ec-17c
terminfo - 6.1-1
zlib - 1.2.11-2
zoneinfo-asia - 2018g-1
zoneinfo-europe - 2018g-1
admin@asus3:/tmp/home/root#
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top