免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3024 | 回复: 2
打印 上一主题 下一主题

linux 策略路由问题!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-04-08 09:40 |只看该作者 |倒序浏览
规则如下:\r\n  ip route add 10.10.0.0/16 via 10.254.254.1 table int1 proto static \r\n  ip route add throw 0/0 table int1 proto static \r\n  ip route add 172.18.0.0/16 via 172.17.1.1 table int2 proto static \r\n  ip route add throw 0/0 table int2 proto static \r\n  ip route add 0/0 via 172.17.1.254 table main proto static \r\n  ip rule add pref 15000 table int1 iif eth1 \r\n  ip rule add pref 15001 table int2 iif eth2 \r\n  ip rule add pref 15002 to 10.10.0.0/16 table int1 \r\n  ip rule add pref 15003 to 172.18.0.0/16 table int2\r\n\r\nip route add throw 0/0 table int1 proto static   大侠 这句是什么意思?

论坛徽章:
0
2 [报告]
发表于 2010-04-10 09:58 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
3 [报告]
发表于 2010-04-10 23:20 |只看该作者
throw\r\n\r\nThe throw route type is a convenient route type which causes a route lookup in a routing table to fail, returning the routing selection process to the RPDB. This is useful when there are additional routing tables. Note that there is an implicit throw if no default route exists in a routing table, so the route created by the first command in the example is superfluous, although legal. \r\n\r\nExample 4.14. throw route typesip route add throw default\r\nip route add throw 10.79.0.0/16\r\nip route add throw 172.16.0.0/12\r\n              \r\n\r\n\r\nThe power of these route types when combined with the routing policy database can hardly be understated. All of these route types can be used without the RPDB, although the throw route doesn\'t make much sense outside of a multiple routing table installation.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP