Solved

understanding Route-Map Sequences

Posted on 2013-01-01
8
580 Views
Last Modified: 2013-01-03
I would like to know when the Route Map means AND and when it Means OR:

For instance:

Route-Map OSPF2EIGRP 10
Match tag 5
Match Route-Type Internal
Does this mean match them both or the condition is false.
=======
Route-Map OSPF2EIGRP 10
Match tag 5

Route-Map OSPF2EIGRP 10
Match Route-Type Internal

Does this mean Match either the routes with tag 5 OR type Internal ?
=======

Thank you
0
Comment
Question by:jskfan
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 17

Assisted Solution

by:Garry-G
Garry-G earned 168 total points
ID: 38735690
If you have multiple match commands in a single route-map entry, all must match for that entry to be "true". The second example, I don't understand - there can only be one entry with sequence "10" at the same time. If you want a logical "or", you will need to create to separate entries with different sequence numbers, with the same "set" statements in it.
0
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 83 total points
ID: 38735778
yups, all must match.
0
 
LVL 1

Assisted Solution

by:thpipfh
thpipfh earned 83 total points
ID: 38735962
0
 
LVL 22

Assisted Solution

by:Jody Lemoine
Jody Lemoine earned 166 total points
ID: 38736562
Multiple match statements in the same sequence are AND. If you want to do OR, you use different sequences. To use an example for overloaded NAT on multiple interfaces:

object-group network og-rfc-1918
 10.0.0.0 255.0.0.0
 172.16.0.0 255.240.0.0
 192.168.0.0 255.255.0.0
!
ip access-list extended acl-nat
 deny ip object-group og-rfc1918 object-group og-rfc1918
 permit ip object-group og-rfc1918 any
!
route-map rm-internet permit 10
 match ip address acl-nat
 match interface GigabitEthernet0/0
!
route-map rm-internet permit 20
 match ip address acl-nat
 match interface GigabitEthernet0/1

The first sequence in the route map requires that the traffic match acl-nat AND that it be leaving the router via interface GigabitEthernet0/0. The second sequence catches traffic that matches acl-nat AND leaving the router via interface GigabitEthernet0/1. Within a single sequence, everything is AND. Collectively, the sequences allow the entire route map to cover traffic leaving via GigabitEthernet0/0 OR GigabitEthernet0/1.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 22

Assisted Solution

by:Jody Lemoine
Jody Lemoine earned 166 total points
ID: 38736601
If you enter the configuration in your question:

Route-Map OSPF2EIGRP 10
Match tag 5

Route-Map OSPF2EIGRP 10
Match Route-Type Internal

You'll get the following in your configuration:

Route-Map OSPF2EIGRP 10
Match tag 5
Match Route-Type Internal

This is an AND comparison. If you want OR, you'll have to use different sequences. The only time you can do OR in the same sequence is if you're matching multiple items on the same line:

route-map OSPF2EIGRP
 match tag 5 10 15 20
 match route-type internal

That sequence will require that the route be tagged with (5, 10, 15 OR 20) AND be an internal route.
0
 

Author Comment

by:jskfan
ID: 38739353
Sorry for the typo in the OR case:

Route-Map OSPF2EIGRP 10
Match tag 5
Match Route-Type Internal
=======
Route-Map OSPF2EIGRP 10
Match tag 5

Route-Map OSPF2EIGRP 20
Match Route-Type Internal
=====================================

So Multiple Match in one sequence is an AND
Multiple match in difference sequences is an OR

Correct?
0
 
LVL 17

Accepted Solution

by:
Garry-G earned 168 total points
ID: 38739379
Correct ...
For the "or" case, just make sure you have the appropriate/required set-operations like next hop, etc. in sync ...
0
 

Author Closing Comment

by:jskfan
ID: 38742830
thank you
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
I recently attended Cisco Live! in Las Vegas, a conference that boasted over 28,000 techies in attendance, and a week of hands-on learning hosted by a solid partner with which Concerto goes to market.  Every year, Cisco displays cutting-edge technol…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now