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
OS: Jetpack 4.5 (L4T-32.5.0)
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.
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.
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”.
ping -c 10 www.google.com
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.
If you want to get updated on new blog posts, product launches and discounts, you can fill out the form and sign up for our newsletter. By signing up, you can reach various blog posts about AI, deep learning, machine vision, high-speed cameras, and industrial interfaces.
You will receive a "free shipping" code for next purchase immediately.