免费注册 查看新帖 |

Chinaunix

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

CISCO路由器的策略路由 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-05 11:46 |只看该作者 |倒序浏览
请问CISCO 2600系列的路由器支持根据源地址来选择路由么?如何设置呢。

论坛徽章:
0
2 [报告]
发表于 2006-04-05 12:08 |只看该作者
看具体IOS的版本吧,应该是可以的

论坛徽章:
0
3 [报告]
发表于 2006-04-05 19:31 |只看该作者
route-map xxx permit 10
match ip address yyy
set ip next-hop z.z.z.z

inter fa0/0
ip policy route-map xxx

论坛徽章:
0
4 [报告]
发表于 2006-04-06 09:46 |只看该作者
原帖由 wonderliang 于 2006-4-5 19:31 发表
route-map xxx permit 10
match ip address yyy
set ip next-hop z.z.z.z

inter fa0/0
ip policy route-map xxx


下面是我的配置
interface FastEthernet0/0
ip address 172.24.170.210 255.255.255.192
no ip redirects
ip nat outside
ip rip advertise 5
no ip route-cache cef
no ip route-cache
no ip mroute-cache
speed auto
half-duplex
no cdp enable
!
interface FastEthernet0/1
ip address 172.24.170.142 255.255.255.248
no ip redirects
no ip proxy-arp
ip nat inside
ip rip advertise 5
no ip route-cache cef
no ip route-cache
ip policy route-map test
no ip mroute-cache
speed auto
half-duplex
no cdp enable
!
router ospf 1
log-adjacency-changes
redistribute rip metric 8 subnets
network 172.24.0.0 0.0.255.255 area 0
!
router rip
version 2
timers basic 5 10 0 10
redistribute static metric 8
redistribute ospf 1 match internal external 1 external 2
network 172.24.0.0
network 192.168.1.0
default-metric 8
distribute-list 2 in FastEthernet0/0
distribute-list 2 out FastEthernet0/1
distance 100
no auto-summary
!
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
no ip http server
!
access-list 2 permit any
access-list 10 permit 172.24.170.140
no cdp run
route-map test permit 10
match ip address 10
set ip next-hop 172.24.170.10

!


为什么执行show ip route list 10显示的路由表为空呢?

论坛徽章:
0
5 [报告]
发表于 2006-04-08 12:37 |只看该作者
你的RIP已经在172。24网段起用了,然后怎么又做再分布呢

论坛徽章:
0
6 [报告]
发表于 2006-04-09 13:59 |只看该作者
原帖由 herowangzj 于 2006-4-8 12:37 发表
你的RIP已经在172。24网段起用了,然后怎么又做再分布呢


有问题吗,172.24被分隔成多个子网段了阿。内网侧RIP,外网侧OSPF和STATIC,RIP工作正常。
OSPF可能没起作用,STATIC已经够用了。

RIP的配置对策略路由有影响么?RIP是工作要用的,我现在只是想做下策略路由的实验。

[ 本帖最后由 ithinc 于 2006-4-9 14:03 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP