Enable Virtual CAN Interface (vcan)

I would like to create a virtual CAN interface in Fedora 35. However, Fedora seems to be built without vcan support:

> sudo ip link add dev vcan0 type vcan
Error: unknown device type.

The kernel itself seems to be compiled with the vcan option enabled, but the module seems to be missing (as far as I can tell):

> sudo modprobe vcan
modprobe: FATAL: Module vcan not found in directory /lib/modules/5.15.6-200.fc35.x86_64

> grep CONFIG_CAN_V /boot/config-`uname -r`

> dnf search vcan
Last metadata expiration check: 2 days, 3:00:03 ago on Mon 13 Dec 2021 02:23:32 PM CET.
No matches found.

Is there any way for me to provide the missing module?



I’ve done that before, but forgot to reboot. After installing the package and rebooting (duh…) everything works as expected.


1 Like