Hi,
I have configured my TX2 to have a static IP address. However, when I make a clone, the cloned module is set to DHCP, therefore I would like to investigate this.
cat /etc/network/interfaces reports
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
and
/etc/network/interfaces.d
is empty
Also, after reading up on nmcli,
I discovered that network config information can normally be found in
/etc/sysconfig/
however this folder does not exist on my TX2.
I am using both Jetpack 3.2.1 and Jetpack 4.2. Strangely, the clone of 3.2.1 retains the IP address, whereas the 4.2 clone does not.
Can someone advise, where the static ip settings are stored please.
Thanks.
There is a strong chance the address was bound to the MAC address, and the MAC address will change depending on which Jetson is used. I don’t recall where MAC address is stored, but sometimes it is in a udev rule, and at other times in one of the other network files.
If you run “ifconfig”, and find the MAC address, then run “sudo nm-connection-editor”, does the actual MAC address show up correctly in the “IPv4 Settings” and “Ethernet” tabs? Keep in mind the original MAC probably won’t show up at all since no hardware is present with that MAC, but I am hoping perhaps something gives this away.
Check at “/etc/NetworkManager/system-connections/?”. So for example, if name is “Wired connection 1”:
cat /etc/NetworkManager/system-connections/Wired\ connection\ 1
…if there, then there should be a “mac-address=” line.
Thanks very much.
This explains the problem I am having with the clone.
Yes this file stores the network settings and mac address, and as a test, I can modify it manually to change the static IP address.
Also, if I change the mac address in this file, the static IP address will no longer be applied and the connection will revert to DHCP, so this explains why the clone will not retain the static IP address on another TX2 module.
In Nano, where are the gateway, DNS, stored in?
These are provided by the DHCP server. This isn’t any different for the Nano versus any other Ubuntu. Typically DNS gets updated and placed in “/etc/resolv.conf”, and if you are thinking of editing this, then don’t…there are other places for this when overriding DHCP. The “route” command tells you about gateways.
If you have a more specific question, then this might be easier to answer, especially when NetworkManager gets its fingers into things…this can deal with temporary connections, e.g., WiFi, and answers may change drastically depending on what you are doing.