How to permanently change network IP and mask of Drive AGX

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
DRIVE OS Linux 5.2.6
[V] DRIVE OS Linux 5.2.6 and DriveWorks 4.0
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other

Target Operating System
[V] Linux
QNX
other

Hardware Platform
[V] NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
1.7.1.8928
[V] other

Host Machine Version
[V] native Ubuntu 18.04
other

I want to set the DRIVE AGX “10 GbE port 2” IP and mask.
If I run the following commands, all works fine:

sudo ifconfig enp4s0 172.23.37.10
sudo ifconfig enp4s0 netmask 255.255.255.0

Now I want to make this setting permanent, to last after a reboot.

I tried creating a new file:
sudo gedit /etc/network/interfaces.d/interfaces

# My new file

iface enp4s0 inet static
address 172.23.37.10
netmask 255.255.255.0

Saving and then rebooting, but then when I run “ifconfig” I see that the IP
and mask are not set at all.
Here is the ifconfig printout.
ifconfig log.txt (2.1 KB)

How to permanently change the IP and mask?

Dear @Sunny127,
Does https://docs.nvidia.com/drive/drive-os-5.2.6.0L/drive-os/index.html#page/DRIVE_OS_Linux_SDK_NGC_Development_Guide/config_network_setup.html#wwpID0EXHA help?

By reading: https://docs.nvidia.com/drive/drive-os-5.2.6.0L/drive-os/index.html#page/DRIVE_OS_Linux_SDK_NGC_Development_Guide/config_network_setup.html#wwpID0E04E0HA

I changed the file /etc/network/interfaces t the following content:

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

# Content my settings
auto enp4s0
iface enp4s0 inet static
address 172.23.37.10
netmask 255.255.255.0

Rebooted.

nvidia@tegra-ubuntu:~$ ifconfig
enP4p1s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 00:04:4b:f6:6e:ef  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp4s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 00:04:4b:f6:6e:ed  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.115.199.55  netmask 255.255.255.0  broadcast 10.115.199.255
        inet6 fe80::204:4bff:fef6:6eea  prefixlen 64  scopeid 0x20<link>
        ether 00:04:4b:f6:6e:ea  txqueuelen 1000  (Ethernet)
        RX packets 1664  bytes 144657 (144.6 KB)
        RX errors 0  dropped 27  overruns 0  frame 0
        TX packets 1282  bytes 1962802590509 (1.9 TB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0.200: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.42.0.28  netmask 255.255.255.0  broadcast 10.42.0.255
        inet6 fe80::204:4bff:fef6:6eea  prefixlen 64  scopeid 0x20<link>
        ether 00:04:4b:f6:6e:ea  txqueuelen 1000  (Ethernet)
        RX packets 169  bytes 72462 (72.4 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 186  bytes 79736 (79.7 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 321  bytes 141569 (141.5 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 321  bytes 141569 (141.5 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

nvidia@tegra-ubuntu:~$ 

The “enp4s0” still has no ip.

I then opened link: https://docs.nvidia.com/drive/drive-os-5.2.6.0L/drive-os/index.html#page/DRIVE_OS_Linux_SDK_NGC_Development_Guide/config_network_setup.html#wwpID0EXHA

Created a file “/etc/netplan/01-network-manager-all.yaml”

 network:
         version: 2
         renderer: networkd
         ethernets:
              enp4s0: 
                  dhcp4: no
                  dhcp6: no
                  addresses:
                             - 172.23.37.10/22   
                  gateway4: 172.23.37.1       

ran:

sudo netplan apply
sudo reboot

The ifconfig shows that “enp4s0” still has no ip.

Any ideas?

Dear @Sunny127,
Could you share connection details and dmseg and syslog outputs

Here are the connection details, dmesg and syslog outputs:

dmesg.txt (68.6 KB)
ethtool.txt (999 Bytes)
ifconfig.txt (3.0 KB)
ip link show.txt (1.2 KB)
netstat.txt (558 Bytes)
syslog.txt (14.6 MB)

Dear @Sunny127,
Could you please confirm if you still have this issue?

I indeed still have the issue.

Hi,

Is there any solution to this question? I have the same question as well.

Thank you,

1 Like

@SivaRamaKrishnaNV
Any ideas, does modify /etc/systemd/networks works?
why default does not have eth0.400, eth0.900 vlan info

When I started using DHCP to automatically assign IP addresses to computers and devices in our house, I could change the subnet mask for all of them using the administration interface of my router. I found this out when I wanted to change the IP address on Android by visiting How to Change the IP Address on Your Android Device before doing so. I use the web browser on my computer to access the router’s web interface. To do this, I must go to the router’s address and log in with my account and password. On most routers, this is 192.168.0.1 or 192.168.1.1, but they can vary.

Hi,

Is there any solution to this question? I have the same question as well.

Thank you,

sudo apt install netplan solves the problem.

sudo nano /etc/netplan/01-network-mgbe1_0.yaml

# edited by zhensheng
network:
  version: 2
  renderer: networkd
  ethernets:
    mgbe1_0:
      dhcp4: no
      dhcp6: no
      addresses: [192.168.137.113/24]
        # 10.10.11.112/24
      gateway4: 192.168.137.1
      nameservers:
        addresses: [168.168.3.1,168.168.3.2,168.168.1.75]

sudo netplan apply
1 Like