次のようにネットワークを設定しようとしています:
=============================
DHCP fix addresses :
PC1 => 192.168.0.38
PC2 => 192.168.0.39
=============================
PC1:
eth0 inet addr:10.10.0.2 Bcast:10.255.255.255 Mask:255.0.0.0
wlan0 inet addr:192.168.0.38 Bcast:192.168.0.255 Mask:255.255.255.0
Destination Gateway Genmask Flags Iface
0.0.0.0 192.168.0.254 0.0.0.0 UG wlan0
10.0.0.0 0.0.0.0 255.0.0.0 U eth0
172.17.0.0 0.0.0.0 255.255.0.0 U docker0
192.168.0.0 0.0.0.0 255.255.255.0 U wlan0
=============================
PC2:
wlan1 inet addr:192.168.0.39 Bcast:192.168.0.255 Mask:255.255.255.0
eth0 inet addr:10.10.0.4 Bcast:10.255.255.255 Mask:255.0.0.0
Destination Gateway Genmask Flags Iface
0.0.0.0 192.168.0.254 0.0.0.0 UG wlan1
172.17.0.0 0.0.0.0 255.255.0.0 U docker0
192.168.0.0 0.0.0.0 255.255.255.0 U wlan1
=============================
そのため、最初に私の2台のPCは、wifi経由でインターネットのdhcp(固定アドレス)を介してインターネットに接続されます。それの悪い点は、ファイル転送のためにすべてがwifiを通過することです。そこで、コンピューター間にケーブルを追加し、このケーブルをあらゆるファイル転送に使用したいと思います。問題は、コンピューター間でもpingできないことです!
PC1から私は得る:
traceroute 10.10.0.4
traceroute to 10.10.0.4 (10.10.0.4), 30 hops max, 60 byte packets
1 10.10.0.2 (10.10.0.2) 2997.858 ms !H 2997.800 ms !H 2997.778 ms !H
「!H」とはどういう意味ですか?それはエラーの兆候ですか?
そして、PC2からPC1に到達することはできません(ルートがないため=>どのようにルートを追加できますか?)
traceroute 10.10.0.2
traceroute to 10.10.0.2 (10.10.0.2), 30 hops max, 60 byte packets
1 192.168.0.254 (192.168.0.254) 64.193 ms 69.008 ms 71.722 ms
2 * * *
3 * * *
4 * * *
編集:
PC2の場合:
ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: on
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x000000ff (255)
drv probe link timer ifdown ifup rx_err tx_err
Link detected: yes
編集:
PC2で
$ dmesg | grep eth0
[ 5.293971] tg3 0000:04:00.0 eth0: Tigon3 [partno(BCM95723) rev 5784100] (PCI Express) MAC address 3c:4a:92:b2:a2:1e
[ 5.293974] tg3 0000:04:00.0 eth0: attached PHY is 5784 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[0])
[ 5.293976] tg3 0000:04:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]
[ 5.293978] tg3 0000:04:00.0 eth0: dma_rwctrl[76180000] dma_mask[64-bit]
[ 9.124499] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 10.758438] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 10.758756] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 13.183081] tg3 0000:04:00.0 eth0: Link is up at 1000 Mbps, full duplex
[ 13.183091] tg3 0000:04:00.0 eth0: Flow control is on for TX and on for RX
[ 13.183104] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready