Re: [Dnsmasq-discuss] test DHCP clients
On Sat, Dec 29, 2018 at 10:00:50PM +0100, Geert Stappers wrote: > On Sat, Dec 29, 2018 at 07:49:34PM +0100, Geert Stappers wrote: > > Hi, > > > > What is your favorite / good enough DHCP test client? > > > > I use `dhtest` ( > https://sargandh.wordpress.com/2012/02/23/linux-dhcp-client-simulation-tool/ ) > > Test is `dhtest -m 00:00:11:22:33:44 -i eth0` > > At server side is dnsmasq. > With `dhcp-range=192.168.45.100,192.168.45.200` I do get replies. > With `dhcp-range=192.168.45.19,proxy` I don't. > > I would like to know if my "DHCP client" is wrong > or that I did misconfigure dnsmasq. > Both. Working dnsmasq.conf --- $ cat /etc/dnsmasq.conf # interface=eth0 pxe-service=123456789, "Install Linux", pxelinux,0 dhcp-range=172.24.0.63,proxy ## dhcp-range=172.24.0.30,172.24.0.40 dhcp-option=vendor:PXEClient,6,2b dhcp-boot=bootfilename.bin,nero.lan,172.24.0.54 log-dhcp enable-tftp tftp-root=/srv/tftpd port=0 --- Main difference against previous version is the 'pxe-service=' line. The 172.24.0.63 is the broadcast address ( my network is 172.24.0.0/26 ) To have that seen working, I did have to reboot a physical computer. So, yes, your advice for DHCP test client is still welcome. Groeten Geert Stappers -- Leven en laten leven ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] test DHCP clients
On Sun, Dec 30, 2018 at 03:36:29PM +0100, Geert Stappers wrote: > On Sat, Dec 29, 2018 at 10:00:50PM +0100, Geert Stappers wrote: > > On Sat, Dec 29, 2018 at 07:49:34PM +0100, Geert Stappers wrote: > > > Hi, > > > > > > What is your favorite / good enough DHCP test client? > > > > > > > I use `dhtest` ( > > https://sargandh.wordpress.com/2012/02/23/linux-dhcp-client-simulation-tool/ > > ) > > > > Test is `dhtest -m 00:00:11:22:33:44 -i eth0` > > > > At server side is dnsmasq. > > With `dhcp-range=192.168.45.100,192.168.45.200` I do get replies. > > With `dhcp-range=192.168.45.19,proxy` I don't. > > > > I would like to know if my "DHCP client" is wrong > > or that I did misconfigure dnsmasq. > > > > Both. > > Working dnsmasq.conf > --- > $ cat /etc/dnsmasq.conf > # interface=eth0 > > pxe-service=123456789, "Install Linux", pxelinux,0 > > dhcp-range=172.24.0.63,proxy > ## dhcp-range=172.24.0.30,172.24.0.40 > > dhcp-option=vendor:PXEClient,6,2b > > dhcp-boot=bootfilename.bin,nero.lan,172.24.0.54 > log-dhcp > > enable-tftp > tftp-root=/srv/tftpd > > port=0 > --- > > Main difference against previous version is the 'pxe-service=' line. > > The 172.24.0.63 is the broadcast address ( my network is 172.24.0.0/26 ) > > > To have that seen working, I did have to reboot a physical computer. Without reboot: sudo dhtest -m 00:00:11:22:33:44 -i eth0 \ -c 97,hex, -c 93,hex, -c 94,hex,010201 \ -o PXEClient:Arch:0:UNDI:002001 > So, yes, your advice for DHCP test client is still welcome. :-) Groeten Geert Stappers -- Leven en laten leven ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] test DHCP clients
On 29/12/2018 18:49, Geert Stappers wrote: What is your favorite / good enough DHCP test client? dhcpcd - if there's a relevant DHCP RFC it doesn't support, it's a bug. https://roy.marples.name/projects/dhcpcd # dhcpcd -dBT4 xennet0 dhcpcd-7.0.8 starting DUID 00:01:00:01:20:12:08:0c:fa:73:78:00:00:02 xennet0: IAID 78:00:00:02 xennet0: IA type 25 IAID 00:00:00:01 xennet0: delaying IPv4 for 0.2 seconds xennet0: reading lease `/var/db/dhcpcd/xennet0.lease' xennet0: rebinding lease of 10.73.1.62 xennet0: sending REQUEST (xid 0x1aaf4ef1), next in 4.0 seconds xennet0: no authentication from 10.73.0.1 xennet0: acknowledged 10.73.1.62 from 10.73.0.1 xennet0: leased 10.73.1.62 for 3600 seconds xennet0: executing `/libexec/dhcpcd-run-hooks' TEST interface=xennet0 pid=9670 protocol=dhcp reason=TEST ifcarrier=up ifflags=4294936675 ifmtu=1500 ifwireless=0 new_broadcast_address=10.73.255.255 new_classless_static_routes='1.2.3.4/32 10.73.2.13 0.0.0.0/0 10.73.2.1' new_dhcp_lease_time=3600 new_dhcp_message_type=5 new_dhcp_rebinding_time=3150 new_dhcp_renewal_time=1800 new_dhcp_server_identifier=10.73.0.1 new_domain_name=marples.name new_domain_name_servers=10.73.0.1 new_host_name=netbsd new_ip_address=10.73.1.62 new_network_number=10.73.0.0 new_routers=10.73.0.1 new_subnet_cidr=16 new_subnet_mask=255.255.0.0 old_broadcast_address=10.73.255.255 old_classless_static_routes='1.2.3.4/32 10.73.2.13 0.0.0.0/0 10.73.2.1' old_dhcp_lease_time=3600 old_dhcp_message_type=5 old_dhcp_rebinding_time=2925 old_dhcp_renewal_time=1575 old_dhcp_server_identifier=10.73.0.1 old_domain_name=marples.name old_domain_name_servers=10.73.0.1 old_host_name=netbsd old_ip_address=10.73.1.62 old_network_number=10.73.0.0 old_routers=10.73.0.1 old_subnet_cidr=16 old_subnet_mask=255.255.0.0 dhcpcd exited # ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] test DHCP clients
On Sun, Dec 30, 2018 at 07:30:42PM +, Roy Marples wrote: > On 29/12/2018 18:49, Geert Stappers wrote: > > What is your favorite / good enough DHCP test client? > > dhcpcd - if there's a relevant DHCP RFC it doesn't support, it's a bug. > https://roy.marples.name/projects/dhcpcd > https://roy.marples.name/git/dhcpcd.git/tree/src/if-options.c#n154 So a battle test DCHP client that has a test option. Nifty idea! Thanks for reporting. Groeten Geert Stappers -- Leven en laten leven ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss