09-01-2013 02:06 AM - edited 03-07-2019 03:14 PM
Hello
please I have 2 CacheServer in my Network , and 2 Range of IPs , i want to route the first range to CacheServer1 and Second range to the CacheServer 2
, can i make 2 Route-Map for both of them , find the configuraition bellow if its true or not ? please help my Urgent Case
CacheServer 1 IP address : 10.10.1.1
CacheServer 2 IP address: 10.10.2.1
ip access-list extended AA
permit tcp 192.168.1.0 0.0.0.255 any eq www
ip access-list extended AB
permit tcp any eq www 192.168.1.0 0.0.0.255
ip access-list extended BB
permit tcp 192.168.2.0 0.0.0.255 any eq www
ip access-list extended BC
permit tcp any eq www 192.168.2.0 0.0.0.255
route-map TEST1
match ip address AA
set ip next-hope 10.10.1.1
match ip address BB
set ip next-hope 10.10.2.1
route-map TEST2
match ip address AB
set ip next-hope 10.10.1.1
match ip address BC
set ip next-hope 10.10.2.1
Interface gig 0/1
ip policy route-map TEST1
Interface gig 0/2
ip policy route-map TEST2
is it clear please ????????? MY question is , can i put two "match" and "set" command in one route-map ?????
Solved! Go to Solution.
09-01-2013 07:37 AM
I had originally responded, but then reread your question. I noticed that you expect to see two different networks on the same interface, so for g0/1 you could see aa OR bb.
The easiest way I can think of is a route map like the following:
route-map Test1 permit 10
match ip address AA
set ip next-hop 10.10.1.1
route-map Test1 permit 20
match ip address BB
set ip next-hop 10.10.2.1
int g0/1
ip policy route-map Test1
route-map Test2 permit 10
match ip address AB
set ip next-hop 10.10.1.1
route-map Test2 permit 20
match ip address BC
set ip next-hop 10.10.2.1
int g0/2
ip policy route-map Test2
So, yes, you can have multiple match and set statements in the same route-map, but you'll need to separate them by multiple clauses.
HTH,
John
*** Please rate all useful posts ***
09-01-2013 07:37 AM
I had originally responded, but then reread your question. I noticed that you expect to see two different networks on the same interface, so for g0/1 you could see aa OR bb.
The easiest way I can think of is a route map like the following:
route-map Test1 permit 10
match ip address AA
set ip next-hop 10.10.1.1
route-map Test1 permit 20
match ip address BB
set ip next-hop 10.10.2.1
int g0/1
ip policy route-map Test1
route-map Test2 permit 10
match ip address AB
set ip next-hop 10.10.1.1
route-map Test2 permit 20
match ip address BC
set ip next-hop 10.10.2.1
int g0/2
ip policy route-map Test2
So, yes, you can have multiple match and set statements in the same route-map, but you'll need to separate them by multiple clauses.
HTH,
John
*** Please rate all useful posts ***
09-01-2013 10:23 PM
Thank you Mr. John .... Appreciated
i guess ur answer is perfect and its helpful for me ,Thank you again
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: