Skip to content

Instantly share code, notes, and snippets.

@ponsuke0531
Created July 15, 2017 09:37
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 ponsuke0531/57edba2f0ca8b69706ede84d92fac67a to your computer and use it in GitHub Desktop.
Save ponsuke0531/57edba2f0ca8b69706ede84d92fac67a to your computer and use it in GitHub Desktop.
Macで自分のゲートウェイを確認する方法 ref: http://qiita.com/ponsuke0531/items/3a559ffc08aed8b19281
$ route <-------------- 使えない
usage: route [-dnqtv] command [[modifiers] args]
$ route -n <-------------- 使えない
usage: route [-dnqtv] command [[modifiers] args]
$ route -n get 0.0.0.0
route to: default
destination: default
mask: default
gateway: 192.168.0.1
<省略>
$ ip route
default via 192.168.0.1 dev en0
<省略>
$ netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.0.1 UGSc 44 0 en0
<省略>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment