If you have configured a static IP address on your robot, you may not know which ethernet port is concerned. Here is how to differentiate this port from the others.
Case 1 - MacMini robots
Case 2 - Latest Linux robots (with graphical interface)
ifconfig -s
Look at the rows starting with "enp". Spot the interface with RX/TX values not set to 0. In this example, the used interface is enp3s0. This is the interface that's connected to the RJ45 cable.
ls /etc/netplan
vim /etc/netplan/01-netcfg.yaml
If the name of your file is different, you need to adapt the command accordingly (or you can just type "vim /etc/netplan/" and press the Tab key to autocomplete).
You should get a result that looks like this:
If an interface has been setup with a static IP then it is the one with dhcp set to “no”. In this example, the configured interface is enp1s0
You can exit the vim command by typing ":q!"
If the cable is connected to the right port, the "enp" interface that you just found should be the same as the one you found in this step. If it is not the same, just connect the cable to another RJ45 port and go back to this step
Case 4 - Old Linux robots (without graphical interface) using Fedora
First of all, login to the robot using your credentials (login and password). Then, you can check what OS is installed on your robot. If it is Fedora, then you will only get this prompt:
ifconfig -s
nmcli device show
The port configuration (IP, gateway and DNS) can be found here.
If the cable is connected to the right port, the "enp" interface that is configured with a static IP should be the same as the one you found in this step. If it is not the same, just connect the cable to another RJ45 port and go back to this step.