Custom DHCP options
Sometimes, users need to pass custom options to client via dhcp.
A common option is a custom DNS server, but we might include every possible option. Maybe DNS could go to the panel (different DNS for every zone/interface) and other options to the db with a setprop.
dnsmasq.conf: add new DHCP options. Refs #3036New available options:
#4 Updated by Giacomo Sanchietti about 4 years ago
- Status changed from NEW to TRIAGED
- % Done changed from 0 to 20
- default gateway
- lease time
max lease time
- domain suffix
- dns servers
- wins servers
- tftp server
remove global option DhcpLeaseTime
- allow reservations on blue interfaces
- avoid configuration problems with many reservations by settings
#7 Updated by Giacomo Sanchietti about 4 years ago
- Status changed from MODIFIED to ON_QA
- Assignee deleted (
- % Done changed from 60 to 70
- Install the old package
- Configure at least one DHCP range
- Update the package, check the DHCP works correctly
- From test case 1
- Try to create a reservation on a green interface
- From test case 1
- Try to create a reservation on a blue interface
- Try to set the new options on a DHCP range
- Check the options are passed to clients (maybe you need a real environment to test this)
Command example for new options:
db dhcp setprop eth2 DhcpDNS 126.96.36.199,188.8.131.52 DhcpNTP 184.108.40.206,220.127.116.11 DhcpWINS 18.104.22.168,22.214.171.124 DhcpTFTP 126.96.36.199,188.8.131.52 DhcpDomain mydomain.com DhcpLeaseTime 4455 DhcpGatewayIP 184.108.40.206
#8 Updated by Filippo Carletti about 4 years ago
- Status changed from ON_QA to VERIFIED
- % Done changed from 70 to 90
I lost the formal verification output of all test cases, but everything was correct.
I have installed the update on a production system, changed some values and obtained a new lease.
In particular, I changed lease time from 1 to 2 days and here are the logs:
Lease time 1 day:
Aug 5 15:21:21 ns65 dhclient1156: bound to 192.168.5.55 -- renewal in 33860 seconds.
Lease time 2 days:
Aug 6 00:36:09 ns65 dhclient29753: bound to 192.168.5.55 -- renewal in 68992 seconds.