我有两台服务器,就像我在此处附加的图像一样连接。我无法从服务器 1 ping 到服务器 2。但我可以从服务器 1 ping 到 R2 的 Eth1,而服务器 2 可以 ping R1 的 Eth1。所有其他路由器都可以相互 ping 通,也可以 ping 到服务器。并且没有使用防火墙。
==========OS versions==========
Server1:ubuntu 12.04 LTSServer2:ubuntu 16.04 LTS
===========Routing tables of servers.===========
******Server1******
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 100 0 0 eth0
10.10.0.0 * 255.255.255.0 U 0 0 0 eth0
10.10.10.10 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
(I add last route, but it only works for few times and again connection gone)
******Server2******
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.10.10.1 0.0.0.0 UG 0 0 0 eth1
10.10.10.0 * 255.255.255.0 U 0 0 0 eth1
========ICMP redirects.===========
******Server1******
sysctl -p
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv6.conf.lo.disable_ipv6 = 1
******Server2******
sysctl -p
net.ipv4.conf.all.accept_redirects = 0
net.ipv6.conf.all.accept_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv6.conf.all.accept_source_route = 0
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1