找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5844|回复: 14

[策略设置] ROS2.9做策略路由是不是方便了,还是我理解错了?

[复制链接]
发表于 2005-8-30 03:38:41 | 显示全部楼层 |阅读模式

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

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

×
官方的例子就是这么简单,难道真的就这样就行了吗

2.9策略路由

2.9策略路由
routeros
 楼主| 发表于 2005-8-30 03:42:50 | 显示全部楼层
接着下面是关于负载均衡的

负载均衡

负载均衡
routeros
回复

使用道具 举报

 楼主| 发表于 2005-8-30 04:05:15 | 显示全部楼层
这是最后一种测路路由,不过这个例子是双内网到双外网
Standard Policy-Based Routing with Failover

This example will show how to route packets, using an administrator defined policy. The policy for
this setup is the following: route packets from the network 192.168.0.0/24, using gateway 10.0.0.1,
and packets from network 192.168.1.0/24, using gateway 10.0.0.2. If GW_1 does not respond to
pings, use GW_Backup for network 192.168.0.0/24, if GW_2 does not respond to pings, use
GW_Backup also for network 192.168.1.0/24 instead of GW_2.

The setup:

Configuration of the IP addresses:

[admin@PB-Router] ip address> print


Flags: X -disabled, I -invalid, D -dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.0.1/24 192.168.0.0 192.168.0.255 Local1
1 192.168.1.1/24 192.168.1.0 192.168.1.255 Local2
2 10.0.0.7/24 10.0.0.0 10.0.0.255 Public


[admin@PB-Router] ip address>


To achieve the described result, follow these configuration steps:

1.
Mark packets from network 192.168.0.0/24 with a new-routing-mark=net1, and packets from
network 192.168.1.0/24 with a new-routing-mark=net2:
[admin@PB-Router] ip firewall mangle> add src-address=192.168.0.0/24
\
\... action=mark-routing new-routing-mark=net1 chain=prerouting
[admin@PB-Router] ip firewall mangle> add src-address=192.168.1.0/24
\
\... action=mark-routing new-routing-mark=net2 chain=prerouting
[admin@PB-Router] ip firewall mangle> print

Flags: X -disabled, I -invalid, D -dynamic
0 chain=prerouting src-address=192.168.0.0/24 action=mark-routing
new-routing-mark=net1


1 chain=prerouting src-address=192.168.1.0/24 action=mark-routing
new-routing-mark=net2
[admin@PB-Router] ip firewall mangle>


2.
Route packets from network 192.168.0.0/24 to gateway GW_1 (10.0.0.2), packets from
network 192.168.1.0/24 to gateway GW_2 (10.0.0.3), using the according packet marks. If
GW_1 or GW_2 fails (does not reply to pings), route the respective packets to GW_Main
(10.0.0.1):
[admin@PB-Router] ip route> add gateway=10.0.0.2 routing-mark=net1
\
\... check-gateway=ping
[admin@PB-Router] ip route> add gateway=10.0.0.3 routing-mark=net2
\
\... check-gateway=ping
[admin@PB-Router] ip route> add gateway=10.0.0.1
[admin@PB-Router] ip route> print
Flags: X -disabled, A -active, D -dynamic,
C -connect, S -static, r -rip, b -bgp, o -ospf


# DST-ADDRESS PREFSRC G GATEWAY DISTANCE INTERFACE
0 ADC 10.0.0.0/24 10.0.0.7 Public
ADC 192.168.0.0/24 192.168.0.1 Local1
ADC 192.168.1.0/24 192.168.1.1 Local2
A S 0.0.0.0/0 r 10.0.0.2 Public
A S 0.0.0.0/0 r 10.0.0.3 Public
A S 0.0.0.0/0 r 10.0.0.1 Public

[admin@PB-Router] ip route>
routeros
回复

使用道具 举报

 楼主| 发表于 2005-8-30 04:32:37 | 显示全部楼层
如果真的这么简单,那实在是太好了,吼吼~~~~~
策略+负载均衡就这么简单??????
我现在没有真实环境做测试,谁有条件的试验一下啊!!!
这是在VM下,192.168两个网段模拟外网,10.0.0.1/24模拟内网,
然后192.168.65.1这个网关负责总带宽的2/3
192.168.183.1负责总带宽的1/3
比如192.168.65.1有50M的带宽,192.168.183.1有25M的带宽,它们之间的比例是2:1
这就是说我们配置负载的时候不能瞎配,得安比例分配,大家明白我得意思吧。
不明白自己去看官方文档,E文得很难懂。
2.9真得变了很多,可以添加多个默认网关,而且没有IS了,现在变成了AS
A-活动的,也可以说活跃的    S-静态的

[ 本帖最后由 jiangjames 于 2005-8-30 04:47 AM 编辑 ]

策略

策略
routeros
回复

使用道具 举报

 楼主| 发表于 2005-8-30 13:47:34 | 显示全部楼层
自己顶一下,哈哈
routeros
回复

使用道具 举报

legou 该用户已被删除
发表于 2005-8-30 14:35:02 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
routeros
回复

使用道具 举报

发表于 2005-8-30 19:45:29 | 显示全部楼层
期待有条件的试验一下公布结果.
routeros
回复

使用道具 举报

 楼主| 发表于 2005-8-31 00:52:42 | 显示全部楼层
等我有了KEY,我会第一个试验。
routeros
回复

使用道具 举报

发表于 2005-10-1 14:55:12 | 显示全部楼层
看文档,这个不叫策略路由。。。
routeros
回复

使用道具 举报

头像被屏蔽
发表于 2005-10-1 21:05:31 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
routeros
回复

使用道具 举报

发表于 2005-11-22 15:22:56 | 显示全部楼层
看了一会,还是觉得自己没有弄懂啊.
routeros
回复

使用道具 举报

发表于 2005-11-25 12:30:52 | 显示全部楼层
这是负载平衡吧,好象没有策略由~~~
routeros
回复

使用道具 举报

发表于 2005-11-30 15:49:41 | 显示全部楼层
好啊,就等老大来做好试验了
routeros
回复

使用道具 举报

发表于 2005-12-18 19:34:45 | 显示全部楼层
这是负载均衡?我得试试~!刚好我有一条10M电信光纤和一条20M电信光纤……
routeros
回复

使用道具 举报

发表于 2005-12-18 19:58:57 | 显示全部楼层
结果呢、??????????
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-18 19:39 , Processed in 0.117149 second(s), 7 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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