[Dnsmasq-discuss] BOOTP/TFTP config
david.goodenough at linkchoose.co.uk
Wed Apr 25 11:22:57 BST 2007
On Friday 20 April 2007 19:06, Simon Kelley wrote:
> David Goodenough wrote:
> > I am trying to use dnsmasq (on Debian) to do BOOTP and TFTP in order to
> > netboot some Microtik RB112 boards. But I am having some problems.
> > I have the board on the other end of a USB ethernet adapter, quite
> > separate from the rest of my network to keep things simple.
> > I have configured the usb ethernet adapter to have an address of
> > 192.168.6.254.
> > In a local file I have a stripped down dnsmasq.conf which reads:-
> > # Configuration file for dnsmasq to boot rb100
> > #
> > interface=usb-rb1xx
> > dhcp-boot=vmlinux
> > dhcp-host=00:05:42:08:*.*,192.168.6.1
> > enable-tftp
> > tftp-root=/var/lib/tftpd/rb1xx
> > I then start dnsmasq with the following command:-
> > sudo dnsmasq -C dnsmasq.rb100 -d
> > But it never replies to the BOOTP request.
> > Anyone got any ideas as to how to get this running?
> You need to give a DHCP range, even if you only want explicitly
> allocated addresses. The presence of the dhcp-range flag enables the
> DHCP server for a particular subnet.
> and it will fly....
> > David
I tried that, and it still does not work. Firstly I found that the
ethernet address I was looking at was wrong, so I fixed that. Now
my dnsmasq.conf file looks like this:-
Inside wireshark monitoring the usb-rb1xx interface (which is configured
to have address 192.168.6.254) I get lots of lines all of which are the same
and wireshark displays as:-
No. Time Source Destination Protocol Info
1 0.000000 0.0.0.0 255.255.255.255 BOOTP Boot
Request from 00:0c:42:08:80:eb (Routerbo_08:80:eb)
Frame 1 (342 bytes on wire, 342 bytes captured)
Ethernet II, Src: Routerbo_08:80:eb (00:0c:42:08:80:eb), Dst: Broadcast
Internet Protocol, Src: 0.0.0.0 (0.0.0.0), Dst: 255.255.255.255
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
Message type: Boot Request (1)
Hardware type: Ethernet
Hardware address length: 6
Transaction ID: 0xccab0300
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
0... .... .... .... = Broadcast flag: Unicast
.000 0000 0000 0000 = Reserved flags: 0x0000
Client IP address: 0.0.0.0 (0.0.0.0)
Your (client) IP address: 0.0.0.0 (0.0.0.0)
Next server IP address: 0.0.0.0 (0.0.0.0)
Relay agent IP address: 0.0.0.0 (0.0.0.0)
Client MAC address: Routerbo_08:80:eb (00:0c:42:08:80:eb)
Server host name not given
Boot file name not given
Magic cookie: (OK)
Option: (t=60,l=9) Vendor class identifier = "Mikroboot"
Option: (60) Vendor class identifier
But silence comes the stern reply, these lines are all that appear.
More information about the Dnsmasq-discuss