05-19-2006 12:10 AM - edited 03-03-2019 12:45 PM
I have following simple scenario
I need static routing on router with destination 10.17.16.1.0 but network A behind router should goes to this destination via gateway A and network B should goes to this destination via gateway B... Can you give me an exaple of some route maps config???
Thx
Solved! Go to Solution.
05-19-2006 12:25 AM
Hi M.SIR,
I think this should work
route-map Test permit 10
match ip address 100
set ip next-hop
!
route-map Test permit 20
match ip address 200
set ip next-hop
!
access-list 100 permit ip
access-list 200 permit ip
Router(config)interface fa0/1
Router(config-if)# ip policy route-map Test
Regards,
Ankur
05-19-2006 12:25 AM
Hi M.SIR,
I think this should work
route-map Test permit 10
match ip address 100
set ip next-hop
!
route-map Test permit 20
match ip address 200
set ip next-hop
!
access-list 100 permit ip
access-list 200 permit ip
Router(config)interface fa0/1
Router(config-if)# ip policy route-map Test
Regards,
Ankur
05-19-2006 12:44 AM
That's the topology.
-10.17.16.0-
| |
| |
RTA--RTC--RTB
|
LAN (192.168.1.0)
(192.168.2.0)
Router C
interface s0/0
description to RTA
ip address 2.2.2.1 255.255.255.252
interface s0/1
description to RTB
ip address 3.3.3.1 255.255.255.252
interface eth0/2
ip address 192.168.1.0 255.255.255.0
ip address 192.168.2.0 255.255.255.0 secondary
ip policy route-map routing
route-map routing permit 5
description from 192.168.1.0 to 10.17.16.0 via RTA
match-ip address 100
set ip next-hop 2.2.2.2
route-map routing permit 5
description from 192.168.2.0 to 10.17.16.0 via RTB
match-ip address 101
set ip next-hop 3.3.3.2
access-list 100 permit ip 192.168.1.0 0.0.0.255 10.17.16.0 0.0.0.255
access-list 101 permit ip 192.168.2.0 0.0.0.255 10.17.16.0 0.0.0.255
Router A
ip route 192.168.1.0 255.255.255.0 2.2.2.1
ip route 192.168.2.0 255.255.255.0 2.2.2.1
Router B
ip route 192.168.1.0 255.255.255.0 2.2.2.1
ip route 192.168.2.0 255.255.255.0 2.2.2.1
Host in network 10.17.16.0 may have a static route to 192.168.1.0 and 192.168.2.0
Best regards
Please rate this post .
05-19-2006 12:53 AM
The topology doesn't appear well,
RTA--RTC--RTB
RTC
|
LAN (192.168.1.0)
(192.168.2.0)
10.17.16.0
|
RTB
10.17.16.0
|
RTA
there is mistake on RTB configuration , modify it as :
Router B
ip route 192.168.1.0 255.255.255.0 3.3.3.1
ip route 192.168.2.0 255.255.255.0 3.3.3.1
Best regards.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide