Re: [Dnsmasq-discuss] DHCPv6 solicit ignored by dnsmasq after UEFI -> iPXE -> Deploy ramdisk

2019-11-21 Thread Geert Stappers
On Thu, Nov 21, 2019 at 07:16:40PM +0100, Harald Jensås wrote:
> On Tue, 2019-11-12 at 16:56 +0100, Harald Jensås wrote:
> > When using DHCP-stateful addressing, radvd config below, UEFI
> > succesfully request/advertize 2x IP's and downloads the bootimage
> > (iPXE). UEFI (OVMF) then releases the addresses and iPXE then boots.
> > 
> > iPXE does one request/advertize and dowloads and boot the deploy
> > ramdisk (CentoOS 7). dhclient in CentOS 7 starts logging: "XMT:
> > Solicit
> > on eth0, interval ...", dnsmasq ignores the DHCPv6 Solicit messages?
> > I
> > don't understand why it's ignored? (Config files, and annotated
> > traffic
> > dump + dnsmasq logs below.)
> > 
> 
> This turned out to be an issue with nic device model's used on virtual
> machines in my lab. Using virtio instead of e1000 solved the problem.
 
Thanks for reporting that.

> Sorry about the noise.

I wish more people report back on the issue they reported.


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


[Dnsmasq-discuss] DHCPv6 solicit ignored by dnsmasq after UEFI -> iPXE -> Deploy ramdisk

2019-11-12 Thread Harald Jensås
When using DHCP-stateful addressing, radvd config below, UEFI
succesfully request/advertize 2x IP's and downloads the bootimage
(iPXE). UEFI (OVMF) then releases the addresses and iPXE then boots.

iPXE does one request/advertize and dowloads and boot the deploy
ramdisk (CentoOS 7). dhclient in CentOS 7 starts logging: "XMT: Solicit
on eth0, interval ...", dnsmasq ignores the DHCPv6 Solicit messages? I
don't understand why it's ignored? (Config files, and annotated traffic
dump + dnsmasq logs below.)


radvd.conf
--
interface eth0 {
  AdvSendAdvert on;
  AdvManagedFlag on;
  AdvOtherConfigFlag on;
  AdvRASolicitedUnicast on;
  prefix fd12:3456:789a:1::1/64 {
AdvAutonomous off;
AdvOnLink on;
  };
};

dnsmasq.conf

port=0
interface=br-ctlplane

dhcp-range=set:ctlplane-
subnet,fd12:3456:789a:1::,fd12:3456:789a:1::afff,64,10m
dhcp-option-force=tag:ctlplane-subnet,option:mtu,1450
dhcp-sequential-ip
dhcp-match=ipxe,175
dhcp-match=set:efi,option:client-arch,7
dhcp-match=set:efi,option:client-arch,9
dhcp-match=set:efi,option:client-arch,11
# dhcpv6s for Client System Architecture Type (61)
dhcp-match=set:efi6,option6:61,0007
dhcp-match=set:efi6,option6:61,0009
dhcp-match=set:efi6,option6:61,0011
dhcp-userclass=set:ipxe6,iPXE
# Client is already running iPXE; move to next stage of chainloading
dhcp-boot=tag:ipxe,http://[fd12:3456:789a:1::1]:8088/inspector.ipxe
dhcp-option=tag:ipxe6,option6:bootfile-url,
http://[fd12:3456:789a:1::1]:8088/inspector.ipxe
# Client is PXE booting over EFI without iPXE ROM; send EFI version of
iPXE chainloader
dhcp-boot=tag:efi,tag:!ipxe,ipxe.efi
dhcp-option=tag:efi6,tag:!ipxe6,option6:bootfile-url,t
ftp://[fd12:3456:789a:1::1]/ipxe.efi
# Client is running PXE over BIOS; send BIOS version of iPXE
chainloader
dhcp-boot=undionly.kpxe,localhost.localdomain,fd12:3456:789a:1::1

dhcp-hostsdir=/var/lib/ironic-inspector/dhcp-hostsdir





Immedeatly (OVFM initialize) and get's an IP



# Packet 3 from /home/hjensas/captur.pcap
- 4
- 2.200296
- fe80::5054:ff:fe3f:5cc0
- ff02::1:2
- DHCPv6
- 116
- Solicit XID: 0xc69bce CID: 000490b3fe05c8ed7342a57d55a04f57ed5c 
Nov 12 15:44:28 dnsmasq-dhcp[7]: DHCPSOLICIT(br-ctlplane)
00:04:90:b3:fe:05:c8:ed:73:42:a5:7d:55:a0:4f:57:ed:5c


