Index: [Article Count Order] [Thread]

Date: Thu, 25 Jun 2009 14:26:11 +0900
From: Ozoe Nobumichi <ozoe@tahi.org>
Subject: [users:01241] Re: can not get Relay Reply Message for Reley-forward Message  in DHCPv6
To: users@tahi.org
Message-Id: <4A430A73.2000808@tahi.org>
In-Reply-To: <4A42ED42.9030906@redhat.com>
References: <4A408BDF.3010203@redhat.com> <4A409FD4.5060205@redhat.com> <4A40A78A.6010500@tahi.org> <4A40B7B7.3000108@redhat.com> <4A416D45.7000807@tahi.org> <4A418E32.8080308@redhat.com> <4A419CA6.3050809@tahi.org> <4A42ED42.9030906@redhat.com>
X-Mail-Count: 01241

Hi Zhou,

No problem. Please feel free to ask this ML any questions that you may have.

Shirley Zhou $BeaJe#sea(I/$Bk{(I8$Bea:e"@eaNe"!(B:
> Hi, Ozone
> 
> Thank you very much for your kindly help.
> 
> After check the log message, I found when send relay forward request, 
> the log file prompts"dhcp6s[2216]: invalid option length in opt_44 
> option". and I found the length of Udp_DHCPv6_Solicit is 44.
> 
> Send DHCPv6 Reley-forward Message (Solicit): RELAY1 --> All DHCP Servers 
> at 11:02:44 
> <http://10.66.70.23/DHCPv6_Self_Test_P2_1_0_17/rfc3315/12.html#vSend1>
> 
> Frame_Ether                     (length:144)
> | Hdr_Ether                       (length:14)
> | | DestinationAddress               = 33:33:00:01:00:03
> | | SourceAddress                    = 00:00:00:00:a4:a4
> | | Type                             = 34525
> | Packet_IPv6                     (length:130)
> | | Hdr_IPv6                        (length:40)
> | | | Version                          = 6
> | | | TrafficClass                     = 0
> | | | FlowLabel                        = 0
> | | | PayloadLength                    = 90
> | | | NextHeader                       = 17
> | | | HopLimit                         = 32
> | | | SourceAddress                    = 3ffe:501:ffff:100:200:ff:fe00:a4a4
> | | | DestinationAddress               = ff05::1:3
> | | Upp_UDP                         (length:90)
> | | | Hdr_UDP                         (length:8)
> | | | | SourcePort                       = 547
> | | | | DestinationPort                  = 547
> | | | | Length                           = 90
> | | | | Checksum                         = 45597 calc(45597)
> | | | Udp_DHCPv6_RelayForward         (length:82)
> | | | | Type                             = 12
> | | | | HopCount                         = 0
> | | | | LinkAddr                         = 
> 3ffe:501:ffff:101:200:ff:fe00:a5a5
> | | | | PeerAddr                         = fe80::200:ff:fe00:a2a2
> | | | | Opt_DHCPv6_RelayMessage         (length:48)
> | | | | | Code                             = 9
> | | | | | Length                           = 44
> | | | | | Udp_DHCPv6_Solicit              (length:44)
> | | | | | | Type                             = 1
> | | | | | | Identifier                       = 100
> | | | | | | Opt_DHCPv6_CID                  (length:18)
> | | | | | | | Code                             = 1
> | | | | | | | Length                           = 14
> | | | | | | | DHCPv6_DUID_LLT_Ether           (length:14)
> | | | | | | | | Type                             = 1
> | | | | | | | | HardwareType                     = 1
> | | | | | | | | Time                             = 300000
> | | | | | | | | LinkLayerAddress                 = 00:00:00:00:a2:a2
> | | | | | | Opt_DHCPv6_IA_NA                (length:16)
> | | | | | | | Code                             = 3
> | | | | | | | Length                           = 12
> | | | | | | | Identifier                       = 101010
> | | | | | | | Time1                            = 50
> | | | | | | | Time2                            = 80
> | | | | | | Opt_DHCPv6_ElapsedTime          (length:6)
> | | | | | | | Code                             = 8
> | | | | | | | Length                           = 2
> | | | | | | | Time                             = 0
> 
> 
> 
> So I think it is not the problem of network card, I think may be it is 
> the issue of remote control file or the system bug.
> 
> 
> Ozoe Nobumichi wrote:
>> Hi Zhou,
>>
>> Shirley Zhou $BeaJe#sea(I/$Bk{(I8$Bea:e"@eaNe"!(B:
>>> Hi,Ozoe
>>>
>>> I tried test this case with Realtek 8139 and Intel Corporation 
>>> 82566DM-2 network cards, they do not work.
>> >
>>> Which kind of network card you used?
>>
>> When I test DHCPv6 to Fedora8 2.6.26.5-31.fc8, I use e1000 and pegasus 
>> driver.
>>
>> My test enviroment is bellow.
>>
>> Client and Server test case:
>>  TN      NUT
>>   |       |  eth0
>>   |       |
>>  -+-------+- Link0
>>
>> eth0: e1000: Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
>>
>> /etc/sysconfig/network-scripts/ifcfg-eth0
>> # Intel Corporation 82540EM Gigabit Ethernet Controller
>> DEVICE=eth0
>> HWADDR=00:0B:DB:XX:XX:XX
>> ONBOOT=yes
>> IPV6INIT=yes
>> IPV6FORWARDING=no
>>
>>
>> Relay agent test case:
>>  -+-------+- Link1
>>   |       |
>>   |       |  eth1
>>  TN      NUT
>>   |       |  eth0
>>   |       |
>>  -+-------+- Link0
>>
>> eth1: pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet 
>> driver
>>
>> /etc/sysconfig/network-scripts/ifcfg-eth0
>> # Intel Corporation 82540EM Gigabit Ethernet Controller
>> DEVICE=eth0
>> HWADDR=00:0B:DB:XX:XX:XX
>> ONBOOT=yes
>> IPV6INIT=yes
>> IPV6FORWARDING=yes
>> IPV6ADDR=3ffe:501:ffff:100:20b:dbff:feXX:XXXX/64
>>
>> /etc/sysconfig/network-scripts/ifcfg-eth1
>> # Generic USB to LAN Converter
>> DEVICE=eth1
>> HWADDR=00:0d:0b:XX:XX:XX
>> ONBOOT=yes
>> IPV6INIT=yes
>> IPV6FORWARDING=yes
>> IPV6ADDR=3ffe:501:ffff:101:20d:bff:feXX:XXXX/64
>>
>>> Ozoe Nobumichi wrote:
>>>> Hi Zhou,
>>>>
>>>> I don't know about network card driver 8139too.
>>>> In my case, fedora8 with dm9601 driver had problem.
>>>> You try promiscuous mode using tcpdump on the system with the problem.
>>>> And you might find the system log related information.
>>>>
>>>> Shirley Zhou $BeaJe#sea(I/$Bk{(I8$Bea:e"@eaNe"!(B:
>>>>> Hi, Ozoe
>>>>>
>>>>> My NUT is fedora 11-i386, and TN is FreeBSD6.3.
>>>>> My network card driver is 8139too,output of ifconfig test network 
>>>>> card.
>>>>>
>>>>> [root@host-test ~]# ifconfig
>>>>> eth1   Link encap:Ethernet  HWaddr 00:21:27:9D:F5:69          inet 
>>>>> addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
>>>>>          inet6 addr: fe80::221:27ff:fe9d:f569/64 Scope:Link
>>>>>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>>>>          RX packets:35 errors:0 dropped:0 overruns:0 frame:0
>>>>>          TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
>>>>>          collisions:0 txqueuelen:1000
>>>>>          RX bytes:4531 (4.4 KiB)  TX bytes:10070 (9.8 KiB)
>>>>>          Interrupt:18 Base address:0x4f00
>>>>> Any I missed?
>>>>>
>>>>> Thanks a lot!
>>>>>
>>>>> Ozoe Nobumichi wrote:
>>>>>> Hi Zhou,
>>>>>>
>>>>>> Please let me know your test environment in detail.
>>>>>>
>>>>>> I have the experience that the multicast group address 
>>>>>> (33:33:00:01:00:03)frame was dropped with a certain USB network I/F.
>>>>>>
>>>>>> Shirley Zhou $BeaJe#sea(I/$Bk{(I8$Bea:e"@eaNe"!(B:
>>>>>>> I test the same case in another system, it pass.
>>>>>>>
>>>>>>> tcpdump file is :
>>>>>>>
>>>>>>> 19:18:17.354280 IP6 fe80::200:ff:fe00:a6a6 > ff02::1: ICMP6, 
>>>>>>> router advertisement, length 56
>>>>>>> 19:18:20.381821 IP6 fe80::218:8bff:fe74:2ee7 > 
>>>>>>> fe80::200:ff:fe00:a2a2: ICMP6, neighbor solicitation, who has 
>>>>>>> fe80::200:ff:fe00:a2a2, length 32
>>>>>>> 19:18:21.381789 IP6 fe80::218:8bff:fe74:2ee7 > 
>>>>>>> fe80::200:ff:fe00:a2a2: ICMP6, neighbor solicitation, who has 
>>>>>>> fe80::200:ff:fe00:a2a2, length 32
>>>>>>> 19:18:22.381601 IP6 fe80::218:8bff:fe74:2ee7 > 
>>>>>>> fe80::200:ff:fe00:a2a2: ICMP6, neighbor solicitation, who has 
>>>>>>> fe80::200:ff:fe00:a2a2, length 32
>>>>>>> 19:18:42.885969 IP6 fe80::218:8bff:fe74:2ee7 > ff02::16: HBH 
>>>>>>> ICMP6, multicast listener report v2, 2 group record(s), length 48
>>>>>>> 19:18:43.017195 IP6 
>>>>>>> 3ffe:501:ffff:100:200:ff:fe00:a4a4.dhcpv6-server > 
>>>>>>> ff05::1:3.dhcpv6-server: dhcp6 relay-fwd
>>>>>>> 19:18:43.017838 IP6 fe80::218:8bff:fe74:2ee7 > ff02::1:ff00:a4a4: 
>>>>>>> ICMP6, neighbor solicitation, who has 
>>>>>>> 3ffe:501:ffff:100:200:ff:fe00:a4a4, length 32
>>>>>>> 19:18:43.112344 IP6 3ffe:501:ffff:100:200:ff:fe00:a4a4 > 
>>>>>>> fe80::218:8bff:fe74:2ee7: ICMP6, neighbor advertisement, tgt is 
>>>>>>> 3ffe:501:ffff:100:200:ff:fe00:a4a4, length 32
>>>>>>> 19:18:43.112522 IP6 fe80::218:8bff:fe74:2ee7.dhcpv6-server > 
>>>>>>> 3ffe:501:ffff:100:200:ff:fe00:a4a4.dhcpv6-server: dhcp6 relay-reply
>>>>>>> 19:18:43.742923 IP6 fe80::218:8bff:fe74:2ee7 > ff02::16: HBH 
>>>>>>> ICMP6, multicast listener report v2, 2 group record(s), length 48
>>>>>>>
>>>>>>> Can anyone point me what is the problem?
>>>>>>> Thanks.
>>>>>>> Shirley
>>>>>>>
>>>>>>> Shirley Zhou wrote:
>>>>>>>> Hi, All
>>>>>>>>
>>>>>>>> I am testing DHCPv6 server using DHCPv6_Self_Test_P2_1_0_17.
>>>>>>>> I found there is no relay reply message for relay-forward message.
>>>>>>>> I take RFC3315, case 12-Part B:Relay Agent/Server Message Format 
>>>>>>>> as example, can anyone tell me how to resolve this problem? 
>>>>>>>> Thanks in advance!
>>>>>>>> dhcp6s.conf
>>>>>>>>
>>>>>>>> prefer-life-time 10000;
>>>>>>>> valid-life-time  20000;
>>>>>>>> renew-time 5000;
>>>>>>>> rebind-time 16000;
>>>>>>>> #
>>>>>>>> interface eth0 {
>>>>>>>> link AAA {
>>>>>>>> #
>>>>>>>> #
>>>>>>>> #
>>>>>>>> #
>>>>>>>> relay 3ffe:501:ffff:101::/64;
>>>>>>>> range 3ffe:501:ffff:101::10 to 3ffe:501:ffff:101::11/64;
>>>>>>>> #
>>>>>>>> };
>>>>>>>> host host0 {
>>>>>>>> duid 00:01:00:01:00:04:93:e0:00:00:00:00:a2:a2;
>>>>>>>> };
>>>>>>>> };
>>>>>>>>
>>>>>>>> tcpdump file
>>>>>>>>
>>>>>>>> 18:43:44.729556 IP6 fe80::200:ff:fe00:a6a6 > ff02::1: ICMP6, 
>>>>>>>> router advertisement, length 56
>>>>>>>> 18:43:47.645937 IP6 fe80::221:27ff:fe9d:f569 > 
>>>>>>>> fe80::200:ff:fe00:a2a2: ICMP6, neighbor solicitation, who has 
>>>>>>>> fe80::200:ff:fe00:a2a2, length 32
>>>>>>>> 18:43:48.645998 IP6 fe80::221:27ff:fe9d:f569 > 
>>>>>>>> fe80::200:ff:fe00:a2a2: ICMP6, neighbor solicitation, who has 
>>>>>>>> fe80::200:ff:fe00:a2a2, length 32
>>>>>>>> 18:43:49.646068 IP6 fe80::221:27ff:fe9d:f569 > 
>>>>>>>> fe80::200:ff:fe00:a2a2: ICMP6, neighbor solicitation, who has 
>>>>>>>> fe80::200:ff:fe00:a2a2, length 32
>>>>>>>> 18:43:49.960096 IP6 fe80::221:27ff:fe9d:f569 > ff02::16: HBH 
>>>>>>>> ICMP6, multicast listener report v2, 2 group record(s), length 48
>>>>>>>> 18:44:09.918475 IP6 fe80::221:27ff:fe9d:f569 > ff02::16: HBH 
>>>>>>>> ICMP6, multicast listener report v2, 2 group record(s), length 48
>>>>>>>> 18:44:10.081407 IP6 
>>>>>>>> 3ffe:501:ffff:100:200:ff:fe00:a4a4.dhcpv6-server > 
>>>>>>>> ff05::1:3.dhcpv6-server: dhcp6 relay-fwd
>>>>>>>> 18:44:19.216140 IP6 fe80::221:27ff:fe9d:f569 > ff02::16: HBH 
>>>>>>>> ICMP6, multicast listener report v2, 2 group record(s), length 48
>>>>>>>> 18:44:35.752330 IP6 fe80::221:27ff:fe9d:f569 > ff02::16: HBH 
>>>>>>>> ICMP6, multicast listener report v2, 2 group record(s), length 48
>>>>>>>>
>>>>>>>> Shirley Zhou
>>>>>>>>
>>>>>>>>

--
Nobumichi Ozoe
System & Control Research Center,
Corporate R&D Headquaters,
Yokogawa Electric Corporation
Tel: +81-422-52-5544 Fax: +81-422-52-2561
http://www.yokogawa.com/