ISC DHCP po druhé

Ivan Dolnák ivan.dolnak at gmail.com
Thu Nov 24 15:13:30 CET 2011


Ahoj,

ešte jedna záležitosť s ISC DHCP. Mám definovaný primárny a záložný
DHCP server. Ako vidno podľa konfigurácie, jednotlivé servery si
rozdelia pool adries na polovicu, pričom pre každý z poolov používam
funkciu failover. Moj problém však je, že na základe nasledujúcej
konfigurácie po strate konektivity jedného zo serverov nedostávajú
používatelia s deklaráciou HOST a fixnou adresou z rozsahu range, ale
samozrejme mimo dynamického poolu predvolenú fixovanú IP adresu.
Pravdepodobne ide o moje nedokonalé pochopenie failover funkcie,
pretože v konfiguračných súboroch chybu skutočne nevidím. Vedel by
niekto poradiť/pomôcť?

Ďakujem.

Ivan

failover peer "shared_pool" {
  primary;
  address 10.0.214.233;
  port 647;
  peer address 10.0.214.60;
  peer port 647;
  max-response-delay 60;
  max-unacked-updates 10;
  mclt 3600; # only on primary
  split 128; # only on primary
  load balance max seconds 3;
}

failover peer "shared_pool" {
  secondary;
  address 10.0.214.60;
  port 647;
  peer address 10.0.214.233;
  peer port 647;
  max-response-delay 60;
  max-unacked-updates 10;
  # mclt 3600; # only on primary
  # split 128; # only on primary
  load balance max seconds 3;
}

ĎALEJ:

option domain-name "nieco.nieco.sk";
option domain-name-servers 10.0.214.1, 10.0.227.227, 10.0.213.10;

default-lease-time 28800; # 8 hours
max-lease-time 43200;     # 12 hours

min-lease-time 600;       # 10 minutes
adaptive-lease-time-threshold 95;

authoritative;

log-facility local7;

shared-network "shared-net-214-227" {
  subnet 10.0.214.0 netmask 255.255.255.0 {
    option routers 10.0.214.56;
    pool {
      range 10.0.214.161 10.0.214.169;
      range 10.0.214.171 10.0.214.189;
      ddns-update-style none;
      deny dynamic bootp clients;
      failover peer "shared_pool";
      default-lease-time 1200; # 20 minutes
      max-lease-time 3600;     # 1 hour
    }
  }
  subnet 10.0.227.0 netmask 255.255.255.0 {
    option routers 10.0.227.1;
    pool {
      range 10.0.227.240 10.0.227.254;
      ddns-update-style none;
      deny dynamic bootp clients;
      failover peer "shared_pool";
      default-lease-time 1200; # 20 minutes
      max-lease-time 3600;     # 1 hour
    }
  }
}

subnet 10.0.228.0 netmask 255.255.255.128 {
  option routers 10.0.228.1;
  pool {
    range 10.0.228.100 10.0.228.126;
    ddns-update-style none;
    deny dynamic bootp clients;
    failover peer "shared_pool";
  }
}

subnet 10.107.0.0 netmask 255.255.255.0 {
  option routers 10.107.0.1;
  pool {
    range 10.107.0.100 10.107.0.254;
    deny dynamic bootp clients;
    deny unknown-clients;
    failover peer "shared_pool";
  }
}

subnet 10.109.0.0 netmask 255.255.255.0 {
  option routers 10.109.0.1;
  pool {
    range 10.109.0.100 10.109.0.254;
    deny dynamic bootp clients;
    deny unknown-clients;
    failover peer "shared_pool";
  }
}


More information about the Users-l mailing list