Dear All,
#if LWIP_IPV6*netif.ip6_autoconfig_enabled=1;netif_create_ip6_linklocal_address(&netif, 1);#if PRINTF_SUPPORTprintf("ip6 linklocal address: ");#endifip6_addr_debug_print(0xFFFFFFFFU & ~LWIP_DBG_HALT, netif_ip6_addr(&netif, 0));#endif /* LWIP_IPV6 */
Hi!
From your output seems that you don't have ipv6 gateway set. Can you please check your router settings?
Vlad
Hello,
Thank you for the reply. I dont think that the issue is the gateway because I have a frdm k64 board which is being assigned ipv6 address. It pings perfectly fine.
Can you try with a different MAC? 10:11:12:00:00:00, for example.
Hello,
I did change the mac address to what you have mentioned above. Below is the screen shot of my IPv6 neigbors.
As you can clearly see that my s32k148 node with IPv6 assigned but I cant see any physical address getting assigned. It still shows 00-00-00-00-00-00. More important when I used Wireshark to check the status of neighbor solicitation messages I am seeing this.
The checksum seems to be incorrect. I don't know whats wrong here.
The only thing I have added in this code is netif.ip6_autoconfig_enabled=1.
Can you try to remove this setting? I believe this could be the issue.
Where have you set LWIP to 1? Have you used design studio to generate or have you wrote it by hand?
Hello Vlad,
The IPv6 issue is solved there is a macro LWIP_CHECKSUM_CTRL_PER_NETIF in lwipopt.h. By default it is 1, now I have changed it to 0. Now, both link local Ipv6 address and IPv6 address achieved using SLAAC are working properly. The only problem I am facing now is that my IPv4 address is not working. KIndly help me out with this issue.
Regards,
Saad.
Hi,
What do you mean by it's not working? you don't see the board on your network?
However, I believe this is a configuration issue. Are you using the example in design studio? I would suggest configuring the application from the interface, rather than investigating this.
Vlad
Yes I am using the example in design studio.
Hello Vlad,
Thanks for the tip. I configure the board using the processor expert and it did worked. Cheers:)
Kind Regards,
Saad.
Hello Vlad,
By not working I mean I cant ping the board. There is a macro in lwipopt.h which is LWIP_CHECKSUM_CTRL_PER_NETIF. If it is set to 1 IPv4 address gets assigned and ping is working perfectly. If this macro is set to 0 IPv6 address gets assigned and ping works properly. But the only problem is that only one of IP (IPv4 or IPv6) are working at a single time.
Regards,
Saad.
Hello Vlad;
Is there any update on the IPv6 link local address configuration problem.
In the last reply, I did disable the auto config. But nothing changed.
I have set #define LWIP_IPv6 to 1 in lwipopts.h by hand not by processor expert or something like that.