上网方式很简单:无线路由器 + adsl拨号
路由器地址 192.168.1.1
登录后
在本机上
curl ip.gs
当前 IP:111.39.103.60
traceroute sina.com.cn
traceroute to sina.com.cn (202.108.33.60), 30 hops max, 60 byte packets
1 router.asus.com (192.168.1.1) 0.324 ms 0.330 ms 0.379 ms
2 100.65.0.1 (100.65.0.1) 2.920 ms 2.980 ms 3.254 ms
3 * * *
4 221.183.13.185 (221.183.13.185) 5.408 ms 5.394 ms 5.405 ms
5 221.183.22.81 (221.183.22.81) 44.371 ms * *
6 221.183.10.166 (221.183.10.166) 41.472 ms * 46.109 ms
7 * * *
8 219.158.34.229 (219.158.34.229) 65.886 ms 219.158.34.233 (219.158.34.233) 65.415 ms 65.423 ms
9 219.158.4.69 (219.158.4.69) 66.259 ms 66.222 ms 59.296 ms
10 124.65.194.102 (124.65.194.102) 62.444 ms 59.505 ms 56.102 ms
11 61.148.143.18 (61.148.143.18) 62.422 ms 61.511 ms 60.995 ms
12 210.74.178.198 (210.74.178.198) 89.371 ms 89.805 ms 74.312 ms
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
请问,为何路由器显示的wan地址为何是 100.65.60.15,为何和curl ip.gs显示的地址不一致?
外网地址与路由器的显示
-
- 帖子: 104
- 注册时间: 2016-07-08 17:43
- 系统: debian8
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 外网地址与路由器的显示
試試traceroute sina.com.cn
sudo tracepath sina.com.cn
參閱
http://manpages.ubuntu.com/manpages/tru ... .db.1.html
traceroute - print the route packets trace to network host
http://manpages.ubuntu.com/manpages/xen ... ath.8.html
tracepath, tracepath6 - traces path to a network host discovering MTU along this path
- kashu
- 帖子: 451
- 注册时间: 2014-02-07 17:31
- 系统: Xubuntu 14.04.5 64位
Re: 外网地址与路由器的显示
原因很简单,因为我们在一个很大的局域网里。
http://www.iana.org/assignments/iana-ip ... stry.xhtml
https://en.wikipedia.org/wiki/Reserved_IP_addresses
运营商给你路由器WAN口上分配的100.65.60.15,对于整个互联网而言,此IP和192.168.x.x是没区别的,即:实际性质就是个 私网地址。
中国移动铁通宽带就是这副样子
代码: 全选
Address Block Name RFC Allocation Termination Source Destination Forwardable Global Reserved-by-Protocol
Date Date
0.0.0.0/8 "This host on [RFC1122], section 3.2.1.3 1981-09 N/A True False False False True
this network"
10.0.0.0/8 Private-Use [RFC1918] 1996-02 N/A True True True False False
100.64.0.0/10 Shared [RFC6598] 2012-04 N/A True True True False False
Address Space
127.0.0.0/8 Loopback [RFC1122], section 3.2.1.3 1981-09 N/A False[1] False[1] False[1] False[1] True
169.254.0.0/16 Link Local [RFC3927] 2005-05 N/A True True False False True
172.16.0.0/12 Private-Use [RFC1918] 1996-02 N/A True True True False False
192.0.0.0/24[2] IETF Protocol [RFC6890], section 2.1 2010-01 N/A False False False False False
Assignments
IPv4 Service
192.0.0.0/29 Continuity [RFC7335] 2011-06 N/A True True True False False
Prefix
192.0.0.8/32 IPv4 dummy [RFC7600] 2015-03 N/A True False False False False
address
Port Control
192.0.0.9/32 Protocol [RFC7723] 2015-10 N/A True True True True False
Anycast
Traversal
192.0.0.10/32 Using Relays [RFC-ietf-tram-turn-server-discovery-12] 2017-02 N/A True True True True False
around NAT
Anycast
192.0.0.170/32, NAT64/DNS64 [RFC7050], section 2.2 2013-02 N/A False False False False True
192.0.0.171/32 Discovery
192.0.2.0/24 Documentation [RFC5737] 2010-01 N/A False False False False False
(TEST-NET-1)
192.31.196.0/24 AS112-v4 [RFC7535] 2014-12 N/A True True True True False
192.52.193.0/24 AMT [RFC7450] 2014-12 N/A True True True True False
Deprecated
192.88.99.0/24 (6to4 Relay [RFC7526] 2001-06 2015-03
Anycast)
192.168.0.0/16 Private-Use [RFC1918] 1996-02 N/A True True True False False
Direct
192.175.48.0/24 Delegation [RFC7534] 1996-01 N/A True True True True False
AS112 Service
198.18.0.0/15 Benchmarking [RFC2544] 1999-03 N/A True True True False False
198.51.100.0/24 Documentation [RFC5737] 2010-01 N/A False False False False False
(TEST-NET-2)
203.0.113.0/24 Documentation [RFC5737] 2010-01 N/A False False False False False
(TEST-NET-3)
240.0.0.0/4 Reserved [RFC1112], section 4 1989-08 N/A False False False False True
255.255.255.255/32 Limited [RFC919], section 7 1984-10 N/A False True False False False
Broadcast
https://en.wikipedia.org/wiki/Reserved_IP_addresses
运营商给你路由器WAN口上分配的100.65.60.15,对于整个互联网而言,此IP和192.168.x.x是没区别的,即:实际性质就是个 私网地址。
中国移动铁通宽带就是这副样子
OS: Xubuntu 14.04.5 LTS 64-bit
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
RAM: 12GB DDR3 1333MHz
128GB SSD + 2TB HDD
神舟优雅A480B-I5B 购于 2012.08
YouTube频道:https://www.youtube.com/channel/UCGSPXZ ... DuDYX8L6Qg