How to configure static IP on Jetson AGX Orin with JP5.1.1

Hi,
On Jetson AGX Orin with JP5.1.1, How to configure static IP?

I try the following way, to using cmd to configure statis IP , it will lost ip address later (3 ~ 5 minitutes).
ifconfig eth0 192.168.1.94 netmask 255.255.255.0 up
And after reboot, the IP address also will lost?

Is there a way to configure the static IP with cmd line or configure file.
It can permanention save, even reboot donot lost.

Hi,
Please install netplan and configure the yaml file under /etc/netplan. Please refer to
How to Configure Networking in Ubuntu 20.04 with NetPlan - Serverlab

Thanks, it works.

Share my process.
The /etc/netplan directory doesnot exist on JP5. Need to install the netplan first.

  • Install netplan
sudo apt install netplay.io
  • Set the static IP,
    create the config file /etc/netplan/00-installer-config.yaml, and its content is as:
network:
  version: 2
  renderer: NetworkManager
  ethernets:
    eth0:
      addresses:
      - 192.168.100.108/24
      gateway4: 192.168.100.1
      nameservers:
        addresses:
        - 8.8.8.8
  • Make the config take effect.
sudo netplan apply
sudo reboot
1 Like

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