LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-07-2011, 08:23 AM   #1
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 23
Simplest possible dhcp failover not working


Ubuntu 10.04 LTS dhcp3-server - I've stripped the config down to 1 subnet with next to no options. The primary/secondary see each other start and stop, they balance the pool, but when the primary load balances a request to the secondary, the secondary acts like it doesn't even hear the request. Not a single line in syslog. The primary's syslog looks like this:


Oct 7 09:15:01 svc1 dhcpd: DHCPDISCOVER from 00:1f:fb:22:8a:55 via 199.91.247.254: load balance to peer dhcp
Oct 7 09:15:02 svc1 dhcpd: DHCPDISCOVER from 00:1f:fb:22:8c:a8 via 199.91.247.254: load balance to peer dhcp
Oct 7 09:15:05 svc1 dhcpd: DHCPDISCOVER from 00:1f:fb:22:8c:a8 via 199.91.247.254: load balance to peer dhcp
Oct 7 09:15:09 svc1 dhcpd: DHCPDISCOVER from 00:26:82:67:14:6c via 199.91.247.254: load balance to peer dhcp

Couldn't be any simpler, I've been beating my head for hours, what am I missing here?? On either server, if I run

tcpdump host 10.250.0.9 port 520

I get nothing, even when .8 is supposedly offloading one of these requests. If I similarly watch the primary, I see lots of .9 talking to .8 on port 519, and .8 responding.

Primary
----------------
Code:
ddns-update-style none;
authoritative;
log-facility local7;

option domain-name-servers 208.74.224.4, 208.74.224.5;
default-lease-time 86400;
max-lease-time 86400;


failover peer "dhcp" {
    primary;
    address 10.250.0.8;
    port 519;
    peer address 10.250.0.9;
    peer port 520;
    max-response-delay 60;
    max-unacked-updates 10;
    mclt 3600;
    split 128;
    load balance max seconds 3;
}

# This is just here to the server knows
# which interface to listen on:
subnet 10.250.0.0 netmask 255.255.255.192 {}

# This is the actual subnet I'm trying to serve:
subnet 199.91.244.0 netmask 255.255.252.0  {
    option subnet-mask 255.255.252.0;
    option routers 199.91.244.1;
    pool {
        failover peer "dhcp";
        range 199.91.244.11 199.91.247.199;
    }
}
Secondary:
----------------
Code:
ddns-update-style none;
authoritative;
log-facility local7;

option domain-name-servers 208.74.224.4, 208.74.224.5;
default-lease-time 86400;
max-lease-time 86400;

failover peer "dhcp" {
    secondary;
    address 10.250.0.9;
    port 520;
    peer address 10.250.0.8;
    peer port 519;
    max-response-delay 60;
    max-unacked-updates 10;
}

subnet 10.250.0.0 netmask 255.255.255.192 {}

subnet 199.91.244.0 netmask 255.255.252.0  {
    option subnet-mask 255.255.252.0;
    option routers 199.91.244.1;
    pool {
        failover peer "dhcp";
        range 199.91.244.11 199.91.247.199;
    }
}

Last edited by suprstar; 10-07-2011 at 01:32 PM. Reason: add distro
 
  


Reply



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
A question about DHCP failover 22978316 Linux - Server 1 05-02-2009 03:16 PM
DHCP failover? rsmccain Linux - Networking 2 10-24-2006 05:38 PM
How to set up DHCP failover on Linux 3.0 shahirsha Linux - Networking 2 01-31-2005 12:29 AM
DHCP failover to static IP addr rf_willi Linux - Networking 0 10-25-2004 05:31 PM
[DHCP] Failover state fabrice Linux - Networking 0 04-30-2002 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration