[Dnsmasq-discuss] vendorclass
Dirk Stichling
dirk.stichling at gmx.de
Thu Feb 23 07:34:39 GMT 2006
Hi.
> > I have the following problem:
> > My DHCP-client has a two stage boot procedure. During the first stage it
> > sends a BOOTP-Request with no vendorclass. During the second stage it
> > sends another BOOTP-Request with a vendorclass (containing the word
> > box). During the first stage dnsmasq shall answer with a bootfile
> > "u-boot" und during the second stage it shall answer with a bootfile
> > "kernel".
> > I tried different configurations, e.g.:
> >
> > dhcp-vendorclass=kernel,box
> > dhcp-boot=u-boot,niagara
> > dhcp-boot=net:kernel,kernel,niagara
> >
> > But dnsmasq always sends u-boot.
> >
> > Is there a way to configure my scenario?
>
> If your client is doing DHCP, that should work fine, but your mention of
> "BOOTP-Request" might imply that one or both of these interactions might
> BOOTP, and not DHCP. If so, the vendorclass facility is not enabled
> for BOOTP.
>
> Please could you clarify if we are talking about DHCP or BOOTP here (If
> you are not sure, then check your logs, dnsmasq logs BOOTP and DHCP
> differently.)
Here is the log:
Feb 22 21:33:54 (none) local0.info dnsmasq: started, version 2.22 cachesize
150
Feb 22 21:33:54 (none) local0.info dnsmasq: DHCP, IP range 10.0.1.100 --
10.0.1.200, lease time 2h
Feb 22 21:33:54 (none) local0.info dnsmasq: using local addresses only for
domain tichel.local
Feb 22 21:33:54 (none) local0.info dnsmasq: read /etc/hosts - 5 addresses
Feb 22 21:33:54 (none) local0.info dnsmasq: reading /etc/resolv.conf
Feb 22 21:33:54 (none) local0.info dnsmasq: using nameserver 10.0.1.1#53
Feb 22 21:33:54 (none) local0.info dnsmasq: using local addresses only for
domain tichel.local
Feb 22 21:34:00 (none) local0.info dnsmasq: BOOTP(eth0) 10.0.1.41
00:50:9c:2a:69:ed
Feb 22 21:34:01 (none) daemon.notice atftpd[1839]: Serving u-boot to
10.0.1.41:2001
Feb 22 21:34:02 (none) local0.info dnsmasq: DHCPDISCOVER(eth0)
00:50:9c:2a:69:ed
Feb 22 21:34:02 (none) local0.info dnsmasq: DHCPOFFER(eth0) 10.0.1.41
00:50:9c:2a:69:ed
Feb 22 21:34:02 (none) local0.info dnsmasq: DHCPREQUEST(eth0) 10.0.1.41
00:50:9c:2a:69:ed
Feb 22 21:34:02 (none) local0.info dnsmasq: DHCPACK(eth0) 10.0.1.41
00:50:9c:2a:69:ed
Feb 22 21:34:03 (none) daemon.notice atftpd[1840]: Serving logo-lcd to
10.0.1.41:1506
Feb 22 21:34:03 (none) local0.info dnsmasq: DHCPDISCOVER(eth0)
00:50:9c:2a:69:ed
Feb 22 21:34:03 (none) local0.info dnsmasq: DHCPOFFER(eth0) 10.0.1.41
00:50:9c:2a:69:ed
Feb 22 21:34:03 (none) local0.info dnsmasq: DHCPREQUEST(eth0) 10.0.1.41
00:50:9c:2a:69:ed
Feb 22 21:34:03 (none) local0.info dnsmasq: DHCPACK(eth0) 10.0.1.41
00:50:9c:2a:69:ed
Feb 22 21:34:03 (none) daemon.notice atftpd[1841]: Serving logo-fb to
10.0.1.41:2091
Feb 22 21:34:07 (none) local0.info dnsmasq: DHCPDISCOVER(eth0)
00:50:9c:2a:69:ed
Feb 22 21:34:07 (none) local0.info dnsmasq: DHCPOFFER(eth0) 10.0.1.41
00:50:9c:2a:69:ed
Feb 22 21:34:07 (none) local0.info dnsmasq: DHCPREQUEST(eth0) 10.0.1.41
00:50:9c:2a:69:ed
Feb 22 21:34:07 (none) local0.info dnsmasq: DHCPACK(eth0) 10.0.1.41
00:50:9c:2a:69:ed
Feb 22 21:34:07 (none) daemon.notice atftpd[1842]: Serving u-boot to
10.0.1.41:3023
Thanks,
Dirk
More information about the Dnsmasq-discuss
mailing list