Configure Ethernet Interface (eth0) for Direct Link to Another Static IP (Jetson 10.41.10.1) - Jetson Nano (Ubuntu 22.04)
This article covers the steps required to configure the Ethernet interface (eth0) for a direct link to another static IP on your Jetson Nano device, running Ubuntu 22.04.
With this configuration, your Jetson Nano and another device, each with a unique static IP address, can communicate directly, bypassing a router or switch.
Be sure to update your system and install the necessary dependencies before you start.
Prerequisites
- A Jetson Nano device running Ubuntu 22.04
- An additional device with a unique static IP address (e.g., Jetson with the IP address of 10.41.10.1)
Update system and install dependencies
Updating the system keeps your device up to date with the latest security and performance improvements.
Use the following commands to ensure that your device has the necessary packages for this task:
$ sudo apt update
$ sudo apt upgrade
$ sudo apt install net-tools
Check the Ethernet Interface (eth0)
The following command displays all available network interface names along with their respective status.
Check if the Ethernet interface is named eth0 and verify if the link is up:
$ ifconfig
or
$ ip link
Configure the Ethernet Interface (eth0)
To configure the Ethernet interface with a static IP, use the nano text editor to edit the /etc/netplan/01-netcfg.yaml file.
Replace values enclosed in < and > with the appropriate values for your setup:
$ sudo nano /etc/netplan/01-netcfg.yaml
network:
ethernets:
eth0:
dhcp4: no
addresses: [<your-ip-address/24>]
routes:
- to: <jetson-ip-address>
via: <jetson-ip-address>
metric: 100
nameservers:
addresses: [<dns-server-address>]
Apply the changes
Save and close the 01-netcfg.yaml file, and then apply the networking configuration with the following command:
$ sudo netplan apply
Verify the configuration
After applying the changes, check the newly configured status of the Ethernet interface by entering the following command:
$ ifconfig
or
$ ip link
Once you complete these steps, your Jetson Nano should have a direct link via Ethernet interface (eth0) with your other device.
This configuration provides a direct connection while bypassing conventional Wi-Fi and router-based LAN configurations.
Be sure to double-check all the values and settings in your /etc