networking安装麻烦,尝试响应外部ping时变得“无法访问”

我正在build立静态IP上的第二个networking接口,它不能正常工作。

我能够使出站连接没有任何问题

ping -i 66.249.80.104 

但是当外部ip ping我的服务器我收到的数据包,但答复说无法访问

 tcpdump -i eth1 08:23:50.427576 IP external.com > 44c3e65d.static: ICMP echo request, id 65388, seq 0, length 64 08:53:55.084512 arp who-has 44c3e65d.static tell 44c3e65a.static 08:53:55.084518 arp reply 44c3e65d.static is-at 00:15:17:27:80:e1 (oui Unknown) 08:23:50.428775 44c3e65a.static > 44c3e65d.static: ICMP external.com protocol 1 port 63628 unreachable, length 92 

我也在我的tcpdump中看到了很多

 08:54:47.404489 802.1d config 8000.00:1c:57:f1:10:8a.8002 root 8000.00:1c:57:f1:10:8a pathcost 0 age 0 max 20 hello 2 fdelay 15 

我没有打开iptables,如果我ping从我的内部networking上的另一台计算机的静态IP,它工作得很好。

我不是一个系统pipe理员,所以我不太清楚如何去解决这个问题。 我将不胜感激任何帮助 :)

这是网关的问题

使用'路线'给了我

 Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.2.0 * 255.255.255.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth1 68.0.0.0 * 255.0.0.0 U 0 0 0 eth1 default 192.168.2.1 0.0.0.0 UG 0 0 0 eth0 

所以没有为eth1configuration网关,所以我做了

 route add -net default gw 68.195.xx dev eth1 

然后得到

 Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.2.0 * 255.255.255.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth1 68.0.0.0 * 255.0.0.0 U 0 0 0 eth1 default 44c3e659.st 0.0.0.0 UG 0 0 0 eth1 default 192.168.2.1 0.0.0.0 UG 0 0 0 eth0 

我明白为什么它不能响应外部的ping,但我有点困惑,我怎么能够在外部服务器上成功的ping? 我的猜测是它使用eth0,即使我明确地告诉它使用eth1

第二个接口是否configuration了默认网关? 如果不是,那可能是问题所在。