You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm new to OpenThread and IPV6 networking. Using Zephyr 2.6.x (nRF NCS 1.6.x) and nRF52840DK.
I understand how CONFIG_NET_CONFIG_MY_IPV6_ADDR is used in examples to set the device to a static IP address, e.g. "2001:db8::1" for a server and "2001:db8::2" for the client.
But in real-world, I have a mesh network of devices and I want them to use the randomly assigned Mesh-Local EID (ML-EID) when sending CoAP requests, so that the server can then reply back.
The problem is CONFIG_NET_CONFIG_MY_IPV6_ADDR define is used in a few spots in the lower levels e.g. subsys/net/ip/tp.c and susbys/net/lib/config/init.c. Therefore I can't set the IP address in runtime (not without modifying those files, which seems not logical to do).
Why do I want to use ML-EID IP address as each nodes IP address?
Because I don't want to have to manually rebuild zephyr with new CONFIG_NET_CONFIG_MY_IPV6_ADDR
also this is the address which "should be used by application" according to Thread spec
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm new to OpenThread and IPV6 networking. Using Zephyr 2.6.x (nRF NCS 1.6.x) and nRF52840DK.
I understand how CONFIG_NET_CONFIG_MY_IPV6_ADDR is used in examples to set the device to a static IP address, e.g. "2001:db8::1" for a server and "2001:db8::2" for the client.
But in real-world, I have a mesh network of devices and I want them to use the randomly assigned Mesh-Local EID (ML-EID) when sending CoAP requests, so that the server can then reply back.
The problem is CONFIG_NET_CONFIG_MY_IPV6_ADDR define is used in a few spots in the lower levels e.g. subsys/net/ip/tp.c and susbys/net/lib/config/init.c. Therefore I can't set the IP address in runtime (not without modifying those files, which seems not logical to do).
Why do I want to use ML-EID IP address as each nodes IP address?
OR perhaps I should use SLAAC?
Any pointers would be great, thanks.
Beta Was this translation helpful? Give feedback.
All reactions