Created
July 2, 2022 13:48
-
-
Save ardasevinc/1de971152aa740e02a0481d17c76e744 to your computer and use it in GitHub Desktop.
Create a basic virtual can network in linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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