QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1464|回复: 0

求助:FC5双网卡路由设置?????

[复制链接]
发表于 2006-11-1 13:13:31 | 显示全部楼层 |阅读模式
小弟新装FC5,机器上有两块网卡,一个接网通的adsl,另外一个是校园网的,现在两个网卡不能同时工作,当adsl工作的时候校园网的网卡不能工作,只有将adsl和对应的网卡都停用了才能上校园网!
我这校园网的情况如下,本机ip分配为192.168.30.37,校园网里面还有其他好多网段,平时在windows下的时候是通过导入一个bat路由表文件设置路由得,路由表得内容如下:
route -p ADD 202.206.240.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.241.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.242.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.243.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.244.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.245.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.246.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.247.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.248.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.249.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.250.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.251.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.252.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.253.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.254.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.255.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.256.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.257.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.258.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.259.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.260.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 211.81.240.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 211.81.241.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 211.81.242.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 211.81.243.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 211.81.244.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 211.81.245.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 211.81.246.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 211.81.247.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 211.81.248.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 211.81.249.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 211.81.144.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 192.168.30.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 192.168.8.0 MASK 255.255.255.0  192.168.30.1 METRIC 10
route -p ADD 202.206.250.255 MASK 255.255.250.255  192.168.30.37 METRIC 10

这个是一个同学帮我写的,具体什么意思我也不清楚,请问在FC5下边有没有相关的设置方法,能让两个网卡同时工作!

现在我是要在fc5下给同学作代理,他们的ip分别是192.168.30.×网段和202.206.249.×网段,小弟新手,刚接触linux不久,希望各位高人给详细说说,具体的命令之类的,并且能保证开机以后自动运行,前几天在校园网网卡的设置里面把上边的路由全都添加进去了,结果校园网能上了,adsl又不行了,又拨不上去,而且重新启动以后里面的路由都没了,还是和以前一样!

我的两个网卡分别是
eth0:接网通的网卡
eth1:接校园网的网卡

再总结一下我的问题吧:两块网卡,一块接外网,一块接校园网,想让两块网卡开机就自动设置好,同时工作。校园网是多个网段的,需要走路由才能行,但是不会设置,windows下的路由表在上边,但是在linux下不会改,请各位多多指教,多谢了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-16 22:46 , Processed in 0.057345 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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