连上netkeepr之后以前在windows上一直是会用route add命令的,但是到Mac平台之后搜了好多次一直没有把静态路由配成功了,今天偶然在这里发现了设置的方法,终于成功了,再也不用上内网的时候断开netkeeper了。
参考:
http://bbs.iosre.com/t/ssh-mac/1575
➜ sudo route -n add 172.16.0.0/12 172.1x.yyy.1 [1:47:44]
Password:
add net 172.16.0.0: gateway 172.1x.yyy.1
➜ route -rn|grep 172.16 [1:49:08]
172.16/12 172.1x.yyy.1 UGSc 0 2 en4
➜ ping 172.23.22.1 [1:48:55]
PING 172.23.22.1 (172.23.22.1): 56 data bytes
64 bytes from 172.23.22.1: icmp_seq=0 ttl=251 time=1.901 ms
64 bytes from 172.23.22.1: icmp_seq=1 ttl=251 time=1.938 ms
^C
Done!