Skip to content

Instantly share code, notes, and snippets.

@midwire
Created July 10, 2014 13:56
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 midwire/4ce1cf69bf6541a96e19 to your computer and use it in GitHub Desktop.
Save midwire/4ce1cf69bf6541a96e19 to your computer and use it in GitHub Desktop.
Determine the default gateway on OSX.
#!/usr/bin/env bash
# determine the local gateway
netstat -nr|grep '^default'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment