- 论坛徽章:
- 0
|
现在我有个服务器,两块网卡,一个IP是192.168.9.250,另一个是172.16.2.10,分别接入两个网络,而这两个网络都要求通过192.168.9.199上网,我想让这两个网络相互通讯且用192.168.9.199上网,我做了以下动作
echo 1 >; /proc/sys/net/ipv4/ip_forward
route add -net 172.16.2.0 netmask 255.255.255.0 eth1
route add -net 192.168.9.0 netmask 255.255.255.0 eth0
但是这两个网段还是没有办法ping通.为什么?
环境:linux as 3.0
路由:
172.16.2.0/24 dev eth1 scope link
192.168.9.0/24 dev eth0 scope link
127.0.0.0/8 dev lo scope link
default via 192.168.9.199 dev eth0
防火墙:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination |
|