Skip to content

Instantly share code, notes, and snippets.

@agusvama
Created October 3, 2016 14:46
Show Gist options
  • Save agusvama/96007a5ed2916e54db8c3aac47c5fe1b to your computer and use it in GitHub Desktop.
Save agusvama/96007a5ed2916e54db8c3aac47c5fe1b to your computer and use it in GitHub Desktop.
//static ip configuration on Slackware
//turn down interface
# ip link set eth0 down
//flush old ip
# ip addr flush dev eth0 up
//add static ip
# ip addr add {ip}/{mask} dev eth0 broadcast +
//turn on interface
# ip link set eth0 up
//add gateway
# ip route add default via {gateway}
//after this you can perform a ping to check connection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment