Last active
February 18, 2023 14:26
-
-
Save intx82/42ece216e8f351330e6fdcd2f2576c12 to your computer and use it in GitHub Desktop.
network over uart for embedded device (slip)
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 | |
ifconfig sl0 down | |
pkill slattach |
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 | |
slattach -L -d /dev/ttyGS0 & | |
sleep 1 | |
ifconfig sl0 10.42.0.2 pointtopoint 10.42.0.1 up | |
ifconfig sl0 mtu 1536 up | |
route add default gw 10.42.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment