DL-GreatWall 发表于 2013-11-25 05:53

PING 192.168.0.15,走哪个网卡?

我的笔记本2个接口。

【WIFI】 配置如下
IP: 192.168.1.103
MAKS 255.255.255.0
GATWAY: 192.168.1.1
--------------------------

【有线连接】 配置如下
IP: 192.168.1.220
MAKS 255.255.254.0
GATWAY: 192.168.254.1

现在我 ping 192.168.0.15 , ping包走哪个网口? WIFI还是有线?
解释下走这个网口的理由? 谢谢!

ssffzz1 发表于 2013-11-25 09:40

列路由表。

justcustom 发表于 2013-11-25 10:37

如果两条都能到的话是由操作系统按启用顺序定的 命令行下 route print 显示路由条目。默认路由0.0.0.0 是谁就走那个接口

ssffzz1 发表于 2013-11-25 11:10

如果两条都不能到的话,也是这丫样子。

DL-GreatWall 发表于 2013-11-25 12:32

===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x150002 ...74 e5 0b 67 f4 a6 ...... Intel(R) Centrino(R) Wireless-N 1000 - Connectify Miniport
0x150003 ...f0 de f1 a3 b5 e3 ...... Realtek PCIe GBE Family Controller - Connectify Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination      Netmask          Gateway       InterfaceMetric
          0.0.0.0          0.0.0.0      192.168.1.1   192.168.1.106          30
      127.0.0.0      255.0.0.0      127.0.0.1       127.0.0.1          1
      192.168.0.0    255.255.254.0    192.168.1.220   192.168.1.220          20
      192.168.1.0    255.255.255.0    192.168.1.106   192.168.1.106          25
    192.168.1.106255.255.255.255      127.0.0.1       127.0.0.1          25
    192.168.1.220255.255.255.255      127.0.0.1       127.0.0.1          20
    192.168.1.255255.255.255.255    192.168.1.106   192.168.1.106          25
    192.168.1.255255.255.255.255    192.168.1.220   192.168.1.220          20
      224.0.0.0      240.0.0.0    192.168.1.106   192.168.1.106          25
      224.0.0.0      240.0.0.0    192.168.1.220   192.168.1.220          20
255.255.255.255255.255.255.255    192.168.1.106   192.168.1.106          1
255.255.255.255255.255.255.255    192.168.1.220   192.168.1.220          1
Default Gateway:       192.168.1.1
===========================================================================
Persistent Routes:
Network Address          NetmaskGateway AddressMetric
       172.31.2.0    255.255.255.0      172.31.22.1      20
      192.168.4.0    255.255.255.0   192.168.10.254       1
---------------------------------------------------------------------------回复 2# ssffzz1


   

ssffzz1 发表于 2013-11-25 12:58

192.168.0.0    255.255.254.0    192.168.1.220   192.168.1.220          20

DL-GreatWall 发表于 2013-11-25 14:19

谢谢斑竹, 我知道什么原理了,非常感谢!回复 6# ssffzz1


   

DL-GreatWall 发表于 2013-11-25 14:20

谢谢斑竹,我知道原理了,非常感谢!回复 6# ssffzz1


   

DL-GreatWall 发表于 2013-11-25 14:21

需要像CSDN那样结贴吗?回复 6# ssffzz1


   

ssffzz1 发表于 2013-11-25 15:28

不要。
页: [1] 2
查看完整版本: PING 192.168.0.15,走哪个网卡?