<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>IPv6 routing samples</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96187/ipv6-routing-samples</link><description>Hello ! 
 I have taken echo server sample as base (USB-NET and ipv6 only config ) 
 and would like ti add border router ( if need ) and few static routes to other interfaces to this sample. 
 But looks like not so many samples for routing exists in SDK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Feb 2023 13:02:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96187/ipv6-routing-samples" /><item><title>RE: IPv6 routing samples</title><link>https://devzone.nordicsemi.com/thread/410648?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 13:02:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b76291f9-109b-479e-9957-5bb7d252555c</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Eugene,&lt;/p&gt;
&lt;p&gt;This is out of scope from what we can provide support for and is a question better suited for Zephyr. Please contact them either from the contact form &lt;a href="https://www.zephyrproject.org/contact-us/"&gt;here&lt;/a&gt;, or at one of the links they provide (mailing lists or Discord). I think &lt;a href="https://discord.com/invite/Ck7jw53nU2"&gt;Discord&lt;/a&gt; is the preferred way to ask for help.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IPv6 routing samples</title><link>https://devzone.nordicsemi.com/thread/409937?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 17:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14a27bdc-6cfb-4993-8ed3-657f94bb70e6</guid><dc:creator>Hiihtaja</dc:creator><description>&lt;p&gt;Hello Maria !&lt;/p&gt;
&lt;p&gt;My case is different. I just need to create static routing table where 2 interfaces are in use.&lt;/p&gt;
&lt;p&gt;I can see in Zephyr route capabilities are hidden.&lt;/p&gt;
&lt;p&gt;in&amp;nbsp;&lt;span&gt;ncs/v2.2.0/zephyr/subsys/net/ip/Kconfig&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;NET_ROUTE and NET_ROUTING are hidden.&lt;/p&gt;
&lt;p&gt;I have enabled those and able to include hidden headers by using lines:&lt;/p&gt;
&lt;p&gt;&lt;span class=""&gt;#include &amp;lt;zephyr/../../subsys/net/ip/ipv6.h&amp;gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#include &amp;lt;zephyr/../../subsys/net/ip/nbr.h&amp;gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#include &amp;lt;zephyr/../../subsys/net/ip/route.h&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and practice with APIs&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;net_ipv6_nbr_add()&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;net_route_add()&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;And from host what is connected to USB_NET ethernet I try to route packets to 2nd interface ( own radio driver).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;But no idea if it possible with current IPV6 stack, routing is hidden last 4 years and it should be some reason about it.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Eugene&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IPv6 routing samples</title><link>https://devzone.nordicsemi.com/thread/409838?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 12:17:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:333d6cb7-b057-4186-8bb9-c96e9799d24a</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello Eugene,&lt;/p&gt;
&lt;p&gt;and thank you for your patience with this.&lt;/p&gt;
&lt;p&gt;I can see that some of your inquiries were answered by my colleague in &lt;a href="https://devzone.nordicsemi.com/support-private/support/302179"&gt;this ticket&lt;/a&gt;. I will not address them in this answer.&lt;/p&gt;
[quote user=""]and after that all IPV6 packets for is not addressed to current node ( CONFIG_NET_CONFIG_MY_IPV6_ADDR=&amp;quot;2001:db8::1&amp;quot; ) can&amp;nbsp; be routed to than interface.[/quote]
&lt;p&gt;If you want routing from a device in one network to a device on the other network you have to implement how this routing works yourself.&lt;/p&gt;
&lt;p&gt;A possible starting point is to use the format of the IPv6 packets to categorize which network interface they should be forwarded to. This depends on whether the structure of the packets in your proprietary radio is different from the packet structure of Ethernet packets. &lt;/p&gt;
[quote user=""] what is routing principles in current ipv6 stack ?[/quote]
&lt;p&gt;The routing is done by Thread, specifically OpenThread in nRF Connect SDK. The Thread specification may be of help to you. You can download it for free from the Thread Group &lt;a href="https://www.threadgroup.org/ThreadSpec"&gt;here&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Let me know if I overlooked anything.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IPv6 routing samples</title><link>https://devzone.nordicsemi.com/thread/409265?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2023 06:17:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86dabe3e-0061-4aa9-9e88-f3acab37f262</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I am sorry, I had put this in the wrong tag last week. Assigning this to my colleague who can answer this today or on Monday.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IPv6 routing samples</title><link>https://devzone.nordicsemi.com/thread/407536?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2023 13:06:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d13ec0e-c53e-44d2-8814-41231212775a</guid><dc:creator>Hiihtaja</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;Thank you !&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Eugene&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IPv6 routing samples</title><link>https://devzone.nordicsemi.com/thread/407531?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2023 12:56:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3186b612-4f1e-4bbe-8785-2f72afff766a</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Our experts who can answer this are away this week, can you please wait until Monday so that I can assign this to my colleague who can answer you properly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>