Skip to content

Instantly share code, notes, and snippets.

@ardasevinc
Created July 2, 2022 13:48
Show Gist options
  • Save ardasevinc/1de971152aa740e02a0481d17c76e744 to your computer and use it in GitHub Desktop.
Save ardasevinc/1de971152aa740e02a0481d17c76e744 to your computer and use it in GitHub Desktop.
Create a basic virtual can network in linux
#!/bin/bash
set -e
echo "> Creating and enabling the can interface"
sudo ip link add dev vcan0 type vcan && sudo ip link set vcan0 up
echo "> Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment