使用 traceroute 命令,打印的第一条路由信息为什么不是我的本地网关,而是运营商的 ip

2014-02-21 14:43:40 +08:00
 FranklinSun
在购买的vps上搭建了vpn,为了节省流量,想通过类似chnroutes的增加国内ip到路由表的方法,把国内的流量和国外的流量分开,来节省vpn流量还能提高国内网站的访问速度,但是配置好之后,并没有达到效果。
查看路由表信息是:
Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
default 199.119.139.4 UGSc 40 0 ppp0
default 192.168.1.1 UGScI 11 0 en1
default link#10 UCSI 3 0 bridge1
1.0.1/24 192.168.1.1 UGSc 0 0 en1
1.0.2/23 192.168.1.1 UGSc 0 0 en1
......

跟踪路由信息,traceroute www.sina.com.cn
连接vpn之前:
traceroute to polaris.sina.com.cn (202.108.33.60), 64 hops max, 52 byte packets
1 59.108.0.125 (59.108.0.125) 2.570 ms 1.954 ms 2.072 ms
2 192.168.4.10 (192.168.4.10) 1.825 ms 2.085 ms 2.100 ms
3 59.108.2.153 (59.108.2.153) 2.187 ms 4.030 ms 2.049 ms
4 192.168.81.137 (192.168.81.137) 2.592 ms 3.351 ms 2.933 ms
5 10.2.11.29 (10.2.11.29) 5.975 ms * 449.917 ms
......
连接vpn之后:
traceroute: Warning: www.sina.com.cn has multiple addresses; using 183.60.187.40
traceroute to ara.sina.com.cn (183.60.187.40), 64 hops max, 52 byte packets
1 59.108.0.125 (59.108.0.125) 2.559 ms 2.090 ms 1.789 ms
2 192.168.4.10 (192.168.4.10) 2.282 ms 5.129 ms 2.207 ms
3 59.108.3.2 (59.108.3.2) 2.694 ms 2.727 ms 2.276 ms
4 192.168.81.5 (192.168.81.5) 3.537 ms 3.753 ms 3.494 ms
5 192.168.80.110 (192.168.80.110) 5.033 ms 9.555 ms 8.024 ms
.......

这样问题就来了, 无论连不连vpn,第一条路由信息直接就是59.108.0.125(方正宽带的服务器ip),本地的网关192.168.1.1没起到作用啊,但是同样的配置,在联通的网络下就可以达到国内和国外流量分开访问的效果,并且路由跟踪第一条都是本地的网关,国内的就是192.168.1.1,国外的就是199.119.139.4

有人遇到这种情况吗?或者知道的解释下,谢谢
3387 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/101232

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX