Skip to content

Linux setup guide

For USB devices in the Kvaser Automotive Ethernet family, a udev rule can be used to configure the devices automatically.

Some network managers will disable any network interface that does not provide an internet connection. Since our interfaces do not provide internet connectivity it will disable our interfaces completely. This rule ensures that when a Kvaser device is connected through USB it is marked for network managers as unmanaged and set to link up.

  1. Save the following file as /etc/udev/rules.d/99-kvaser-usb-cdc-ncm-net.rules
  2. Apply the rule with sudo udevadm control --reload
/etc/udev/rules.d/99-kvaser-usb-cdc-ncm-net.rules
# Rule for Kvaser USB CDC-NCM based products
#
# What it does:
#  - When a matching USB CDC-NCM network interface appears,
#    mark it unmanaged for NetworkManager to leave it alone.
#  - Immediately bring the link UP.

# Kvaser Arcus 100/1000BASE-T1 H-MTD, EAN:73-30130-01810-5
ACTION=="add", SUBSYSTEM=="net", KERNEL!="lo", \
  ENV{ID_VENDOR_ID}=="0bfd", ENV{ID_MODEL_ID}=="0190", \
  ENV{NM_UNMANAGED}="1", \
  RUN+="/usr/sbin/ip link set dev $name up"