LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 929|回复: 3

再请教局域网设置问题(看了很多但还是不懂)

[复制链接]
发表于 2004-10-6 14:02:44 | 显示全部楼层 |阅读模式
route iptables都试了还是不行
主机上对外ip 211。80。91。43 网关211。80。91。254
对内 192。168。0。1 掩码255。255。255。0

现在的情况是主机可以上网,内网可以ping到192。168。0。1 211。80。91。43其他的就都ping不到了。

route 查到的信息
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
211.80.91.0     *               255.255.255.0   U     0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         211.80.91.254   0.0.0.0         UG    0      0        0 eth0

service network status查到的信息
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth0 eth1


请大家指点,谢谢
发表于 2004-10-6 20:35:00 | 显示全部楼层

网关的问题

为什么不把网关设成你的外网IP?
 楼主| 发表于 2004-10-6 21:21:05 | 显示全部楼层
那个254的网关是出去时的必经之路.不存在设置谁的问题
我想问就这几个地址,应该怎么设置路由
 楼主| 发表于 2004-10-7 11:41:41 | 显示全部楼层
无奈,顶一下.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表