cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
270
Views
0
Helpful
2
Replies

Static route

connie
Level 1
Level 1

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

2 Replies 2

jolmo
Level 4
Level 4

I think Policy-Based Routing is what you are looking for. Please check following link and see "Differing Next Hops Example"

http://www.cisco.com/en/US/products/sw/iosswrel/ps1828/products_configuration_guide_chapter09186a00800ca590.html

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

Review Cisco Networking for a $25 gift card