1
17.1 Legacy Series / Re: [DHCP FAILOVER] Hostnames not sync --> empty hostnames
« on: July 01, 2017, 10:04:24 pm »
No one else have encounter this behaviour ?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
ypanier@OPNsenseMaster:~ % /usr/local/sbin/dhcpd --version
isc-dhcpd-4.3.5
ypanier@OPNsenseMaster:~ % cat /var/dhcpd/etc/dhcpd.conf
option domain-name "localdomain";
option ldap-server code 95 = text;
option domain-search-list code 119 = text;
option arch code 93 = unsigned integer 16; # RFC4578
default-lease-time 7200;
max-lease-time 86400;
log-facility local7;
one-lease-per-client true;
deny duplicates;
ping-check true;
update-conflict-detection false;
authoritative;
failover peer "dhcp_lan" {
primary;
address 172.16.16.1;
port 519;
peer address 172.16.16.2;
peer port 520;
max-response-delay 10;
max-unacked-updates 10;
split 128;
mclt 600;
load balance max seconds 3;
}
subnet 172.16.16.0 netmask 255.255.240.0 {
pool {
option domain-name-servers 172.16.31.254;
deny dynamic bootp clients;
failover peer "dhcp_lan";
range 172.16.16.10 172.16.31.253;
}
option routers 172.16.31.254;
option domain-name-servers 172.16.31.254;
}
ypanier@OPNsenseSlave:~ % cat /var/dhcpd/etc/dhcpd.conf
option domain-name "localdomain";
option ldap-server code 95 = text;
option domain-search-list code 119 = text;
option arch code 93 = unsigned integer 16; # RFC4578
default-lease-time 7200;
max-lease-time 86400;
log-facility local7;
one-lease-per-client true;
deny duplicates;
ping-check true;
update-conflict-detection false;
authoritative;
failover peer "dhcp_lan" {
secondary;
address 172.16.16.2;
port 520;
peer address 172.16.16.1;
peer port 519;
max-response-delay 10;
max-unacked-updates 10;
load balance max seconds 3;
}
subnet 172.16.16.0 netmask 255.255.240.0 {
pool {
option domain-name-servers 172.16.31.254;
deny dynamic bootp clients;
failover peer "dhcp_lan";
range 172.16.16.10 172.16.31.253;
}
option routers 172.16.31.254;
option domain-name-servers 172.16.31.254;
}
<vip>
<type>single</type>
<subnet_bits>20</subnet_bits>
<mode>carp</mode>
<interface>lan</interface>
<descr>VIP TOOLS</descr>
<subnet>172.16.31.254</subnet>
<vhid>4</vhid>
<advskew>0</advskew>
<advbase>1</advbase>
<password>172.16.31.254</password>
</vip>
<vip>
<type>single</type>
<subnet_bits>20</subnet_bits>
<mode>carp</mode>
<interface>lan</interface>
<descr>VIP TOOLS</descr>
<subnet>172.16.31.254</subnet>
<vhid>4</vhid>
<advskew>100</advskew>
<advbase>1</advbase>
<password>172.16.31.254</password>
</vip>
<rule>
<type>pass</type>
<ipprotocol>inet</ipprotocol>
<descr>Default allow LAN to any rule</descr>
<interface>lan</interface>
<source>
<network>lan</network>
</source>
<destination>
<any/>
</destination>
</rule>