hello.
In my project, I need to set eth0 ip 192.168.1.*, when the orin connect with my lidars.
But if I find it connected to another device, the ip must set as Automatic(DHCP). (not reboot system)
How can I change static ip to automatic by cmd or program?
This isn’t ideal, but you might try configuring that interface from nm-connection-editor (if you don’t have this, then “sudo apt-get install network-manager-gnome”).
Network scripts are rather complicated these days (depends on if it is “managed” or “unmanaged”). Are you able to use the USB virtual wired networking (temporarily) from a host PC? If so, then you can use “ssh -Y 192.168.55.1”, and this will forward GUI requests and run the graphics on the host PC despite not having a monitor on the Jetson. I wouldn’t know what config files to edit on the Jetson if going directly to it (it was a lot less complicated before systemd came along).