在这里我们可以看到路由器是67.23.27.187
(第一跳),但网关是67.23.27.1
。网关和路由器之间有什么区别?仅配置网关地址时,我的计算机如何知道路由器的IP?
[root@jiaoyou ~]# tracepath google.com
1: 67-23-27-187.static.slicehost.net (67.23.27.187) 0.000ms pmtu 1500
1: 67-23-24-2.static.slicehost.net (67.23.24.2) 0.000ms
1: 67-23-24-2.static.slicehost.net (67.23.24.2) 4.000ms
2: core7-aggr511a-1.dfw1.rackspace.net (98.129.84.148) 128.008ms
3: bbr1-core7-vlan2007.dfw1.rackspace.net (174.143.123.117) 4.000ms
4: no reply
5: no reply
[root@jiaoyou ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=jiaoyou
GATEWAY=67.23.27.1
netstat -rn
吗?