QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 472|回复: 0

关于路由网关设置

[复制链接]
发表于 2004-4-14 16:57:19 | 显示全部楼层 |阅读模式
一台双P2 服务器,装REDHAT 9.0。非完全安装(没装窗口)
两块网卡,8139 eth0 192.168.0.248 接外网。通过学校的网关192.168.0.1
INTEL 82557, eth1 192.168.1.1 接交换机,下接的机器网关设置为这个。
应该怎么设置?
我是按照http://www.chinaunix.net/jh/4/226179.html
的文章弄的。


这个是我的路由表。

[root@hukai root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
已经打过如下命令
echo 1 > /proc/sys/net/ipv4/ip_forward

在服务器上能ping通各网段的任意IP,但两网段不能相互ping通
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-29 13:15 , Processed in 0.051488 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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