Skip to content

Instantly share code, notes, and snippets.

@Lauszus
Last active September 25, 2023 01:10
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Lauszus/733c4c4c6abacd19a0b5dad099fab172 to your computer and use it in GitHub Desktop.
Save Lauszus/733c4c4c6abacd19a0b5dad099fab172 to your computer and use it in GitHub Desktop.
Ubuntu 20.04 auto configure CAN bus interfaces using systemd
[Match]
Name=can*
[CAN]
BitRate=250000
# Put this file in: "/etc/systemd/network/" and then run "sudo systemctl enable systemd-networkd" to enable systemd-networkd
# Now start systemd-networkd: "sudo systemctl start systemd-networkd"
# Credit: https://github.com/linux-can/can-utils/issues/68#issuecomment-584505426
@vibnwis
Copy link

vibnwis commented Oct 15, 2020

Would you mind sharing what CAN-controller board do you use? what file is it you put in "/etc/systemd/network/"

@vibnwis
Copy link

vibnwis commented Oct 15, 2020

Okie, I resolved the file issue. May I know what CAN-Controller board do you use, please?

@Lauszus
Copy link
Author

Lauszus commented Oct 15, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment