1795
Comment:
|
2055
dhcp.leases => dhcpd.leases
|
Deletions are marked like this. | Additions are marked like this. |
Line 9: | Line 9: |
DHCP runs on madako and its configuration file lives at {{{/etc/dhcp3/dhcpd.conf}}}. The same file is used for both assigning static addresses to clubroom machines (by MAC address) and to assign addresses from a pool to wireless clients and unknown new devices on the wired network. How to assign static IP addresses should be fairly self-evident from the plethora of other machines already set up with static addresses, but the rest is ''caveat immutor''. | DHCP runs on madako and its configuration file lives at {{{/etc/dhcp/dhcpd.conf}}}. The same file is used for both assigning static addresses to clubroom machines (by MAC address) and to assign addresses from a pool to wireless clients and unknown new devices on the wired network. How to assign static IP addresses should be fairly self-evident from the plethora of other machines already set up with static addresses, but note that the IP address for any machine is inferred from DNS, not specified explicitly in the configuration file. |
Line 11: | Line 11: |
How can we see the current leases? | Leases are visible in {{{/var/lib/dhcp/dhcpd.leases}}} - unfortunately because of ISC DHCP stupidness expired leases are still listed in this file and so you have to go digging around to find the most recent one. |
As well as traditional routing, switching and filtering, UCC runs a number of network services to make life easier.
DNS
There is a BIND 9 installation on mooneye, with domain data stored in /etc/bind/domains. To make DNS administration (ostensibly) simpler, A records for the ucc.asn.au and ucc.gu.uwa.edu.au zones, and reverse lookups for UCC's subnets are managed through one file, /etc/bind/domains/primary/ucc.machines. From this, a UCC-made script called zonemake.py creates the actual zonefile to be loaded by BIND. The syntax for ucc.machines is fairly simple, and there is some documentation in /etc/bind/domains/primary. Server administration is in /etc/bind/named.conf.local. If you modify ucc.machines remember to run zonemake.py. If you modify anything, remember to run rndc reload to make sure your changes are loaded (also remember to increment the serial in the zonefile you're editing - but you already knew that, right?). Some wheel members find it useful to watch daemon.log to catch any errors in configuration as the server reloads. A good policy is to always run:
rndc reload && tail -f /var/log/daemon.log
after you have been fiddling with DNS.
DHCP
DHCP runs on madako and its configuration file lives at /etc/dhcp/dhcpd.conf. The same file is used for both assigning static addresses to clubroom machines (by MAC address) and to assign addresses from a pool to wireless clients and unknown new devices on the wired network. How to assign static IP addresses should be fairly self-evident from the plethora of other machines already set up with static addresses, but note that the IP address for any machine is inferred from DNS, not specified explicitly in the configuration file.
Leases are visible in /var/lib/dhcp/dhcpd.leases - unfortunately because of ISC DHCP stupidness expired leases are still listed in this file and so you have to go digging around to find the most recent one.