[Dnsmasq-discuss] problem with dnsmasq and pxe boot
tat at riseup.net
tat at riseup.net
Wed Mar 22 09:06:09 GMT 2006
Hello,
I try to configure dnsmasq to send information to PXEClients,
so far it hasn't worked.
I have set up a dhcp3d on a other debian box, this serves the PXEClients
without problem, than i run ethereal and captired the dhcp REQUEST
and RESPONSE from both hosts, the packets i captured don't really differ.
I also checked if the PXEClient actually requests the tftpd for the boot
file, it is not ( ofcourse it does when run with dhcp3d, just nut when i
use dnsmasq ).
Any idea what i could do wrong?
dnsmasq
Version: 2.22
Architectur: MIPS (openwrt)
I added the captured packets(text dump) from ethereal and my dnsmasq.conf.
Plus i atached a ethereal capture file with two packets,
package 1 (IP 192.168.99.5) = dhcp3d
package 2 (IP 192.168.99.1) = dnsmasq
here is the packet from dhcp3d
______________________________dhcp3d_packet_dump_______________
Message type: Boot Reply (2)
Hardware type: Ethernet
Hardware address length: 6
Hops: 0
Transaction ID: 0x8ca1ea6f
Seconds elapsed: 1024
Bootp flags: 0x8000 (Broadcast)
1... .... .... .... = Broadcast flag: Broadcast
.000 0000 0000 0000 = Reserved flags: 0x0000
Client IP address: 0.0.0.0 (0.0.0.0)
Your (client) IP address: 192.168.99.250 (192.168.99.250)
Next server IP address: 192.168.99.5 (192.168.99.5)
Relay agent IP address: 0.0.0.0 (0.0.0.0)
Client MAC address: 192.168.99.14 (00:50:8b:a1:ea:6f)
Server host name: fai
Boot file name: pxelinux.0
Magic cookie: (OK)
Option 53: DHCP Message Type = DHCP Offer
Option 54: Server Identifier = 192.168.99.5
Option 51: IP Address Lease Time = 12 hours
Option 1: Subnet Mask = 255.255.255.0
Option 3: Router = 192.168.99.1
End Option
Padding
-------------------------------------------------------------------------
Here is the dnsmasq packet
___________________________dnsmasq_packet_dump___________________________
Message type: Boot Reply (2)
Hardware type: Ethernet
Hardware address length: 6
Hops: 0
Transaction ID: 0x8ca1ea6f
Seconds elapsed: 1024
Bootp flags: 0x8000 (Broadcast)
1... .... .... .... = Broadcast flag: Broadcast
.000 0000 0000 0000 = Reserved flags: 0x0000
Client IP address: 0.0.0.0 (0.0.0.0)
Your (client) IP address: 192.168.99.14 (192.168.99.14)
Next server IP address: 192.168.99.5 (192.168.99.5)
Relay agent IP address: 0.0.0.0 (0.0.0.0)
Client MAC address: 192.168.99.14 (00:50:8b:a1:ea:6f)
Server host name: fai
Boot file name: pxelinux.0
Magic cookie: (OK)
Option 53: DHCP Message Type = DHCP Offer
Option 54: Server Identifier = 192.168.99.1
Option 51: IP Address Lease Time = 11 hours, 58 minutes, 52 seconds
Option 58: Renewal Time Value = 5 hours, 59 minutes, 26 seconds
Option 59: Rebinding Time Value = 10 hours, 29 minutes
Option 1: Subnet Mask = 255.255.255.0
Option 3: Router = 192.168.99.1
End Option
Padding
-------------------------------------------------------------------------
I don't see a real difference between, but dhcp3d is working and dnsmasq
not.
Here is my dnsmasq.conf
______________________________/etc/dnsmasq.conf______________________
# filter what we send upstream
domain-needed
bogus-priv
filterwin2k
localise-queries
# to skip the .lan entries in the host file
expand-hosts
# allow /etc/hosts and dhcp lookups via *.ram
local=/ram/
domain=ram
# enable dhcp (start,end,netmask,leasetime)
dhcp-authoritative
dhcp-range=192.168.99.100,192.168.99.250,255.255.255.0,12h
dhcp-leasefile=/tmp/dhcp.leases
# use /etc/ethers for static hosts; same format as --dhcp-host
# <hwaddr> [<hostname>] <ipaddr>
read-ethers
# other useful options:
# default route(s): dhcp-option=3,192.168.1.1,192.168.1.2
# dns server(s):
dhcp-option=6,192.168.99.1
# tftp server options
dhcp-boot=pxelinux.0,fai,192.168.99.5
#dhcp-option=17,/var/lib/lessdisks # root-path
#dhcp-option=42,192.168.99.1 # ntp-server
#dhcp-option=48,192.168.99.1 # font-server
#dhcp-option=49,192.168.99.1 # x-display-manager
#dhcp-option=66,fai # tftp-server-name
#dhcp-option=pxe,67,pxelinux.0 # bootfile-name
#dhcp-option=69,192.168.99.1 # smtp-server
-------------------------------------------------------------------------
__ __
_/ |______ _/ |_
\ __\__ \\ __\
| | / __ \| |
|__| (____ /__|
\/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fai+ram_compare
Type: application/octet-stream
Size: 382 bytes
Desc: not available
Url : http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20060322/fba5aaad/fairam_compare.obj
More information about the Dnsmasq-discuss
mailing list