LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-12-2007, 04:12 PM   #1
rsmccain
Member
 
Registered: Apr 2004
Location: Louisiana
Distribution: SUSE
Posts: 154

Rep: Reputation: 30
DHCP failover error: unexpected error


I am following this document: http://www.madboa.com/geek/dhcp-failover/

DHCPD version in use on both servers is dhcp-3.0.3-23.5. OS on both servers is SLES 10.

***Primary dhcpd.conf***
# global option definitions
option domain-name "dss.state.la.us";
option domain-name-servers 172.20.11.237;
option slp-directory-agent true 172.20.10.24, 172.20.10.34, 172
.20.10.36;
option slp-service-scope true dss-slp-scope;
default-lease-time 465000;

# not using a max-lease-time
max-lease-time 7200;

# We are not using DDNS, but DHCP v3 requires to state we are n
ot using it
ddns-update-style none; ddns-updates off;

###DHCP Failover www.madboa.com/geek/dhcp-failover/
authoritative;
ddns-update-style none;

failover peer "dhcp-failover" {
primary; # declare this to be the primary server
address 10.120.11.82;
port 520;
peer address 10.120.11.104;
peer port 520;
max-response-delay 30;
max-unacked-updates 10;
load balance max seconds 3;
mclt 1800;
split 128;
}

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

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

#subnet 10.120.11.0 netmask 255.255.255.0 {
#}

subnet 172.20.4.0 netmask 255.255.254.0 {
#range 172.20.4.1 172.20.4.11 ;
option routers 172.20.4.254 ;
pool {
failover peer "dhcp-failover";
max-lease-time 1800;
deny dynamic bootp clients;
range 172.20.4.1 172.20.4.11;
}
}

--SNIP---

Other subnets that aren't using failover


***Secondary dhcpd.conf***

# global option definitions
option domain-name "dss.state.la.us";
option domain-name-servers 172.20.11.237;
option slp-directory-agent true 172.20.10.24, 172.20.10.34, 172.20.10.36;
option slp-service-scope true dss-slp-scope;
default-lease-time 465000;

# not using a max-lease-time
max-lease-time 7200;

# We are not using DDNS, but DHCP v3 requires to state we are not using it
ddns-update-style none; ddns-updates off;

###DHCP Failover www.madboa.com/geek/dhcp-failover/
authoritative;
ddns-update-style none;

failover peer "dhcp-failover" {
secondary; # declare this to be the primary server
address 10.120.11.104;
port 520;
peer address 10.120.11.82;
peer port 520;
max-response-delay 30;
max-unacked-updates 10;
load balance max seconds 3;
}

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

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

#subnet 10.120.11.0 netmask 255.255.255.0 {
#}

#VLAN2 - ISB
subnet 172.20.4.0 netmask 255.255.254.0 {
#range 172.20.4.1 172.20.4.11 ;
option routers 172.20.4.254 ;
pool {
failover peer "dhcp-failover";
max-lease-time 1800;
deny dynamic bootp clients;
range 172.20.4.1 172.20.4.11;
}
}

--SNIP--

Other subnets that aren't using failover



---------------------

dhcpd starts up fine on both servers and I can succesfully get an IP address from the primary DHCP server. When I bring down the dhcpd daemon on the Primary server, this shows up in the logs on the secondary server:

Sep 12 11:58:39 dss-dr93la05 dhcpd: peer dhcp-failover: disconnected
Sep 12 11:58:39 dss-dr93la05 dhcpd: failover peer dhcp-failover: I move from normal to communications-interrupted
Sep 12 11:58:50 dss-dr93la05 dhcpd: failover peer dhcp-failover: unexpected error <**************
Sep 12 11:59:41 dss-dr93la05 dhcpd: DHCPDISCOVER from 52:41:43:18:5e:00 (185e00-RACe27802d940) via eth0
Sep 12 11:59:41 dss-dr93la05 dhcpd: DHCPDISCOVER from 52:41:43:18:5e:00 (185e00-RACe27802d940) via eth0
Sep 12 11:59:41 dss-dr93la05 dhcpd: DHCPREQUEST for 10.120.8.198 from 52:41:43:18:5e:00 via eth0
Sep 12 11:59:41 dss-dr93la05 dhcpd: DHCPACK on 10.120.8.198 to 52:41:43:18:5e:00 (185e00-RACe27802d940) via eth0
Sep 12 11:59:41 dss-dr93la05 dhcpd: DHCPREQUEST for 10.120.8.198 from 52:41:43:18:5e:00 via eth0
Sep 12 11:59:41 dss-dr93la05 dhcpd: DHCPACK on 10.120.8.198 to 52:41:43:18:5e:00 (185e00-RACe27802d940) via eth0
Sep 12 11:59:41 dss-dr93la05 dhcpd: DHCPREQUEST for 10.120.8.198 from 52:41:43:18:5e:00 (185e00-RACe27802d940) via eth0
--SNIP--


..I then try to get an IP address with no luck. It looks like it failed over ok then got an 'unexpected error'.

Any ideas?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why am I getting an unexpected token error in this script? projektdotnet Programming 7 09-01-2007 03:32 PM
syntax error near unexpected token `else' josedias Programming 3 09-11-2006 07:09 PM
gunzip gives unexpected error (RH8.0) robw Linux - Software 2 09-08-2003 05:08 PM
Unexpected EOF Error??? ITJedi Programming 2 07-09-2003 02:01 PM
error unexpected inconsistency rromeli Linux - Software 0 02-07-2002 01:55 AM


All times are GMT -5. The time now is 06:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration