sudo modprobe vcan --> modprobe: FATAL: Module vcan not found in directory /lib/modules/4.18.0-305.12.1.el8_4.x86_64

Latest response

I'm trying to create a virtual CANBUS under a RHEL 8.4. This worked fine under CentOS 7 using the following commands;

sudo modprobe vcan
sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0

Under RHEL 8 I get the following error;

modprobe: FATAL: Module vcan not found in directory /lib/modules/4.18.0-305.12.1.el8_4.x86_64

Seems like a need an additional kernel module for vcan but I'm not sure how to install if that is indeed the problem.

Thanks in advance.

Responses