MacOS的路由表查询不是用我们熟知的route命令,而是使用命令 netstat -r 或者netstat -nr(不做域名解释)来查看

netstat -r
Routing tables

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Internet:
Destination Gateway Flags Netif Expire
default 192.168.3.1 UGSc en0
127 localhost UCS lo0
localhost localhost UH lo0
169.254 link#4 UCS en0 !
192.168.3 link#4 UCS en0 !
192.168.3.1/32 link#4 UCS en0 !
192.168.3.1 a1:9b:00:00:ea:18 UHLWIir en0 1165
192.168.3.4 51:00:00:00:ee:18 UHLWIi en0 1153
192.168.3.5/32 link#4 UCS en0 !
192.168.3.8 a1:1f:00:00:a:88 UHLWIi en0 795
224.0.0/4 link#4 UmCS en0 !
224.0.0.251 1:0:00:0:0:fb UHmLWI en0
239.255.255.250 1:0:00:11:ff:fa UHmLWI en0
255.255.255.255/32 link#4 UCS en0 !

如果加-n不解析域名也就是,那么destination就是ip,如: