How to Share Internet from Computer to NVIDIA Jetson Modules? - Forecr.io

How to Share Internet from Computer to NVIDIA Jetson Modules?

Jetson AGX Xavier | Jetson Nano | Jetson TX2 NX | Jetson Xavier NX

17 June 2021
WHAT YOU WILL LEARN?

1- How to connect to the Internet with the Ubuntu host PC

2- How to share host PC’s internet to Jetson module

3- How to share the Internet with a specific IP address

ENVIRONMENT

Hardware: DSBOX-N2

OS: Jetpack 4.5 (L4T-32.5.0)


Connecting to the Internet with the Ubuntu Host PC


In this blog post, we will share an Ubuntu host PC’s (laptop) internet connection to Jetson module. We will connect our host PC to Wi-Fi. Then we connect LAN connection between host PC and Jetson module. Finally, we will enable internet sharing from host PC and check the connection from Jetson module. You can review the Jetson™ Nano™ Fanless Industrial PC - DSBOX-N2 product, which is the appropriate hardware for this process.


We will connect our Wi-Fi network to our Ubuntu laptop and share it with Jetson Nano module. You can also use this guide with another types of networks (like USB ethernet). Additionally, you can share your Jetson module’s internet over LAN cable. The different configurations with sharing the Internet over LAN cable can be possible. It’s up to you. Now, let’s continue to our network setup.


Enable Wi-Fi to the Top Bar.



Choose the right Wi-Fi network to connect.



Type the password of the network.



Check the network with “ifconfig” command in an opened terminal. As you can see, our network connected and got its address as “192.168.2.148” below.



Sharing the Internet over LAN Cable


Connect the LAN cable to host PC and Jetson module. Open a terminal to the host PC and type “nm-connection-editor”. 



Our Ethernet connection named as “enp3s0”. Click “Edit” to change its settings.



Go to the “IPv4 Settings” to share the current network.



The current method is automatic. Let’s view the other methods.



In our configuration, we chose the method as “Shared to other computers”. Then we saved and exited from network connection editor.

To check the network status, open a terminal and type “ifconfig”.



As you can see, our Ethernet connection enabled to share. In our host PC, the shared network’s IP address attached as “10.42.0.1”.

Let’s check the network connection to the Jetson side. Open a terminal into it and type “ifconfig”.



As you can see, our Ethernet connection enabled to share. In our host PC, the shared network’s IP address attached as “10.42.0.1”.

Let’s check the network connection to the Jetson side. Open a terminal into it and type “ifconfig”.



ping -c 10 www.google.com



Sharing the Internet with Specific IP Address


Open the Ethernet network’s IPv4 setting again in “nm-connection-editor”. Add your specific IP address in “Address”, type 24 in “Netmask” and type the source network’s IP address in the “Gateway”. Then save it.



Open a terminal and check the connected network address with “ifconfig” command.


Thank you for reading our blog post.