dhcpcd-discuss

Re: Testing dhcpcd against TAHI (ipv6)

Shahid Mahmood

Thu Mar 24 19:47:25 2016

(PS: I am no longer getting emails on this topic for some reason, so I
missed the resonse)

On 23/03/2016 21:03, Shahid Mahmood wrote:
>> I am running dhcpcd in ipv6 mode and testing with TAHI test suite for
>> RFC3315.
>> Has anyone done this?
>>
>> for me, the very first test failed:
>>
>> "Part A : Valid Reply message in response to Request"
>>
>> dhcpcd is sending out "Router Solicitation" message at startup, where as
>> TAHI test (as per
>> RFC3315) expecting a "Solicit" with XID message.
>>
>> dhcpcd started with:
>> dhcpcd -6 eth0
>>
>> (This is an ARM based embedded device)
>>
>> dhclient e.g passes this test and sends out "Solicit XID:xx" right off
>> the bat.
>>
>> Is there something I am missing?

>Yes - dhcpcd will not start DHCPv6 by default unless instructed to in
>dhcpcd.conf (and not the stock dhcpcd.conf either) OR an IPv6 RA says
>start DHCPv6 for Other or Managed.

>You can start DHCPv6 by requesting a IA_NA, IA_TA or IA_PD.
>Here is an example

>interface eth0
>ia_na

Thanks, I did that. And dhcpcd did start out by sending 'Solicit' message
as expected.
However, the test failed at the followup steps:

       NUT      TN
        |       |
        | ----> |*Solicit* (1*)
        | <---- |*Advertise*
        | ----> |*Request* (3*)
        | <---- |*Reply*
        |       |
        | ----> |*DAD NS* (5*)
        |       |
        | <---- |*Echo Request*
        | ----> |*Echo Reply* (7*)

(NUT = dhcp client, running dhcpcd, TN = test node, running the TAHI test)


  (1*)PASS: TN receives Solicit from NUT.
  (3*)PASS: TN receives Request form NUT.
  (5*)PASS: TN receives DAD NS from NUT.
  (7*)FAILED: NUT should send Echo Reply to TN.

Looks like IP addresses is not being assigned to the interface?

Follow-Ups:
Re: Re: Testing dhcpcd against TAHI (ipv6)Roy Marples
Re: Re: Testing dhcpcd against TAHI (ipv6)Roy Marples
Archive administrator: postmaster@marples.name