[ipxe-devel] bad behavior with ipv6 address in chain command

Michael Brown mcb30 at ipxe.org
Mon May 19 07:47:29 UTC 2014


On 19/05/14 08:29, Vasiliy Tolstov wrote:
>> Hello. I'm testing ipxe with ipv6 environment and see mismatches in
>> chain and kernel commands:
>>
>> this command filed : chain --replace --autofree
>> http://2001:db8:0:f101:92e2:baff:fe31:44d/conf/${uuid}.pxe
>>
>> this command works chain --replace --autofree
>> http://2001:db8:0:f101:92e2:baff:fe31:44d/conf/${uuid}.pxe
>>
>> In first case as i see ipv6 address treated like url, not like ip.
>>
>> Is that possible to fix this?
>
> Hmm as i see kernel also not works without [], does this expected?

You need to use square brackets around a literal IPv6 address in a URI 
(as per RFC2732).  For example:

     chain -ar http://[2001:db8:0:f101:92e2:baff:fe31:44d]/conf/${uuid}.pxe

You also need to have IPv6 support enabled via NET_PROTO_IPV6 in 
config/general.h.

Michael



More information about the ipxe-devel mailing list