两台主机之间的点对点连接

我正在尝试在两台Linux主机之间build立一个点到点的连接。 我用交叉线连接了它们,但是它们不能互相ping通。 以下是每台笔记本电脑的configuration:

笔记本电脑1

(eth0 configuration) IP Address - 128.110.1.6 Subnet Mask - 255.255.255.240 Gateway - 128.110.1.1 

笔记本电脑2

 (eth0 configuration) IP address - 128.110.1.1 Subnet Mask - 255.255.255.240 Gateway - 128.110.1.6 

有什么我在这里失踪? 我怎样才能build立两个笔记本电脑之间的连接?

编辑1 :我运行了'arp -a'命令并收到以下输出:

笔记本电脑1

 ? (128.110.1.1) at <incomplete> on eth0 

笔记本电脑2

 ? (128.110.1.6) at <incomplete> on eth0 

我猜这些ARP表中的条目可能是由于ping失败。

编辑2 :我发现,其中一台笔记本电脑启用了一个桥,以前曾使用一个USB到以太网适配器接口作为eth1和内置的以太网接口是eth0 。 不知道这是否会影响任何事情。 以下build议运行ethtool产生以下输出:

笔记本电脑1

 [root@link_3 doctor]# /sbin/ethtool eth0 Settings for eth0: Link detected: yes [root@link_3 doctor]# /sbin/ethtool eth1 Settings for eth1: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supports auto-negotiation: Yes Advertised link modes: Not reported Advertised auto-negotiation: No Speed: 10Mb/s Duplex: Half Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on Link detected: no 

笔记本电脑2

 [root@hitl3 doctor]# /sbin/ethtool eth0 Settings for eth0: Supported ports: [ MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: g Wake-on: d Current message level: 0x000000ff (255) Link detected: yes 

确保至less有一个以太网端口是GigE。 否则,你可能需要一个交叉电缆。

你可能有不能自动检测电缆types的网卡(auto-MDIX) – 在这个function广泛使用之前,我们将为此构成交叉电缆或使用适配器 。