# How to setting static router permanent for Xavier

**URL:** <https://forums.developer.nvidia.com/t/how-to-setting-static-router-permanent-for-xavier/191765>\
**Category:** Jetson AGX Xavier\
**Tags:** networking\
**Created:** [October 11, 2021, 3:00pm UTC](https://forums.developer.nvidia.com/t/how-to-setting-static-router-permanent-for-xavier/191765 "2021-10-11T15:00:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![longvv](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@longvv](https://forums.developer.nvidia.com/u/longvv)\
**Post date:** [October 11, 2021, 3:00pm UTC](https://forums.developer.nvidia.com/t/how-to-setting-static-router-permanent-for-xavier/191765/1 "2021-10-11T15:00:04Z")

</div>

Hi guys, I doing with the Jetson Xavier AGX. My purpose is transmit the multicast data from another computer with the same Lan network and in Xavier i have a listener C++ program which can receive all the data incoming to the Multicast address. However, the jetson cannot receive any data package and it’s show the error “no such device” and then “too many open file”. After several seraching, i had figured out the problem by run this command “_sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0_” then now I can see the data coming to jetson. The problem is, whenever i reboot the Jetson, the above command was not effect anymore and i have to re-run the $sudo … again. How can I make the jetson to auto run the above command everytime I reboot.

---

<div class="post-metadata">

**Author:** ![linuxdev](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/linuxdev/32/10243_2.png) [@linuxdev](https://forums.developer.nvidia.com/u/linuxdev)\
**Post date:** [October 11, 2021, 6:47pm UTC](https://forums.developer.nvidia.com/t/how-to-setting-static-router-permanent-for-xavier/191765/2 "2021-10-11T18:47:21Z")

</div>

Don’t know if this will work, but it is possibly a simple solution: Use “`sudo nm-connection-editor`” (if you don’t have this, then “`sudo apt-get install network-manager-gnome`”).

Notice when you open the application that the different network end points are listed, e.g., “Ethernet” with “Wired connection 1”, or “Bridge”, with “l4tbr0”. You are using the first ethernet connection, so click on that. Then click on the “gear” icon in the lower left for configure. I am assuming IPv4, so click the tab for “IPv4 Settings”. Note that at the bottom there are “Routes…”. You wouldn’t want to change the other addresses, but you would want to add routes. _Maybe_ you can add this route here and hit save, then exit and it might stick.

---

<div class="post-metadata">

**Author:** ![longvv](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@longvv](https://forums.developer.nvidia.com/u/longvv)\
**Post date:** [October 14, 2021, 4:20am UTC](https://forums.developer.nvidia.com/t/how-to-setting-static-router-permanent-for-xavier/191765/3 "2021-10-14T04:20:25Z")

</div>

Hi, Thank you for your reply. Because i use the ssh to Xavier so your method is not useful for me. Here is my solution:  
Create the file **/etc/network/if-up.d/route** with:

```auto
#!/bin/sh
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0

```

and make it executable :

```auto
chmod +x /etc/network/if-up.d/route

```

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [October 28, 2021, 4:21am UTC](https://forums.developer.nvidia.com/t/how-to-setting-static-router-permanent-for-xavier/191765/4 "2021-10-28T04:21:01Z")

</div>

Closed on October 28, 2021, 4:21am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
