Comment 49 for bug 1667750

Revision history for this message
dragon788 (dragon788) wrote :

Patrick, I definitely like your script as a quick workaround (as even 100Mb/s is better than our busy wireless), and I'm trying to make it a little more generic.

If you run `udevadm info -e | grep -A 10 '^P.*enx'` what does it show for ID_MODEL_ID and ID_NET_DRIVER and ID_NET_NAME? My system reports 8153 and 8152 and enp14s0u1u2 respectively for the TB16 and the TB15. The only difference when testing with a Dell D59GG USB-C ethernet adapter was the ID_NET_NAME changed because it wasn't going through the ASMedia USB hub anymore.

Using the ID_NET_NAME may be a better way to identify the device as the MAC address changes per host (my MAC was the same when connected to the TB15 and TB16 and the USB-C adapter thanks to some previous kernel patches that have gone upstream integrating the host fixed MAC, but the ID_NET_NAME should be the same for all the docks (and hopefully a low probability to overlap with USB2/USB3 gigabit ethernet adapters commonly in use). The fixed MAC is nice as it keeps the same IP if I change between docks or the USB-C within our LAN.