[Dnsmasq-discuss] Changing tftp-path / file depending on tag?
Linux Luser
linuxluser at gmail.com
Tue Jul 1 14:47:26 UTC 2014
If I understand you correctly, this configuration is being used on the
server with 4 NICs. If so, could you simply supply the addtional
*interface* parameter
to the tftp-root option? Something like ...
tftp-root=/opt/dmi/tftproot/gw94,eth0
tftp-root=/opt/dmi/tftproot/gw95,eth1
tftp-root=/opt/dmi/tftproot/gw96,eth2
tftp-root=/opt/dmi/tftproot/gw97,eth3
Of course, create those directories and add the correct files to each.
On Tue, Jul 1, 2014 at 5:47 AM, Oliver Rath <rath at mglug.de> wrote:
> 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
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20140701/b9d27f50/attachment.html>
More information about the Dnsmasq-discuss
mailing list