dhcpcd-discuss

Re: Testing dhcpcd against TAHI (ipv6)

Shahid Mahmood

Tue Mar 29 13:35:53 2016

(I am unable to access http://roy.marples.name or the mailing list archive,
so not sure if my last post ever reached the server. Sending again).
-----
Full log is not possible as the testing unit take control of the target
device over serial port. I assigned an ipv4 address manually to query
adapter status.

My annotation begins with ##SM:
"TN" = Tahi test machine (test node)
"NUT" = Target device under test.

Summary of test:

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

##SM: Target failed to send Echo Reply because it does not have global IP
assigned.

----------------
## DEBUG ##
# cat dhcpcd.conf
interface eth0
ia_na
----------------

Here is the sequence of test steps.

TAHI logs into the target over serial port:
--------------------------
This system is restricted solely to authorized users for legitimate
business purposes only. The actual or attempted unauthorized access, use,
or modification of this system is strictly prohibited.

Unauthorized users are subject to company disciplinary procedures and or
criminal and civil penalties under state, federal, or other applicable
domestic and foreign laws.

The use of this system may be monitored and recorded for administrative and
security reasons. Anyone accessing this system expressly consents to such
monitoring and recording, and is advised that if it reveals possible
evidence of criminal activity, the evidence of such activity may be
provided to law enforcement officials. All users must comply with all
corporate instructions regarding the protection of information assets.

(none) login: root

##SM: next few commands are done on target in preparation of the test.

# rm -f /var/lib/dhcpcd/*
# echo $?
0
# dhcpcd -x
dhcpcd not running
# echo $?
1
# killall -TERM dhcpcd
killall: dhcpcd: no process killed
# echo $?
1
# ~


##SM: TAHI says "Send RA(M flag=1): ROUTER --> ALL"
##SM: TAHI says "Wait 5 sec"
##SM: TAHI says "Send Echo Request: SERVER1 --> NUT (Addr1 by RA)"
##SM: TAHI says "Server1 could not receive Echo Reply from NUT."
##SM: Its ok, because this was expected.

##SM: TAHI initiates dhcpcd...
#
# rm -f /var/lib/dhcpcd/*
# echo $?
0
# dhcpcd -x
dhcpcd not running
# echo $?
1
# killall -TERM dhcpcd
killall: dhcpcd: no process killed
# echo $?
1
# /sbin/dhcpcd -6 -f /AvayaDir/home/root/dhcpcd.conf eth0 &
# echo $?
0
# script_runreason: /libexec/dhcpcd-run-hooks: WEXITSTATUS 127
script_runreason: /libexec/dhcpcd-run-hooks: WEXITSTATUS 127
DUID 00:01:00:01:1e:85:14:af:6c:a8:49:86:5c:59
eth0: IAID 49:86:5c:59
eth0: soliciting a DHCPv6 lease
eth0: soliciting an IPv6 router

##SM: TAHI says "Receive DHCPv6 Solicit Message"
##SM: TAHI says "Send DHCPv6 Advertise Message: SERVER1 --> NUT"
##SM: TAHI says: ..
        Advertise Message
        DHCPv6 Option    Values
        Opt_DHCPv6_CID    DUID-LLT HardwareType = 1
        DUID-LLT MAC = 6c:a8:49:86:5c:59
        DUID-LLT TIME = 512038063
        Opt_DHCPv6_IA_NA    Option 1
        Identifier= 1233542233
        T1= 50
        T2= 80
        #IA_Addr Option
        Addr= 3ffe:501:ffff:100::abcd
        PreferredLifetime= 100
        ValidLifetime= 200
        Identifier    Identifier = 5699231
        Opt_DHCPv6_SID    DUID-LLT HardwareType = 1
        DUID-LLT MAC = 00:00:00:00:a1:a1
        DUID-LLT TIME = 400000

##SM: TAHI says "got DHCPv6 Request Message"
##SM: TAHI says "Send DHCPv6 Reply Message: SERVER1 --> NUT"
##SM: TAHI says ...
        Reply Message
        DHCPv6 Option    Values
        Opt_DHCPv6_CID    DUID-LLT HardwareType = 1
        DUID-LLT MAC = 6c:a8:49:86:5c:59
        DUID-LLT TIME = 512038063
        Opt_DHCPv6_IA_NA    Option 1
        Identifier= 1233542233
        T1= 50
        T2= 80
        #IA_Addr Option
        Addr= 3ffe:501:ffff:100::abcd
        PreferredLifetime= 100
        ValidLifetime= 200
        Identifier    Identifier = 14968020
        Opt_DHCPv6_SID    DUID-LLT HardwareType = 1
        DUID-LLT MAC = 00:00:00:00:a1:a1
        DUID-LLT TIME = 400000
        Opt_DHCPv6_StatusCode    StatusCode= 0 Success

##SM: target is doing DAD
##SM: TAHI says "Receive DAD NS: :: --> NUT (Addr by DHCP)"
##SM: Wait 5 sec
##SM: At this point, it is expected the the target has a valig global ipv6
address assigned to eth0, but
##SN:   none is configured...

 ssh root@10.x.x.x ifconfig eth0
 eth0      Link encap:Ethernet  HWaddr 6C:A8:49:86:5C:59
          inet6 addr: fe80::6ea8:49ff:fe86:5c59/64 Scope:Link
          UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1
          RX packets:161 errors:0 dropped:0 overruns:0 frame:0
          TX packets:166 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:31604 (30.8 KiB)  TX bytes:34227 (33.4 KiB)
          Interrupt:74

##SM: TAHI says "Server1 transmit Echo Request to NUT(global address
assigned by DHCP)."
##SM: TAHI says "Server1 cannot receive Echo Reply from NUT."

--------------------

On Thu, Mar 24, 2016 at 6:15 PM, Roy Marples <roy@xxxxxxxxxxxx> wrote:
Hi

It seems that google recently started blocking my mail server.
I have now fixed my config so google accepts it!

Thanks for reporting.

Roy

---------- Forwarded message ----------
From: Roy Marples <roy@xxxxxxxxxxxx>
To: dhcpcd-discuss@xxxxxxxxxxxx
Cc: Shahid Mahmood <shahid.avaya@xxxxxxxxx>
Date: Thu, 24 Mar 2016 21:17:03 +0000
Subject: Re: [dhcpcd-discuss] Re: Testing dhcpcd against TAHI (ipv6)
On Thursday 24 March 2016 15:47:08 Shahid Mahmood wrote:
> 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?


For reference, dhcpcd itself doesn't do DAD it leaves that to the kernel.

Roy



---------- Forwarded message ----------
From: Roy Marples <roy@xxxxxxxxxxxx>
To: dhcpcd-discuss@xxxxxxxxxxxx
Cc: Shahid Mahmood <shahid.avaya@xxxxxxxxx>
Date: Thu, 24 Mar 2016 21:16:05 +0000
Subject: Re: [dhcpcd-discuss] Re: Testing dhcpcd against TAHI (ipv6)
On Thursday 24 March 2016 15:47:08 Shahid Mahmood wrote:
> (PS: I am no longer getting emails on this topic for some reason, so I
> missed the resonse)

Interesting. I am getting responses fine and there are no bounces from my
mail
server.

> 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?

And you can post dhcpcd debug output of the address not being assigned to
the
interface I assume? Full output from dhcpcd starting to the test ending
would
be nice, with the word debug added on a line by itself at the top of
dhcpcd.conf.

Roy

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