それマグで!

知識はカップより、マグでゆっくり頂きます。 takuya_1stのブログ

習慣に早くから配慮した者は、 おそらく人生の実りも大きい。

Mac OSX で ルーティングテーブルの表示確認

Mac のルーティングテーブルを確認するには

netstat -nr

です。

実際にヤってみた結果

takuya@rena:~/Desktop$ netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags        Refs      Use   Netif Expire
default            172.20.10.1        UGSc           57        0     en0
default            link#13            UCSI            2        0    tap0
127                127.0.0.1          UCS             0        0     lo0
127.0.0.1          127.0.0.1          UH              6    26796     lo0
169.254            link#4             UCS             0        0     en0
169.254            link#13            UCSI            0        0    tap0
172.20.10/28       link#4             UCS             0        0     en0
172.20.10.1/32     link#4             UCS             2        0     en0
172.20.10.1        fa:xxxxxxxxxxxxxx  UHLWIir        59       80     en0    439
172.20.10.2/32     link#4             UCS             1        0     en0
172.20.10.2        60:3:8:a1:82:c     UHLWI           0      125     lo0
192.168.2          link#13            UCS             5        0    tap0
192.168.2.1        0:1xxxxxxxxxxxxxx  UHLWIi          1      255    tap0   1163
192.168.2.5        22:xxxxxxxxxxxxxx  UHLWIi          1        4    tap0   1152
192.168.2.9        22:xxxxxxxxxxxxxx  UHLWI           0        0    tap0   1157
192.168.2.14       0:1xxxxxxxxxxxxxx  UHLWI           0        0    tap0    439
192.168.2.29       22:xxxxxxxxxxxxxx  UHLWI           0       63    tap0   1150
192.168.2.154/32   linxxxxxxxxxxxxxx  UCS             1        0    tap0
192.168.2.154      fa:xxxxxxxxxxxxxx  UHLWIi          1        6     lo0
224.0.0.251        1:0xxxxxxxxxxxxxx  UHmLWI          0        0    tap0
239.255.255.250    1:0xxxxxxxxxxxxxx  UHmLWI          0        2    tap0

Internet6:
Destination                             Gateway                         Flags         Netif Expire
::1                                     ::1                             UHL             lo0
fe80::%lo0/64                           fe80::1%lo0                     UcI             lo0
fe80::1%lo0                             link#1                          UHLI            lo0
fe80::%en0/64                           link#4                          UCI             en0
fe80::c06:4716:5128:fc4e%en0            fa:xxxxxxxxxxxxxx               UHLWI           en0
fe80::10e1:b1fc:bb25:a623%en0           b4:xxxxxxxxxxxxxx               UHLWI           en0
fe80::6203:8ff:fea1:820c%en0            60:xxxxxxxxxxxxxx               UHLI            lo0
fe80::%awdl0/64                         link#9                          UCI           awdl0
fe80::80a6:72ff:fecd:c8e9%awdl0         82:a6:72:cd:c8:e9               UHLI            lo0
fe80::%utun0/64                         fe80::xxxxxxxxxxxxxxxxxx%utun0  UcI           utun0
fe80::4d6:90f1:bbd9:1858%utun0          link#1xxxxxxxxxxxxxxxxxx        UHLI            lo0
ff01::%lo0/32                           ::1   xxxxxxxxxxxxxxxxxx        UmCI            lo0
ff01::%en0/32                           link#4xxxxxxxxxxxxxxxxxx        UmCI            en0
ff01::%awdl0/32                         link#9xxxxxxxxxxxxxxxxxx        UmCI          awdl0
ff01::%utun0/32                         fe80::xxxxxxxxxxxxxxxxxx%utun0  UmCI          utun0
ff02::%lo0/32                           ::1   xxxxxxxxxxxxxxxxxx        UmCI            lo0
ff02::%en0/32                           link#4xxxxxxxxxxxxxxxxxx        UmCI            en0
ff02::%awdl0/32                         link#9xxxxxxxxxxxxxxxxxx        UmCI          awdl0
ff02::%utun0/32                         fe80::xxxxxxxxxxxxxxxxxx%utun0  UmCI          utun0