Configure Ethernet Interface for Direct Link with Computer Router to Internet on Jetson Nano (Ubuntu 22.04)

Abstract: Assign a static IP to Jetson Nano eth0 via Netplan for direct connection to computer router.

Created: 2026-07-31 by

To configure the Ethernet interface eth0 on a Jetson Nano running Ubuntu 22.04 for a direct link to a computer router, you must assign a static IP address within the same subnet as the remote device. This setup bypasses DHCP and requires manual configuration of the network interface file to ensure stable connectivity without an upstream gateway or DNS resolver from a local network.

Understanding Direct Link Networking Requirements

When establishing a direct connection between two devices without a switch or router in between, standard networking protocols like DHCP cannot function because there is no server to lease addresses. Both endpoints must be manually configured with static IP addresses that reside in the same logical subnet. In this scenario, the remote computer acts as the router with the IP 10.41.10.1. Your Jetson Nano needs a compatible IP address, such as 10.41.10.2, to communicate directly. This configuration differs significantly from typical home or office setups where devices obtain settings automatically. You are essentially creating a point-to-point link. The primary challenge lies in correctly defining the subnet mask and ensuring that routing rules do not attempt to send traffic through non-existent gateways. If the configuration is incorrect, the system may appear offline even though the physical link is active. For more context on how Ubuntu manages these interfaces, see How do Ubuntu-server network interfaces work?.

Identifying the Network Interface

Before modifying any configuration files, it is crucial to verify that the correct interface is being targeted. On most Jetson Nano boards, the primary Ethernet port is named eth0. However, naming conventions can change depending on kernel versions or additional hardware modules. Use the following command in the terminal to list all network interfaces and their current states:
ip link show
Look for the interface associated with your Ethernet cable. It should show a state of UP or DORMANT if the cable is plugged in. If you see multiple interfaces, ensure you are editing the one corresponding to the physical port you intend to use. Misidentifying the interface name will result in changes applying to the wrong adapter, leaving your target connection unconfigured.

Configuring Netplan for Static IP

Ubuntu 22.04 uses Netplan as its default network configuration tool. Netplan reads YAML configuration files located in the /etc/netplan/ directory. These files define how network interfaces behave. To set up a static IP for a direct link, you need to create or modify a Netplan configuration file. First, identify the existing Netplan configuration file. It usually has a name like 50-cloud-init.yaml or 01-netcfg.yaml. Open the file using a text editor with sudo privileges:
sudo nano /etc/netplan/00-installer-config.yaml
Replace the content with the following structure, ensuring proper indentation which is critical for YAML syntax. Replace 10.41.10.2 with your chosen IP address, ensuring it does not conflict with 10.41.10.1:
network:
  version: 2
  ethernets:
    eth0:
      dhcp4: false
      addresses:
        - 10.41.10.2/24
      nameservers:
        addresses:
          - 8.8.8.8
      routes:
        - to: 10.41.10.0/24
          via: 10.41.10.1
Key points in this configuration:
  • dhcp4: false: Disables automatic IP assignment.
  • addresses: Sets the static IP and subnet mask (/24 means 255.255.255.0).
  • nameservers: Provides external DNS for general internet access if the remote device allows it, or you can remove this line if you only need local communication.
  • routes: Defines that traffic destined for the 10.41.10.0/24 subnet should go through the router at 10.41.10.1.
If you require internet access through the remote computer, you may also need to add a default route. However, for a strict direct link, the specific subnet route is often sufficient. After saving the file, apply the changes using:
sudo netplan apply
If the command returns no errors, the configuration has been applied. Verify the new IP address with:
ip addr show eth0
You should see 10.41.10.2 listed under the inet field.

Testing Connectivity and Troubleshooting

Once the configuration is applied, test the connection to the remote router. Use the ping command to check reachability:
ping -c 4 10.41.10.1
If you receive replies, the layer 3 connectivity is established. If the ping fails, check the physical link status with ethtool eth0 to ensure the cable is detected. Common issues include incorrect subnet masks or conflicting IP addresses on the remote end. Ensure that firewalls on both devices allow ICMP traffic if you rely on pings for diagnostics. For users experiencing broader internet connectivity issues after such configurations, it might be helpful to review related problems, such as those found in Ubuntu 22.04 VM on KVM/virt-manager Not Connecting to Internet, as the principles of static vs. dynamic addressing remain similar across different environments.

Advanced Routing Considerations

In some cases, simply adding an IP address is not enough if the remote device expects specific routing behaviors. If you need to route all traffic through the remote computer, you would add a default route:
sudo ip route add default via 10.41.10.1 dev eth0
However, this method resets upon reboot unless added to the Netplan file permanently. For persistent default routing, modify the Netplan YAML to include:
routes:
  - to: default
    via: 10.41.10.1
Be cautious when setting a default route on a direct link. If the remote computer does not have internet access itself, your Jetson Nano will lose all external connectivity. Always keep a secondary management method, such as SSH over Wi-Fi if available, or serial console access, to recover from misconfigurations.

Frequently Asked Questions

What happens if I forget to disable DHCP?

If DHCP remains enabled, the system will attempt to contact a DHCP server on the network segment. Since a direct link typically lacks a DHCP server, the interface may fail to obtain an IP address or fall back to an APIPA address (169.254.x.x), breaking your static configuration. Always set dhcp4: false explicitly.

Can I use a different subnet mask than /24?

Yes, but both devices must agree on the subnet mask. A /24 mask (255.255.255.0) is standard for small direct links. Using a different mask, such as /30, restricts the usable IP range further but is valid if both ends are configured identically. Mismatched masks will prevent communication even if IPs are in the same range.

Why can't I access the internet after configuring the static IP?

A direct link configuration often removes the default gateway to the wider internet. If the remote computer does not provide NAT or routing to the internet, your Jetson Nano will only have access to the remote device. You must ensure the remote device is configured to forward traffic or provide a default route if internet access is required.

How do I revert to DHCP if the static config fails?

Edit the Netplan YAML file again and change dhcp4: false to dhcp4: true. Remove the addresses and static routes sections. Run sudo netplan apply to restore automatic configuration. This is useful for testing or if you reconnect to a network with a DHCP server.

Is it necessary to configure DNS servers in the Netplan file?

It is necessary only if you need to resolve domain names while connected via the direct link. If you only communicate using IP addresses, you can omit the nameservers section. Including public DNS servers like 8.8.8.8 allows resolution of external domains if the remote router permits such traffic.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More