PCAN-Linux: Permanent assignment of canx (PCAN-USB)
Posted: Tue 27. Feb 2024, 20:01
Hello,
I'm running Linux redhat 8 and I have 5 adapters on one system that need to stay labeled as the netdev can# they are set to. Can0 is one sensor, can1 is a power supply, etc. when I reboot all the can#'s get scrambled across all the adapters so I have to unplug and plug them all in and figure out what's what every time. I've given them unique ID's but my system doesn't use udev so I'm not able to create a rule to link them. Any ideas how I can keep the net dev can interface from renumbering every time?
Thanks,
CM
I'm running Linux redhat 8 and I have 5 adapters on one system that need to stay labeled as the netdev can# they are set to. Can0 is one sensor, can1 is a power supply, etc. when I reboot all the can#'s get scrambled across all the adapters so I have to unplug and plug them all in and figure out what's what every time. I've given them unique ID's but my system doesn't use udev so I'm not able to create a rule to link them. Any ideas how I can keep the net dev can interface from renumbering every time?
Thanks,
CM