有關Linux不同子網段無法互ping的問題 - Linux

By Gary
at 2015-07-22T15:23
at 2015-07-22T15:23
Table of Contents
各位高手好:
有一台Linux Server連兩台PC,希望可以讓2台PC互連但不能對外,架構如下:
http://imgur.com/X68RE7j
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),請問我還漏了那些設定?
先謝謝各位了!
--
Tags:
Linux
All Comments

By Victoria
at 2015-07-23T22:53
at 2015-07-23T22:53

By Zanna
at 2015-07-27T11:47
at 2015-07-27T11:47

By Todd Johnson
at 2015-07-30T07:13
at 2015-07-30T07:13

By Victoria
at 2015-07-31T07:04
at 2015-07-31T07:04

By Dinah
at 2015-08-01T01:14
at 2015-08-01T01:14

By Michael
at 2015-08-01T12:35
at 2015-08-01T12:35

By Wallis
at 2015-08-01T22:17
at 2015-08-01T22:17

By Bethany
at 2015-08-02T18:34
at 2015-08-02T18:34

By Selena
at 2015-08-03T04:03
at 2015-08-03T04:03

By Frederica
at 2015-08-06T02:20
at 2015-08-06T02:20

By James
at 2015-08-07T02:54
at 2015-08-07T02:54

By Megan
at 2015-08-09T14:40
at 2015-08-09T14:40

By Edith
at 2015-08-12T05:18
at 2015-08-12T05:18

By Isabella
at 2015-08-15T14:09
at 2015-08-15T14:09

By Adele
at 2015-08-18T17:12
at 2015-08-18T17:12

By Thomas
at 2015-08-20T01:05
at 2015-08-20T01:05

By Audriana
at 2015-08-23T00:46
at 2015-08-23T00:46

By Genevieve
at 2015-08-27T09:22
at 2015-08-27T09:22
Related Posts
用 USB 安裝 linux 失敗

By Lucy
at 2015-07-22T13:07
at 2015-07-22T13:07
Paving the path to convergence with ubuntu phone

By Agatha
at 2015-07-22T12:29
at 2015-07-22T12:29
請問指定行以後n行 要如何加上特定字元

By Ida
at 2015-07-22T00:06
at 2015-07-22T00:06
gitosis的設定

By Wallis
at 2015-07-21T21:45
at 2015-07-21T21:45
ubuntu snappy core 的 source tree

By Isla
at 2015-07-21T20:16
at 2015-07-21T20:16