Services/DHCP

From popdata
Jump to: navigation, search

Back to Services

DHCP primary (only) on Champlain

  • /etc/dhcp/ contains single configuration file dhcpd.conf (before 2012-01-04 did include /etc/dhcpd.chspr => /etc/dhcp/dhcpd.chspr)
  • /etc/default/isc-dhcp-server specifies: INTERFACES="eth0"
  • Reload requires restart: /etc/init.d/isc-dhcp-server [start | stop | restart | force-reload | status
    • restart does: test_config; stop; sleep 2; start
  • Alternate safe test of config : /usr/sbin/dhcpd -t [Options: -d (debug to stdout); -cf ALT_CONFIG_FILE]
  • /var/lib/dhcp/dhcpd.leases
  • grep "dhcpd:" /var/log/daemon.log
  • 10.80.20.0/24 Popdata (1-254)
  • 10.30.10.0/24 CHSPR
  • 10.50.10.0/24 HELP
  • 10.60.10.0/24 SOEH
  • 10.80.10.0/24 Popdata Yellow1
  • 10.90.10.0/24 PD IT
  • 10.80.50.0/24 SRE
  • 10.80.52.0/24 RTL
  • 10.80.52.0/24 SRTL
  • 10.80.58.0/24 SHELP

DHCP secondary (future) on Cook

File /etc/dhcp/dhcpd.conf should contain the failover config (different on primary/secondary), and then include dhcpd.master (which should be identical on both servers).

https://deepthought.isc.org/article/AA-00502/0/A-Basic-Guide-to-Configuring-DHCP-Failover.html
4) Identify other network elements that will have to be aware of both servers. Configure DHCP relays to relay forwarded discovers and requests to both servers. Ensure that firewalls and filters allow DHCP traffic, OMAPI control channel traffic, and failover protocol messages to reach your servers.

http://pic.dhe.ibm.com/infocenter/tivihelp/v48r1/index.jsp?topic=%2Fcom.ibm.hslt.doc_1.1.2%2Finstalling%2Ft_config_failover.html

  • ... may have error in "mclt" on secondary, check MAN page
  • Copy dhcpd.conf, dhcpd.local, dhcpd.static from the primary server to /etc/dhcp and replace the existing ones, if any.
  • Copy the /etc/rndc.key from the primary server to the secondary. ???


  • Denis would like to use "split 256" so secondary answers no queries except when primary down.
  • Select name "failover-partner" . Using same name in both primary/secondary to identify "other" allows using identical configurations for all except the failover block.
  • "deny bootp client" in each pool.

RedZone DHCP on Franklin 10.180.10.110

  • log: /var/log/syslog
  • /etc/dhcp/dhcpd.conf
    • (obsolete) red1..25; rzvm1..16;
    • include /etc/ltsp/dhcpd.conf: 10.180.10.0/24 LTSP boot

Warnings

Champlain:/var/log/daemon.log

Feb 15 12:16:15 champlain dhcpd: WARNING: Host declarations are global.  They are not limited to the scope you declared them in.

The host declarations in /etc/dhcp/dhcpd.conf are for fixed addresses, e.g. in "subnet 10.80.10.0" "host denis-laptop.popdata.bc.ca { hardware ethernet 00:25:4b:c4:2d:52; fixed-address 10.80.10.245; [...]"

Jun 17 07:09:12 champlain dhcpd: uid lease 10.80.52.246 for client 00:50:56:b9:4f:47 is duplicate on 10.80.52.0/24                  
Jun 17 07:09:12 champlain dhcpd: DHCPREQUEST for 10.80.52.206 from 00:50:56:b9:4f:47 via 10.80.52.254                               
Jun 17 07:09:12 champlain dhcpd: DHCPACK on 10.80.52.206 to 00:50:56:b9:4f:47 via 10.80.52.254                                      

Cause: old dynamic leases for RTL and SRE VMs in /var/lib/dhcp/dhcpd.leases overridden by static leases in /etc/dhcp/dhcpd.conf . Old dynamic expiry ~2012/05/14, how to purge?