[Dnsmasq-discuss] Changing tftp-path / file depending on tag?

Oliver Rath rath at mglug.de
Tue Jul 1 12:47:37 UTC 2014


Hi list,

i have a configuration here with 4 NICs. The config exports different
tftp-server addresses (dhcp-Byte 128) for correct resolving:


------------------ snip ------------------------------
dhcp-range=set:gw94,192.168.94.50,192.168.94.150,255.255.255.0,12h
dhcp-range=set:gw95,192.168.95.50,192.168.95.150,255.255.255.0,12h
dhcp-range=set:gw96,192.168.96.50,192.168.96.150,255.255.255.0,12h
dhcp-range=set:gw97,192.168.97.50,192.168.97.150,255.255.255.0,12h
dhcp-option=tag:gw94,128,192.168.94.254
dhcp-option=tag:gw95,128,192.168.95.254
dhcp-option=tag:gw96,128,192.168.96.254
dhcp-option=tag:gw97,128,192.168.97.254
dhcp-boot=undionly.kkkpxe
enable-tftp
tftp-root=/opt/dmi/tftproot
------------------ snap ------------------------------

Now i want to offer different "undionly.kkkpxe" for every subnet.

I think on something like

dhcp-boot=tag:gw94,undionly-94.kkkpxe
dhcp-boot=tag:gw95,undionly-95.kkkpxe
dhcp-boot=tag:gw96,undionly-96.kkkpxe
dhcp-boot=tag:gw97,undionly-97.kkkpxe

Is this possible?

Tfh!
OLiver




More information about the Dnsmasq-discuss mailing list