Hi, I’m trying to figure out how to establish a connection to a local ethernet device. A separate ethernet interface is being used to connect to the resin-vpn. I’m using Resin OS 2.2.0+rev1.dev with an Intel NUC.
I am trying to access data from a LiDAR sensor, and this data is sent over ethernet. Inside the container I have created a network interface in the /etc/network/interfaces file, and set up a udev rule. I’m able to successfully bring up the interface using
ifup lidar0, the connection has an IP address associated with it in the
ifconfig output, and I am able to communicate with the device. However, shortly after the
lidar0 interface is brought up, the IP address disappears and I’m not able to communicate with the device.
# New interface in /etc/network/interfaces auto lidar0 iface lidar0 inet static address 192.168.1.100 netmask 255.255.255.0 gateway 0.0.0.0 # udev rule SUBSYSTEM=="net", ACTION=="add", DRIVERS=="asix", NAME="lidar0"
My theory is that somehow NetworkManager is resetting the interface connection, but I’m having difficulty debugging what NetworkManager is doing.
I’ve also tried adding a file in the ResinOS /flash-boot/system-connections/ folder to set up a static IP for the LiDAR connection, but I didn’t have any success with that either.
Can someone point me in the right direction or suggest any NetworkManager debugging tips? I have tried using
nmcli while SSHing into the host OS but I was getting an “Could not create NMClient object: Could not connect: No such file or directory” when running