找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3143|回复: 7

[其它] [求助]请教光纤双进双出如何配置!

[复制链接]
发表于 2005-6-13 15:09:19 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
环境如下
两条光纤
一个电信10M
IP:218.244.69.198
gateway:218.244.69.197
mask:255.255.255.240
dns:218.244.73.1,218.244.73.2,219.150.32.132

一个网通

IP:218.26.162.135
gateway:218.26.162.129
mask:255.255.255.240
dns:202.99.192.68,202.99.192.66

routeros 版 2.8.26

配置

4块3com3c905网卡

一个连接电信,一个连接网通,另外两个分别做电信和网通的网关
IP地址在一个段  192.168.1.1,192.168.1.2  

其中一条断线以后,自动切换到另外一条

本来打算做策略或者负载均衡的路由但是规定要求这样,请大家指点!
routeros
 楼主| 发表于 2005-6-13 15:14:46 | 显示全部楼层
另外就是我怕策略路由会使routeros负担过大,希望在终端做策略

-------------------------------------------------------------
cd \

rou
route add 202.99.0.0(网通IP段) mask 255.255.0.0 192.168.1.2(网通网关)
-----------------------------------------------------------------

请看是不是这样
routeros
回复

使用道具 举报

 楼主| 发表于 2005-6-13 15:18:23 | 显示全部楼层
据说
IP不能在同一个段,不知道可以吗


比如设置 192.168.1.1,192.168.1.2
routeros
回复

使用道具 举报

发表于 2005-6-13 15:47:02 | 显示全部楼层
连个网卡一个ip段不行,会只用一个网卡走数据的.
routeros
回复

使用道具 举报

 楼主| 发表于 2005-6-13 16:10:15 | 显示全部楼层
QUOTE(adslcool @ Jun 13 2005, 03:18 PM)
据说
IP不能在同一个段,不知道可以吗


比如设置 192.168.1.1,192.168.1.2
[right][snapback]51077[/snapback][/right]



看来不能,做两个网关

我看最好在win下面做策略了
,以减轻routeros的负担
----------------------------------------------------------------------------------
echo off
cd \
route -F
route -p add 60.0.0.0 mask 255.248.0.0 192.168.1.1 metric 1
route -p add 60.8.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 60.10.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 60.12.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 60.13.0.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 60.13.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 60.16.0.0 mask 255.240.0.0 192.168.1.1 metric 1
route -p add 60.208.0.0 mask 255.248.0.0 192.168.1.1 metric 1
route -p add 60.216.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 60.220.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 61.48.0.0 mask 255.248.0.0 192.168.1.1 metric 1
route -p add 61.133.0.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 61.135.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.136.64.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 61.137.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 61.138.0.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 61.138.128.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 61.139.128.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 61.148.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 61.156.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.158.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 61.159.0.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 61.161.0.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 61.161.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 61.167.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.168.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.176.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.179.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.180.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 61.181.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.182.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 61.189.0.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 202.96.0.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 202.96.64.0 mask 255.255.224.0 192.168.1.1 metric 1
route -p add 202.97.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 202.98.0.0 mask 255.255.224.0 192.168.1.1 metric 1
route -p add 202.99.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 202.102.128.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 202.102.224.0 mask 255.255.224.0 192.168.1.1 metric 1
route -p add 202.106.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 202.107.0.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 202.108.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 202.110.0.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 202.110.192.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 202.111.128.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 218.7.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 218.8.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 218.12.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 218.24.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 218.28.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 218.56.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 218.60.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 218.67.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 218.68.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 221.0.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 221.4.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 221.6.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 221.7.0.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 221.7.64.0 mask 255.255.224.0 192.168.1.1 metric 1
route -p add 221.7.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 221.8.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 221.10.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 221.11.0.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 221.11.128.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 221.11.192.0 mask 255.255.224.0 192.168.1.1 metric 1
route -p add 221.12.0.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 221.12.128 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 221.13.0.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 221.13.64.0 mask 255.255.224.0 192.168.1.1 metric 1
route -p add 221.13.128.0 mask 255.255.128.0 192.168.1.1 metric 1
route -p add 221.14.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 221.192.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 221.196.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 221.198.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 221.199.0.0 mask 255.255.224.0 192.168.1.1 metric 1
route -p add 221.199.32.0 mask 255.255.240.0 192.168.1.1 metric 1
route -p add 221.199.128.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 221.199.192.0 mask 255.255.240.0 192.168.1.1 metric 1
route -p add 221.200.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 221.204.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 221.207.0.0 mask 255.255.192.0 192.168.1.1 metric 1
route -p add 221.208.0.0 mask 255.252.0.0 192.168.1.1 metric 1
route -p add 221.212.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 221.216.0.0 mask 255.248.0.0 192.168.1.1 metric 1
route -p add 222.128.0.0 mask 255.240.0.0 192.168.1.1 metric 1
route -p add 222.160.0.0 mask 255.254.0.0 192.168.1.1 metric 1
route -p add 222.162.0.0 mask 255.255.0.0 192.168.1.1 metric 1
route -p add 222.163.0.0 mask 255.255.224.0 192.168.1.1 metric 1-------------------------------------------------------------------------------------------------
routeros
回复

使用道具 举报

 楼主| 发表于 2005-6-15 12:34:44 | 显示全部楼层
这样可以吗
routeros
回复

使用道具 举报

 楼主| 发表于 2005-12-26 14:20:26 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2005-12-26 18:14:46 | 显示全部楼层
不赞成终端策略。请高手来给个os的策略
我正想要*_*
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-11-18 05:33 , Processed in 0.126966 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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