原帖由 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
!
原帖由 herowangzj 于 2006-4-8 12:37 发表
你的RIP已经在172。24网段起用了,然后怎么又做再分布呢
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |