ROS软路由论坛 ROSABC.com 网络方案网络工程交流

 找回密码
 会员注册

QQ登录

只需一步,快速开始

查看: 4788|回复: 1

[交流] 求大大解答一串负载均衡问题

[复制链接]
发表于 2011-4-2 19:40:45 | 显示全部楼层 |阅读模式

马上注册成为ROSABC会员,随时发帖回复。

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

x
我有4条线路都是固定IP 2条网通两条电信. 带宽不相同. 请问如何做负载均衡?
有没有具体的配置教程 我下了好多 讲的都不是很详细。
发表于 2011-4-7 00:32:18 | 显示全部楼层
这个比较灵活,没有具体教程!大概mangle配置如下:
[admin@Router] /ip firewall mangle> prin
Flags: X - disabled, I - invalid, D - dynamic
0   chain=prerouting action=mark-connection new-connection-mark=telc1 passthrough=yes dst-address-list=tel in-interface=ether2-lan
     per-connection-classifier=both-addresses:2/0

1   chain=prerouting action=mark-routing new-routing-mark=telr1 passthrough=yes dst-address-list=tel in-interface=ether2-lan connection-mark=telc1

2   chain=prerouting action=mark-connection new-connection-mark=telc2 passthrough=yes dst-address-list=tel in-interface=ether2-lan
     per-connection-classifier=both-addresses:2/1

3   chain=prerouting action=mark-routing new-routing-mark=telr2 passthrough=no dst-address-list=tel in-interface=ether2-lan connection-mark=telc2

4   chain=prerouting action=mark-connection new-connection-mark=cncc1 passthrough=yes in-interface=ether2-lan
     per-connection-classifier=both-addresses:2/0

5   chain=prerouting action=mark-routing new-routing-mark=cncr1 passthrough=yes in-interface=ether2-lan connection-mark=cncc1

6   chain=prerouting action=mark-connection new-connection-mark=cncc2 passthrough=yes in-interface=ether2-lan
     per-connection-classifier=both-addresses:2/1

7   chain=prerouting action=mark-routing new-routing-mark=cncr2 passthrough=yes in-interface=ether2-lan connection-mark=cncc2
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

不良信息举报Q:2000617

软路由

不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流

GMT+8, 2025-8-5 19:52 , Processed in 1.483156 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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