各位高手好:
有一台Linux Server连两台PC,希望可以让2台PC互连但不能对外,架构如下:
Linux Server ifconfig:
eth0 Link encap:Ethernet inet addr:169.254.0.1 Bcast:169.254.0.255
Mask:255.255.255.0
eth1 public network
eth2 Link encap:Ethernet inet addr:169.254.2.1 Bcast:169.254.2.255
Mask:255.255.255.0
Linux Server route设定:
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
169.254.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
public network 0.0.0.0 255.255.254.0 U 0 0 0 eth1
已将Forward打开:echo 1 > /proc/sys/net/ipv4/ip_forward
2台PC的IP都是由Linux Server DHCP自动发的,Linux Server可以PING到169.254.0.254
与169.254.2.250,且PC(A)可以PING到169.254.0.1,PC(B)可以PING到169.254.2.1。
IPv4 Address Subnet Mask Default Gateway
PC(A) 169.254.0.250 255.255.255.0 169.254.0.1
PC(B) 169.254.2.254 255.255.255.0 169.254.2.1
可是PC(A)却PING不到PC(B),PC(B)也PING不到PC(A),请问我还漏了那些设定?
先谢谢各位了!