DHCP TFTP server ignored by clients
DHCP advanced setting option to set TFTP server is ignored by clients.
Revert "dhcp: fix tftp server syntax. Refs #3353"
This reverts commit 2584258d0513a6c24f982da92b7393c13d438f12.
Fixes forgotten push.
#1 Updated by Filippo Carletti over 4 years ago
- Status changed from NEW to TRIAGED
- Target version set to v6.7
- % Done changed from 0 to 20
- Affected version set to v6.7
The TFTP option is a string, not an ip address.
The correct syntax needs quotes.
From dnsmasq manual:
To force a literal string, use quotes. For instance when using option 66 to send a literal IP address as TFTP server name, it is necessary to do --dhcp-option=66,"220.127.116.11"
#4 Updated by Filippo Carletti over 4 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
If you have a tftp server in your lan, set it's ip in dhcp advanced options and check that your devices can boot.
Another option is to capture traffic on the dhcp server to check for the right option.
tcpdump -nn -p -i eth0 -s 1500 -v ether host 08:00:27:xx:xx:xx
where eth0 is the dhcp interface and 08:00:27... is the mac address of the dhcp client.
On the client, I used "dhclient -v -d enp0s3" to obtain the ip.
The packet captured in the server has the following lines:
Client-Ethernet-Address 08:00:27:xx:xx:xx sname "18.104.22.168"
where 22.214.171.124 is the tftp server I put in the dhcp page.
#7 Updated by Giacomo Sanchietti over 4 years ago
- Status changed from ON_QA to VERIFIED
- Assignee deleted (
- % Done changed from 70 to 90
Set DHCP on a blue interface, with TFTP server option "192.168.1.2".
[root@test1 cgp]# grep 192.168.1.2 /etc/dnsmasq.conf dhcp-option=eth3,66,192.168.1.2 # TFTP
[root@test1 cgp]# grep 192.168.1.2 /etc/dnsmasq.conf dhcp-option=eth3,option:tftp-server,"192.168.1.2"