# Packet 4 from /home/hjensas/captur.pcap
- 5
- 2.201402
- fe80::5054:ff:fe49:dbf9
- fe80::5054:ff:fe3f:5cc0
- DHCPv6
- 168
- Advertise XID: 0xc69bce CID: 000490b3fe05c8ed7342a57d55a04f57ed5c
IAA: fd12:3456:789a:1::
Nov 12 15:44:28 dnsmasq-dhcp[7]: DHCPADVERTISE(br-ctlplane)
fd12:3456:789a:1::
00:04:90:b3:fe:05:c8:ed:73:42:a5:7d:55:a0:4f:57:ed:5c 


# Packet 5 from /home/hjensas/captur.pcap
- 6
- 2.202095
- fe80::5054:ff:fe3f:5cc0
- ff02::1:2
- DHCPv6
- 162
- Request XID: 0xc79bce CID: 000490b3fe05c8ed7342a57d55a04f57ed5c IAA:
fd12:3456:789a:1:: 
Nov 12 15:44:28 dnsmasq-dhcp[7]: DHCPREQUEST(br-ctlplane)
00:04:90:b3:fe:05:c8:ed:73:42:a5:7d:55:a0:4f:57:ed:5c 


# Packet 6 from /home/hjensas/captur.pcap
- 7
- 2.206348
- fe80::5054:ff:fe49:dbf9
- fe80::5054:ff:fe3f:5cc0
- DHCPv6
- 163
- Reply XID: 0xc79bce CID: 000490b3fe05c8ed7342a57d55a04f57ed5c IAA:
fd12:3456:789a:1:: 

Nov 12 15:44:28 dnsmasq-dhcp[7]: DHCPREPLY(br-ctlplane)
fd12:3456:789a:1::
00:04:90:b3:fe:05:c8:ed:73:42:a5:7d:55:a0:4f:57:ed:5c 

Once IPv4 Fails. OVFM does another request and doewnload bootfile.
##


# Packet 12 from /home/hjensas/captur.pcap
- 13
- 59.909240
- fe80::5054:ff:fe3f:5cc0
- ff02::1:2
- DHCPv6
- 177
- Solicit XID: 0xc89bce CID: 000490b3fe05c8ed7342a57d55a04f57ed5c 
Nov 12 15:45:26 dnsmasq-dhcp[7]: DHCPSOLICIT(br-ctlplane)
00:04:90:b3:fe:05:c8:ed:73:42:a5:7d:55:a0:4f:57:ed:5c 


# Packet 13 from /home/hjensas/captur.pcap
- 14
- 59.910248
- fe80::5054:ff:fe49:dbf9
- fe80::5054:ff:fe3f:5cc0
- DHCPv6
- 209
- Advertise XID: 0xc89bce CID: 000490b3fe05c8ed7342a57d55a04f57ed5c
IAA: fd12:3456:789a:1::aaab 
Nov 12 15:45:26 dnsmasq-dhcp[7]: DHCPADVERTISE(br-ctlplane)
fd12:3456:789a:1::aaab
00:04:90:b3:fe:05:c8:ed:73:42:a5:7d:55:a0:4f:57:ed:5c 


# Packet 14 from /home/hjensas/captur.pcap
- 15
- 64.900995
- fe80::5054:ff:fe3f:5cc0
- ff02::1:2
- DHCPv6
- 223
- Request XID: 0xc99bce CID: 000490b3fe05c8ed7342a57d55a04f57ed5c IAA:
fd12:3456:789a:1::aaab 
Nov 12 15:45:31 dnsmasq-dhcp[7]: DHCPREQUEST(br-ctlplane)
00:04:90:b3:fe:05:c8:ed:73:42:a5:7d:55:a0:4f:57:ed:5c 


# Packet 15 from /home/hjensas/captur.pcap
- 16
- 64.906111
- fe80::5054:ff:fe49:dbf9
- fe80::5054:ff:fe3f:5cc0
- DHCPv6
- 204
- Reply XID: 0xc99bce CID: 000490b3fe05c8ed7342a57d55a04f57ed5c IAA:
fd12:3456:789a:1::aaab 
Nov 12 15:45:31 dnsmasq-dhcp[7]: DHCPREPLY(br-ctlplane)
fd12:3456:789a:1::aaab
00:04:90:b3:fe:05:c8:ed:73:42:a5:7d:55:a0:4f:57:ed:5c 


Prior to booting boofile, OVMF releases both IP's.
##


# Packet 16 from /home/hjensas/captur.pcap
- 17
-