ubuntu使用虚拟can(vcan)
1.sudo modprobe vcan
加载虚拟can模块
2.sudo ip link add dev can0 type vcan
添加can0网卡
3.ifconfig -a
查看can0
4.sudo ip link set dev can0 up
开启can0
5.sudo ip link set dev can0 down
关闭can0
6. sudo ip link del dev can0
删除can0