failover

Erestor Elensar erestor.elensar at gmail.com
Fri Jul 28 10:26:16 UTC 2006


Hi,

I have installed two dhcp servers in failover for our ip phones.
Because this works (of cource) better than our windows dhcp we are going
to move our windows scopes to the same machines.
However if i use the option "deny dynamic bootp clients" the windows
clients does not receive ip addresses, if i don't use this option then i
must turn off the failover then the clients get their addresses.

At this point i'm confused, wy do the ip phose get a lease on a failover
system?
Could it be because when they do a dhcpdiscover they come ta our windows
dhcp server where a option 176 says: "you are a ip phone go to vlan 92 and
ask there a lease".


The windows dhcp rule
option option-176 "L2Q=1, L2QVLAN=92";

The config for the existing voip setup:
#/etc/dhcp/dhcpd.conf
ddns-update-style none;
one-lease-per-client true;
option domain-name "sxpbelux.net";
option subnet-mask 255.255.252.0;
default-lease-time 1209600;
max-lease-time 2419200;
authoritative;
failover peer "dhcp" {
  primary;
  address 10.32.92.31;
  port 519;
  peer address 10.32.92.32;
  peer port 520;
  max-response-delay 60;
  max-unacked-updates 10;
  mclt 600;
  split 128;
  load balance max seconds 3;
}
include "/etc/dhcp/dhcpd.master";

# /etc/dhcp/dhcpd.master
option option-176 code 176 = string;

subnet 10.32.92.0 netmask 255.255.252.0 {
  pool {
    failover peer "dhcp";
    range 10.32.92.51 10.32.95.254;
    deny dynamic bootp clients;
  }
  option broadcast-address 10.32.95.255;
  option option-176 "MCIPADD=10.32.92.9,MCPORT=1719";
}


the new setup with the windows clients
/etc/dhcp/dhcp.conf
authoritative;
ddns-update-style ad-hoc;
one-lease-per-client true;

failover peer "ucc-dhcp" {
  primary;
  address 10.32.96.31;
  port 519;
  peer address 10.32.96.32;
  peer port 520;
  max-response-delay 60;
  max-unacked-updates 10;
  mclt 3600;
  split 128;
  load balance max seconds 3;
}
option option-176 code 176 = string;	# global option for IPphones
include "/etc/dhcp/vlan-voip.conf";
include "/etc/dhcp/vlan-data.conf";

/etc/dhcp/vlan-voip.conf
subnet 10.32.96.0 netmask 255.255.255.0 {
  option domain-name "sxpbelux.net";
  option subnet-mask 255.255.252.0;
  default-lease-time 1209600;
  max-lease-time 2419200;
  option broadcast-address 10.32.96.255;
  option option-176
"MCIPADD=10.32.96.9,10.32.96.15,MCPORT=1719,TFTPSRVR=10.32.96.31,10.32.92.32";
  pool {
    failover peer "ucc-dhcp";
    range 10.32.96.51 10.32.96.254;
    deny dynamic bootp clients;
  }
}

/etc/dhcp/vlan-data.conf
option WPAD code 252 = string;

subnet 10.32.16.0 netmask 255.255.255.0 {
  option domain-name "sxpbelux.net";
  option subnet-mask 255.255.255.0;
  option broadcast-address 10.32.16.255;
  option domain-name-servers 10.32.16.2, 10.32.3.150;
  option routers 10.32.16.20;
  option option-176 "L2Q=1, L2QVLAN=92";
  option WPAD "http://ucc-proxy:8080/wpad.dat";
  pool {
    #failover peer "ucc-dhcp";
    max-lease-time 3600;
    range 10.32.16.226 10.32.16.250;
    #deny dynamic bootp clients;
  }
}


Thanks






More information about the dhcp-users mailing list