06-22-2004 10:08 PM - edited 03-02-2019 04:33 PM
Hi All
Is there a way for me to specify a static route that one IP range must take to get to a specified destination?
Example:
Suppose I'm on 10.1.1.1, and I need to connect (via a dedicated link) to 10.5.1.1 via 10.2.1.254 (router). Adding a static route is not a problem, but there are other hosts on 10.3.1.0, and 10.4.1.0 which also needs to connect to 10.5.1.1, but they need to take a different route via the Internet.
Any ideas would be appreciated (if you can make out what I'm trying to say).
Connie
06-22-2004 10:38 PM
Hi,
I think you need to use policy routing.
and
for details.
A config example:
Regards,
Milan
06-22-2004 10:52 PM
I think Policy-Based Routing is what you are looking for. Please check following link and see "Differing Next Hops Example"
Basically you will need to configure:
access-list 100 permit ip 10.1.1.0 0.0.0.255 host 10.5.1.1
access-list 101 permit ip 10.3.1.0 0.0.0.255 host 10.5.1.1
access-list 102 permit ip 10.4.1.0 0.0.0.255 host 10.5.1.1
!
interface ethernet 1
ip policy route-map Example
!
route-map Example permit 10
match ip address 100
set ip next-hop 10.2.1.254
route-map Example permit 20
match ip address 101
set ip next-hop
route-map Example permit 30
match ip address 102
set ip next-hop
HTH
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