找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4352|回复: 3

[其它] 请教下ROS路由里面scope 和target-scope这2参数到底啥意思

[复制链接]
发表于 2008-4-16 17:16:35 | 显示全部楼层 |阅读模式

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

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

×
请高人大哥指点下~ SCOPE 和target-scope这2参数到底啥意思 小弟查阅了一些资料也没找到相关的解释~~
routeros
 楼主| 发表于 2008-4-16 17:46:10 | 显示全部楼层
希望高人指点下
routeros
回复

使用道具 举报

 楼主| 发表于 2008-4-17 09:11:02 | 显示全部楼层
高人指点下下
routeros
回复

使用道具 举报

发表于 2011-1-24 15:58:14 | 显示全部楼层
关于:distance=0 scope=255 target-scope=10 comment="" disabled=no
1、distance=0
LZ:单从字面意思看是“距离”,本人理解是指路由距离值,可能是指到本路由的距离(同一路由)
如果有多条路由distance值相等,那么在路由表(show ip route)中靠上的成为默认路由
所以,这个distance=0应该就是指把dst-address=60.0.0.0/10的路由指定到了gateway=网通网关,因为距离是0,还有更小的吗?
Routeros里的英文原文是:distance (integer: 0..255) - administrative distance of the route. When forwarding a packet, the router will use the route with the lowest administrative distance and reachable gateway
翻译:位距(整数:0..255)- 路由的管理距离,当转发数据包,路由器将使用路由和最小管理距离与可达的网关.
LZ:理解得基本正确
2、scope=255
LZ:单从字面意思看是“范围”,范围容易理解,但这个255代表什么呢?
再想想,连“范围”也不好理解了,是指那方面的范围呢?难道是:255是指子网段掩范围255.255.255.255,还是255.0.0.0呢?还是指数据包大小?
Routeros里的英文原文是:scope (integer: 0..255) - a value which is used to recursively lookup the nexthop addresses. Nexthop is looked up only through routes that have scope <= target-scope of the nexthop
翻译:范围(整数:0..255)-一个值那个是使用到递归地检查下一跳地址,下一跳地址检查在通过路由有的范围<=下一跳的目标范围.
3、target-scope=10
LZ:从字面意思看是:“目标范围”,上面的范围是255,目标范围是10?不理解了
Routeros里的英文原文是:target-scope (integer: 0..255) - a value which is used to recursively lookup the next-hop addresses. Each nexthop address selects smallest value of target-scope from all routes that use this nexthop address. Nexthop is looked up only through routes that have scope <= target-scope of the nexthop
翻译:目标作用域(整数:0...255)-一个值那个使用到递归的查下一跳地址,每一个下一跳地址选择目标范围的最小值从所有的路由使用下一跳地址.下一跳检查在只有直通路由范围<=下一跳的目的范围之上.
4、comment="" 注释
5、disabled=no  是否禁用此条规则。
=======================================
distance也可以认为是优先等级,不过这个似乎没必要设置,个人觉得~
也许其他做法能用得到,都是网通路优表,优先等级应该一致吧~
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-29 13:28 , Processed in 0.146953 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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