Skip to content

Instantly share code, notes, and snippets.

@intx82
Last active February 18, 2023 14:26
Show Gist options
  • Save intx82/42ece216e8f351330e6fdcd2f2576c12 to your computer and use it in GitHub Desktop.
Save intx82/42ece216e8f351330e6fdcd2f2576c12 to your computer and use it in GitHub Desktop.
network over uart for embedded device (slip)
#!/bin/bash
ifconfig sl0 down
pkill slattach
#!/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