cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

2029
Views
0
Helpful
4
Replies
Highlighted
Frequent Contributor

Route-Map sequence Number

           Hi all,

                Good Morning!

Need    to confirm config of route-map below.

I created ACL  113

access-list 113 permit tcp any any eq www

Then i created route-map for it

route-map policy permit 10

match ip address 113

set ip next-hop 2.2.2.2

Now i created ACL

access-list 114 permit tcp any any eq 443

access-list 114 permit tcp any any eq telnet

Now i created route-map for this without any sequence number

Will this work now without sequence number 20?

When i do

sh route-map

route-map policy, permit, sequence 10

Match clauses:

   ip address (access-lists): 113 114

Set clauses:

   ip next-hop 2.2.2.2 3.3.3.3

Policy routing matches: 0 packets, 0 bytes

it shows both acl 113 and 114 need to know if this route-map config will work or not?

Thanks

MAhesh

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Expert

Route-Map sequence Number

Hello Mahesh,

yes I do mean that

Hope to help

Giuseppe

View solution in original post

4 REPLIES 4
Hall of Fame Expert

Re: Route-Map sequence Number

Hello Mahesh,

your configuration performs a logical OR of the two IP ACLs

if a packet matches ACL 113 or it matches ACL 114 the PBR action of setting an ip next-hop will take place.

The configuration is correct if you need to use the same IP next-hop for both types of traffic, otherwise you need a new route-map clause with a different sequence number and a different set action.

Edit:

actually there are two IP next-hops defined in the set section, in this case first next-hop is used and if it is unavailable ( no ARP entry) the second next-hop will be used. The action as described above applies to traffic matching  one of the two ACLs.

if you want to have different IP next-hops you need two route-map clauses/blocks

Hope to help

Giuseppe

Frequent Contributor

Route-Map sequence Number

Hi Giuseppe,

When you say

if you want to have different IP next-hops you need two route-map clauses/blocks

Does it mean route map with 2 sequence numbers say 10 and 20?

Thanks

MAhesh

Hall of Fame Expert

Route-Map sequence Number

Hello Mahesh,

yes I do mean that

Hope to help

Giuseppe

View solution in original post

Frequent Contributor

Route-Map sequence Number

Hi Giuseppe,

Thanks again.

Seems need to learn lot from this forum.

Regards

MAhesh

CreatePlease to create content
Content for Community-Ad