[ipxe-devel] IPv6 is broken in iPXE

Pali Rohár pali.rohar at gmail.com
Mon Mar 18 17:16:31 UTC 2019


On Monday 18 March 2019 12:42:46 Michael Brown wrote:
> On 05/03/2019 18:45, Pali Rohár wrote:
> > > Just reminder, that this problem is still present in the current git
> > > repository. Is there any progress? Or do you need some other details?
> > > 
> > > I guess that above reproducer should be enough for debugging...
> > 
> > Hello! Has somebody looked at broken IPv6 in iPXE?
> 
> Based on the "route" output that you sent me, your network is using only
> IPv6 ULA addresses, which are not globally routable.  Your network does not
> have IPv6 connectivity to the outside world.

This is not truth, I have access to both IPv4 and IPv6 Internet. As
wrote all other applications are working with with IPv6. Just ipxe has
problem. But that output was from real machine connected to IPv6 network.

======

Below is output from ipxe started in qemu, in the reproducible way as
described in the first post. So you can verify that problem is also when
running in qemu, not only on real machine.


$ git clone git://git.ipxe.org/ipxe.git
$ cd ipxe/src
$ sed 's/#undef\tNET_PROTO_IPV6/#define\tNET_PROTO_IPV6/' -i config/general.h
$ make -j8 bin/rtl8139.rom
$ qemu-system-x86_64 -netdev user,id=n1 -device rtl8139,netdev=n1,romfile=bin/rtl8139.rom -boot order=n -curses

SeaBIOS (version 1.10.2-1)


iPXE (http://ipxe.org) 00:03.0 CA00 PCI2.10 PnP PMM+07F91DD0+07ED1DD0
CA00


iPXE (PCI 00:03.0) starting execution...ok
iPXE initialising devices...ok



iPXE 1.0.0+ (ebf2) -- Open Source Network Boot Firmware --
http://ipxe.org
Features: DNS HTTP iSCSI TFTP AoE ELF MBOOT PXE bzImage Menu PXEXT

iPXE> dhcp
Configuring (net0 52:54:00:12:34:56)...... ok
iPXE> route
net0: 10.0.2.15/255.255.255.0 gw 10.0.2.2
net0: fec0::5054:ff:fe12:3456/64 gw fe80::2
net0: fe80::5054:ff:fe12:3456/64
iPXE> show net0/ip
net0.dhcp/ip:ipv4 = 10.0.2.15
iPXE> show net0/ip6
net0.ndp.0/ip6:ipv6 = fec0::5054:ff:fe12:3456
iPXE> 


Those addresses are used by qemu itself (I guess it is doing some IPv6
NAT, like for IPv4) and ipxe has somehow problems...

As it even cannot access IPv4 world.

======

So can somebody else reproduce that this is a real problem on *working*
IPv6 network when running ipxe in qemu? I think it should be easy, as it
is needed to execute just 5 commands.

-- 
Pali Rohár
pali.rohar at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20190318/4b398532/attachment.sig>


More information about the ipxe-devel mailing list