• AVR Freaks

Hot!DHCPv6 configurations in MHC

Page: < 1234 Showing page 4 of 4
Author
rainad
Moderator
  • Total Posts : 1209
  • Reward points : 0
  • Joined: 2009/05/01 13:39:25
  • Location: 0
  • Status: offline
Re: DHCPv6 configurations in MHC 2019/08/19 15:16:31 (permalink)
0
Yes, still on my todo list, it's not forgotten :)
Can you please share your DHCPv6 configuration in the RT-N12 router?
 
#61
anuragjk
Starting Member
  • Total Posts : 48
  • Reward points : 0
  • Joined: 2018/12/11 23:59:45
  • Location: 0
  • Status: offline
Re: DHCPv6 configurations in MHC 2019/08/21 03:08:11 (permalink)
0
Thank-you very much,
I tried to post the screenshot of IPv6 settings page of the router but it keeps failing, some issue with the forum  :/
But I had attached the same in post #58, please check it out.


#62
rainad
Moderator
  • Total Posts : 1209
  • Reward points : 0
  • Joined: 2009/05/01 13:39:25
  • Location: 0
  • Status: offline
Re: DHCPv6 configurations in MHC 2019/08/21 09:42:53 (permalink)
0
OK, I finally managed to get some time to run a quick test using the Asus RT-N12 router.
Worked fine for me, please see the console log and the result of "netinfo" that shows the acquired IPv6 addresses from the server.
For reference, I'm attaching the RT-N12 setup (I couldn't see any DHCPv6 relevant settings in the post #58). 
 
Also, few changes in the DHCPv6 itself: uses SYS_CONSOLE_PRINT rather than MESSAGE, and just one other minor fix.
Attached for your reference.
 
Please give it a try yourself and let me know what you find.
I apologize for the delay.
 

Attached Image(s)

#63
anuragjk
Starting Member
  • Total Posts : 48
  • Reward points : 0
  • Joined: 2018/12/11 23:59:45
  • Location: 0
  • Status: offline
Re: DHCPv6 configurations in MHC 2019/08/22 00:49:07 (permalink)
0
I thought the modem has a default dhcpv6 settings, but guess I was wrong. mr green: mr green
Now I used your ipv6 settings and your dhcpv6.c as such, but still no luck.

I got following responses
 
_________________________________
SERIAL LOG IPv6 2019/08/22_11:48
_________________________________

TCP/IP Stack: Initialization Started
SYS_Initialize: The MPFS2 File System is mounted
TCP/IP Stack: Initialization Ended - success
Interface PIC32INT on host MCHPBOARD_E - NBNS enabled
PIC32INT IP Address: 0.0.0.0
myDhcpHandler: TCPIP_DHCPV6_CLIENT_STATE_IDLE
DHCPV6 Client - state: idle, time: 0
DHCPV6 buffers: 8, free: 8, rx: 0, tx: 0, adv: 0, reply: 0
DHCPV6 stats - tx Fail: 0, tx Space: 0, tx Flush: 0, rx Fail: 0, rx Small: 0
_remotePort and h->SourcePort -> 67 and 67
_remotePort and h->SourcePort -> 67 and 67


