SBC(Single Board Computer) - Using USB LAN

Some x86 series SBCs have two LAN ports, but most SBCs such as Raspberry Pi, Jetson Nano, Odroid XU4, and Tinker Board have one LAN port. If you need to connect to two different networks , you will inevitably use a USB LAN adapter. <USB LAN Adapter> Recently I also needed to connect to two networks using Odroid XU4, so I used a USB LAN adapter. However, after rebooting the system, the adapter name was changed. I don't use Network Manager. Modify the /etc/network/interfaces file to configure the network. To connect to two different networks, on board eth1 interface is connected to network A and USB interface eth2 is connected to network B. However, after rebooting, the USB interface was renamed to eth1 and the on board interface was changed to eth2. In this case, both networks A and B are disconnected. To prevent this from happening, you need to fix the interface name. Fix the interface name This can be fixed by editing the contents of /etc/udev/rules.d/70-persistent-ne...