
我目前正在嘗試在兩台具有網路遮罩的電腦上設定 LAN,255.255.255.0
但是當嘗試在它們之間進行通訊時,我收到以下訊息;
[root@alpha ~]# ping 192.168.0.249
PING 192.168.0.249 (192.168.0.249) 56(84) bytes of data.
From 192.168.0.248 icmp_seq=2 Destination Host Unreachable
From 192.168.0.248 icmp_seq=3 Destination Host Unreachable
From 192.168.0.248 icmp_seq=4 Destination Host Unreachable
--- 192.168.0.249 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5175ms
在其他專用機器上也會發生這種情況,反之亦然。我不知道我做錯了什麼,我已經重新啟動並重新啟動網路服務多次,但仍然沒有運氣。
正如您從下面看到的,ARP 不會傳回 LAN 位址,但它應該顯示這兩個位址。 IPTables 已停用,常規公用 IP 將允許 ping。
Dedi #1 的詳細資料:
[root@alpha ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:25:90:C8:81:4C
inet addr:192.168.0.248 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::225:90ff:fec8:814c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3634 errors:0 dropped:0 overruns:0 frame:0
TX packets:197 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:220672 (215.5 KiB) TX bytes:10318 (10.0 KiB)
Memory:f7180000-f7200000
[root@alpha ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
*.*.*.152 0.0.0.0 255.255.255.248 U 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth1
0.0.0.0 *.*.*.153 0.0.0.0 UG 0 0 0 eth1
[root@alpha ~]# arp -a
? (*.*.*.153) at 74:8e:f8:f7:98:58 [ether] on eth1
Dedi #2 的詳細資料:
[root@beta network-scripts]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:25:90:C5:C8:A0
inet addr:192.168.0.249 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::225:90ff:fec5:c8a0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:3576 (3.4 KiB)
Memory:f7180000-f7200000
[root@beta network-scripts]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
*.*.*.128 0.0.0.0 255.255.255.248 U 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth1
0.0.0.0 *.*.*.129 0.0.0.0 UG 0 0 0 eth1
[root@beta network-scripts]# arp -a
? (*.*.*.129) at 74:8e:f8:fa:b9:8e [ether] on eth1
答案1
雖然我不是 100% 確定(您必須聯絡 SecureServers),但大多數託管公司都會使用 VLAN 或 ACL 條目隔離位於同一交換器上的伺服器。這樣,您的伺服器就無法看到對方。
請聯絡您的託管公司進行確認。他們很可能必須為您設定專用的「內部」網絡,或者您需要使用 VPN 解決方案。