>PIC32INT IP Address: 192.168.1.229
_remotePort and h->SourcePort -> 53 and 53
myDhcpHandler: TCPIP_DHCPV6_CLIENT_STATE_WAIT_LINK
DHCPV6 Client - state: wlink, time: 5
DHCPV6 buffers: 8, free: 8, rx: 0, tx: 0, adv: 0, reply: 0
DHCPV6 stats - tx Fail: 0, tx Space: 0, tx Flush: 0, rx Fail: 0, rx Small: 0
myDhcpHandler: TCPIP_DHCPV6_CLIENT_STATE_RUN
DHCPV6 Client - state: run, time: 5
DHCPV6 buffers: 8, free: 8, rx: 0, tx: 0, adv: 0, reply: 0
DHCPV6 stats - tx Fail: 0, tx Space: 0, tx Flush: 0, rx Fail: 0, rx Small: 0
DHCPV6 task: Transmit, Msg: 0xa000d610, type: 1, IA ix: 2, state: 0, passed
DHCPV6 task: Transmit, Msg: 0xa000d828, type: 1, IA ix: 3, state: 0, passed
DHCPV6 task: Transmit, Msg: 0xa000dc58, type: 1, IA ix: 5, state: 0, passed
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
DHCPV6 task: Transmit, Msg: 0xa000d1e0, type: 1, IA ix: 0, state: 0, passed
DHCPV6 task: Transmit, Msg: 0xa000d3f8, type: 1, IA ix: 1, state: 0, passed
DHCPV6 task: Transmit, Msg: 0xa000da40, type: 1, IA ix: 4, state: 0, passed
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 3
IA solicit res: 3
IA solicit res: 2
IA solicit res: 3
IA solicit res: 3
IA solicit res: 3
IA solicit res: 3
DHCPV6 task: Transmit, Msg: 0xa000d610, type: 1, IA ix: 2, state: 0, passed
DHCPV6 task: Transmit, Msg: 0xa000d828, type: 1, IA ix: 3, state: 0, passed
DHCPV6 task: Transmit, Msg: 0xa000dc58, type: 1, IA ix: 5, state: 0, passed
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
DHCPV6 task: Transmit, Msg: 0xa000d1e0, type: 1, IA ix: 0, state: 0, passed
DHCPV6 task: Transmit, Msg: 0xa000d3f8, type: 1, IA ix: 1, state: 0, passed
DHCPV6 task: Transmit, Msg: 0xa000da40, type: 1, IA ix: 4, state: 0, passed
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 3
IA solicit res: 2
IA solicit res: 2
IA solicit res: 3
IA solicit res: 2
IA solicit res: 2
IA solicit res: 3
IA solicit res: 2
DHCPV6 task: Transmit, Msg: 0xa000d610, type: 1, IA ix: 2, state: 0, passed
DHCPV6 task: Transmit, Msg: 0xa000dc58, type: 1, IA ix: 5, state: 0, passed
IA solicit res: 3
IA solicit res: 3
IA solicit res: 2
IA solicit res: 3
IA solicit res: 2
DHCPV6 task: Transmit, Msg: 0xa000d828, type: 1, IA ix: 3, state: 0, passed
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
DHCPV6 task: Transmit, Msg: 0xa000d1e0, type: 1, IA ix: 0, state: 0, passed
DHCPV6 task: Transmit, Msg: 0xa000d3f8, type: 1, IA ix: 1, state: 0, passed
DHCPV6 task: Transmit, Msg: 0xa000da40, type: 1, IA ix: 4, state: 0, passed
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2
IA solicit res: 2


 
 
"netinfo" returns



---------- Interface <eth0/PIC32INT> ----------
Host Name: MCHPBOARD_E - NBNS enabled
IPv4 Address: 192.168.1.229
Mask: 255.255.255.0
Gateway: 192.168.1.1
DNS: 192.168.1.1
MAC Address: d8:80:39:75:a9:f3
IPv6 Unicast addresses:
fe80:0:0:0:da80:39ff:fe75:a9f3
IPv6 Multicast addresses:
ff02:0:0:0:0:1:ff75:a9f3
ff02:0:0:0:0:0:0:1
dhcp is ON
Link is UP

#64
rainad
Moderator
  • Total Posts : 1209
  • Reward points : 0
  • Joined: 2009/05/01 13:39:25
  • Location: 0
  • Status: offline
Re: DHCPv6 configurations in MHC 2019/08/22 10:38:21 (permalink)
0
it seems that there's no reply received, that's why all you see is the: 
IA solicit res: 2        TCPIP_DHCPV6_IA_SUBSTATE_RES_PENDING
IA solicit res: 3        TCPIP_DHCPV6_IA_SUBSTATE_RES_RETRANSMIT
 
So nothing really happens after a DHCP message is transmitted.
Not sure what else could be done other than setting breakpoints and see why he messages do not get there or, if they do, why they are rejected.
Probably we discussed this before, but do you get the DHCPv6 messages?
I.e. in the function TCPIP_DHCPV6_Task() do you see (sigPend & TCPIP_MODULE_SIGNAL_RX_PENDING) != 0, i.e. call the TCPIP_DHCPV6_Process() because it needs to process a message?
If this happens try to see why that message is discarded.
 
 
#65
Page: < 1234 Showing page 4 of 4
Jump to:
© 2019 APG vNext Commercial Version 4.5