Solved

understanding Route-Map Sequences

Posted on 2013-01-01
8
589 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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
 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Quality settings for cisco routers 8 56
Difference between Cisco Multichassis Etherchannel and VSL 6 78
Packet Tracer Router to Router 10 75
Help logging in to my router 12 45
There are two basic ways to configure a static route for Cisco IOS devices. I've written this article to highlight a case study comparing the configuration of a static route using the next-hop IP and the configuration of a static route using an outg…
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.
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…

813 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

10 Experts available now in Live!

Get 1:1 Help Now