Skip to content

Instantly share code, notes, and snippets.

@liaohuqiu
Last active December 21, 2016 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liaohuqiu/cefb94f2336cf6d2ef2ffb6682e00404 to your computer and use it in GitHub Desktop.
Save liaohuqiu/cefb94f2336cf6d2ef2ffb6682e00404 to your computer and use it in GitHub Desktop.
# using route
route del default gw 192.168.0.1
route add default gw 192.168.0.4
# or using ip
ip route del default
ip route add default via 192.168.0.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment