Ips always renewed when using failover setup

Yves-Alexis Perez corsac at debian.org
Tue Jul 1 13:14:03 UTC 2008


Hi,

I'm testing failover setup (using the attached quite simple config) and
I get something I dont really understand.

With only one host on the subnet (besides the two dhcp servers), each
time the host request an ip (DHCPDISCOVER), the dhcp server (secondary
in this case) give him a different one, as if the previous one was
already taken, or something like that.

Same setup without failover seems to work fine, so I wonder what can be
the problem

Cheers,
-- 
Yves-Alexis
-------------- next part --------------
# No dynamic updates
ddns-update-style none;

# option definitions common to all supported networks...
option domain-name "example.com";
option domain-name-servers 192.168.0.1;

default-lease-time 31536000;
max-lease-time 315360000;

# 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-peer" {
	# us
	secondary;
	address 192.168.0.11;
	port 519;
	
	# peer
	peer address 192.168.0.1;
	peer port 519;

	max-response-delay 60;
	max-unacked-updates 10;

	load balance max seconds 5;
}
# No service will be given on this subnet, but declaring it helps the 
# DHCP server to understand the network topology.

subnet 10.152.187.0 netmask 255.255.255.0 {
}

# This is a very basic subnet declaration.

subnet 192.168.0.0 netmask 255.255.255.0 {
	# failover pour les clients dynamiques
	pool {
		failover peer "dhcp-peer";
		deny dynamic bootp clients; #failover and bootp incompatibles
		range 192.168.0.20 192.168.0.250;
	}
}
-------------- next part --------------
# No dynamic updates
ddns-update-style none;

# option definitions common to all supported networks...
option domain-name "example.com";
option domain-name-servers 192.168.0.1;

default-lease-time 31536000;
max-lease-time 315360000;

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

# No service will be given on this subnet, but declaring it helps the 
# DHCP server to understand the network topology.

subnet 10.152.187.0 netmask 255.255.255.0 {
}

failover peer "dhcp-peer" {
	# us
	primary;
	address 192.168.0.1;
	port 519;
	
	# peer
	peer address 192.168.0.11;
	peer port 519;

	max-response-delay 60;
	max-unacked-updates 10;

	load balance max seconds 5;
	split 128;
	mclt 60;
}

# This is a very basic subnet declaration.

subnet 192.168.0.0 netmask 255.255.255.0 {
	# failover pour les clients dynamiques
	pool {
		failover peer "dhcp-peer";
		deny dynamic bootp clients; #failover and bootp incompatibles
		range 192.168.0.20 192.168.0.250;
	}
}



More information about the dhcp-users mailing list