TLDR ;
Use nmcli con mod [id]
and nmcli con [down up] [id]
as root.
eg:
nmcli con show
nmcli con mod "Wired connection 1" \
ipv4.addresses "192.168.8.70/24" \
ipv4.gateway "192.168.8.1" \
ipv4.dns "8.8.8.8 1.1.1.1" \
ipv4.dns-search "8.8.4.4" \
ipv4.method "manual"
(nmcli con down id "Wired connection 1" && nmcli con up id "Wired connection 1")& # or reboot device
LR ;
Recent Jetsons nano use linux network-manager to manage network interfaces.
you have to, either use the UI to modify the settings or use cli as below :
- show network connections with :
nmcli con show
nmcli con show
- Edit or Modify the wired network or your preferred interface with
sudo nmcli con mod "Wired connection 1" \
ipv4.addresses "192.168.8.70/24" \
ipv4.gateway "192.168.8.1" \
ipv4.dns "8.8.8.8 1.1.1.1" \
ipv4.dns-search "8.8.4.4" \
ipv4.method "manual"
Edit IPs as suits you and
- Down/Up connection or reboot your jetson with :
(nmcli con down id "Wired connection 1" && nmcli con up id "Wired connection 1")&
or just reboot
after that you'll lose access to it and with another terminal you can ping and access your jetson again.