Created
July 15, 2017 09:37
-
-
Save ponsuke0531/57edba2f0ca8b69706ede84d92fac67a to your computer and use it in GitHub Desktop.
Macで自分のゲートウェイを確認する方法 ref: http://qiita.com/ponsuke0531/items/3a559ffc08aed8b19281
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 | |
<省略> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ip route | |
default via 192.168.0.1 dev en0 | |
<省略> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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