Chinaunix

标题: CISCO路由器的策略路由 [打印本页]

作者: ithinc    时间: 2006-04-05 11:46
标题: CISCO路由器的策略路由
请问CISCO 2600系列的路由器支持根据源地址来选择路由么?如何设置呢。
作者: asd2004    时间: 2006-04-05 12:08
看具体IOS的版本吧,应该是可以的
作者: wonderliang    时间: 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
作者: ithinc    时间: 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显示的路由表为空呢?
作者: herowangzj    时间: 2006-04-08 12:37
你的RIP已经在172。24网段起用了,然后怎么又做再分布呢
作者: ithinc    时间: 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 编辑 ]




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2