找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 11446|回复: 26

[其它] [求助]关于做双ADSL接入的问题!

[复制链接]
发表于 2005-6-9 01:20:04 | 显示全部楼层 |阅读模式

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

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

×
双ADSL接入..我已经设置好两条线都能连接了.请问..下一步是做什么了??策略是怎么加的?
routeros
 楼主| 发表于 2005-6-9 22:41:35 | 显示全部楼层
是不是偶的问题太简单了.所以没人理?
routeros
回复

使用道具 举报

发表于 2005-6-10 00:59:04 | 显示全部楼层
你问了一个经典问题,只要两个都能拨号连接,就算OK了。但关键问题是,要想两条线路同时都有数据流,那就不好解决了,据说2.9 可以实现,但我现在还没有作测试,我也很想知道如何做,2.9的没有crack,不好搞啊。
routeros
回复

使用道具 举报

发表于 2005-6-10 14:41:16 | 显示全部楼层
先暂时用选择性路由
即:有选择地把一些数据分流到不同的线路上,这样做的效果不亚于动态策略路由
routeros
回复

使用道具 举报

发表于 2005-6-12 19:23:08 | 显示全部楼层
对于两条ADSL,我目前的做法是通过策略路由,交叉分配
比如说凡是奇数的IP地址,就走第一条ADSL
凡是偶数的IP地址,就走第二条ADSL
routeros
回复

使用道具 举报

 楼主| 发表于 2005-6-12 22:19:42 | 显示全部楼层
楼上的这位兄弟..能打你的做法说出来吗?或者上个图指点偶们这些新手!
routeros
回复

使用道具 举报

发表于 2005-6-12 22:43:58 | 显示全部楼层
1、先设置好主路由表MAIN的网关

2、添加新路由表QQ
/ip policy-routing add name="QQ"

3、添加新路由表QQ的网关
/ip policy-routing table QQ add dst-address=0.0.0.0/0 gateway=192.168.2.254 preferred-source=0.0.0.0 \ comment="" disabled=no

4、添加基于路由表QQ的策略路由
/ip policy-routing rule add src-address=192.168.1.2/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.4/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.6/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.8/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.10/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.12/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.14/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.16/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.18/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ

/ip policy-routing rule add src-address=192.168.1.20/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.22/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.24/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.26/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.28/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.30/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.32/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.34/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.36/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.38/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ

/ip policy-routing rule add src-address=192.168.1.40/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.42/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.44/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.46/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.48/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.50/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.52/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.54/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.56/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.58/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ

/ip policy-routing rule add src-address=192.168.1.60/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.62/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.64/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.66/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.68/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.70/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.72/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.74/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.76/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.78/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ

/ip policy-routing rule add src-address=192.168.1.80/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.82/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.84/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.86/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.88/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.90/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.92/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.94/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.96/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.98/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ

/ip policy-routing rule add src-address=192.168.1.100/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.102/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.104/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.106/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.108/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.110/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.112/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.114/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.116/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.118/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ

/ip policy-routing rule add src-address=192.168.1.120/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.122/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.124/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.126/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.128/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.130/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.132/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.134/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.136/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.138/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ

/ip policy-routing rule add src-address=192.168.1.140/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.142/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.144/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.146/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.148/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.150/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.152/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.154/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.156/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.158/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ

/ip policy-routing rule add src-address=192.168.1.160/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.162/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.164/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.166/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.168/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.170/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.172/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.174/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.176/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.178/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ

/ip policy-routing rule add src-address=192.168.1.180/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.182/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.184/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.186/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.188/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.190/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.192/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.194/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.196/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.198/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ

/ip policy-routing rule add src-address=192.168.1.200/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.202/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.204/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.206/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.208/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.210/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.212/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.214/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.216/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.218/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ

/ip policy-routing rule add src-address=192.168.1.220/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.222/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.224/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.226/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.228/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.230/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.232/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.234/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.236/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.238/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ

/ip policy-routing rule add src-address=192.168.1.240/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.242/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.244/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.246/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.248/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.250/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.252/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
/ip policy-routing rule add src-address=192.168.1.254/32 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
routeros
回复

使用道具 举报

发表于 2005-6-13 08:19:01 | 显示全部楼层
天哪,这么配置累死人了!
routeros
回复

使用道具 举报

发表于 2005-6-13 09:46:45 | 显示全部楼层
/ip policy-routing rule add src-address=192.168.1.0/25 dst-address=0.0.0.0/0 \ interface=all action=lookup table=QQ
一条就可以了
routeros
回复

使用道具 举报

发表于 2005-6-13 10:51:39 | 显示全部楼层
你的做法是对半分,我要做的是交叉分,不同的,呵呵
routeros
回复

使用道具 举报

 楼主| 发表于 2005-6-16 13:42:25 | 显示全部楼层
谢谢大家...对了还有一件事..比如我在广州..接入的是两根电信的ADSL.听说这样不行.因为两个ADSL的网关一样?有这回事吗?
routeros
回复

使用道具 举报

发表于 2005-6-17 00:37:54 | 显示全部楼层
QUOTE(xhb912 @ Jun 16 2005, 01:42 PM)
谢谢大家...对了还有一件事..比如我在广州..接入的是两根电信的ADSL.听说这样不行.因为两个ADSL的网关一样?有这回事吗?
[right][snapback]51465[/snapback][/right]



如果用ROS来拨号是这样的!
ROS 2.9没这问题.
routeros
回复

使用道具 举报

 楼主| 发表于 2005-6-17 16:21:46 | 显示全部楼层
QUOTE(wwjun @ Jun 17 2005, 12:37 AM)
QUOTE(xhb912 @ Jun 16 2005, 01:42 PM)
谢谢大家...对了还有一件事..比如我在广州..接入的是两根电信的ADSL.听说这样不行.因为两个ADSL的网关一样?有这回事吗?
[right][snapback]51465[/snapback][/right]



如果用ROS来拨号是这样的!
ROS 2.9没这问题.
[right][snapback]51530[/snapback][/right]



那里有2.9下载..我没看到!
routeros
回复

使用道具 举报

发表于 2005-6-17 17:03:18 | 显示全部楼层
2.9还处于测试阶段,估计快成为stable版本了,那时候怎么动它都值得,现在都是白费劲
routeros
回复

使用道具 举报

发表于 2005-6-17 19:57:58 | 显示全部楼层
2.826 如果在同一个地方用两个拨号的adsl的话,好像就只能一个用ros拨号另一条接个cl什么的把动态地址转成静态的才行。
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-25 23:58 , Processed in 0.106035 second(s), 14 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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