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 almost 5 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 almost 5 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 22.214.171.124,126.96.36.199 DhcpNTP 188.8.131.52,184.108.40.206 DhcpWINS 220.127.116.11,18.104.22.168 DhcpTFTP 22.214.171.124,126.96.36.199 DhcpDomain mydomain.com DhcpLeaseTime 4455 DhcpGatewayIP 188.8.131.52
#8 Updated by Filippo Carletti almost 5 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.