SlideShare a Scribd company logo
1 of 18
ROUTE MAPS
&
REDISTRIBUTION INTO OSPF WITH
ROUTE MAPS
www.netprotocolxpert.in
Route Maps
◦ Route Maps represent a powerful tool for manipulating ip routes and
packets. Route maps are somewhat similar to Access Lists but are
more complex and more powerful. This article describe the basics of
route maps on Cisco devices, and what they are used for. Route
maps are widely used by:
◦ Border Gateway Protocol (BGP);
◦ Route Redistribution;
◦ Policy Based Routing (PBR).
◦ When a route map is applied it will check packets against a match
with match command.
◦ If a match occurs then an action can be done by using set
command.
◦ Every statement in a route map has a sequence number, default
sequence number is 10.
◦ Each statement has a permit or deny parameter, which can have
different effects in different situations. Any statement that has the
same name is the part of the same Route Map.
◦ Each route map statement can contain one or several match or set
statements.
example
◦ route-map TEST deny 10
◦ match ip address 50
◦ route-map TEST permit 20
◦ match ip address 60 70
◦ set ip next-hop 10.10.10.10
◦ In example above you see route map TEST. Numbers 10 and 20 are
sequence numbers. This route map can be used in Policy Based Routing
(PBR) where next hop address is set to 10.10.10.10. Numbers 50, 60 and
70 are Access Lists numbers, that route map will use to find out which
packets to analyse.
When this route map is used by PBR, following will happen:
◦ If a match in first statement occurs, then next hop will remain
and route map is not further analysed;
◦ If a match in first statement will not occur, next statement will be
analysed;
◦ If in second statement a match occurs, set command will take effect and
next hop will be changed.
◦ At the end of route map there is an implicit “deny all”, similarly to ACLs.
◦ A match statement can have more than one criteria (like previous slide,
criteria 60 and 70). If so, then a logical OR is applied, i.e at least one of
them must be true to consider this statement as a match.
◦ If there are multiple match statements under the same sequence
number, then a logical AND is applied, i.e all of them must be true to
consider this statement (for this sequence number) as a match.
Redistribution into OSPF with Route Maps
◦ In the topology we have two EIGRP domains and one OSPF domain.
The task is to redistribute EIGRP learned routes into OSPF domain.
Redistribution will be done by router R1 which is part of all routing
domains.
◦ Let’s assume that all interface configurations are done and EIGRP and
OSPF is configured except redistribution. At this point R1 knows all
routes learned by EIGRP and OSPF, R2 doesn’t know EIGRP learned
routes.
◦ R1
◦ R1#show ip route
◦ Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
◦ D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
◦ N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
◦ E1 - OSPF external type 1, E2 - OSPF external type 2
◦ i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
◦ ia - IS-IS inter area, * - candidate default, U - per-user static route
◦ o - ODR, P - periodic downloaded static route
◦ Gateway of last resort is not set
◦ 172.16.0.0/24 is subnetted, 2 subnets
◦ C 172.16.30.0 is directly connected, FastEthernet0/1
◦ C 172.16.0.0 is directly connected, FastEthernet0/0
◦ 10.0.0.0/24 is subnetted, 1 subnets
◦ C 10.0.0.0 is directly connected, FastEthernet1/0
◦ D 192.168.0.0/24 [90/409600] via 172.16.0.2, 01:12:06, FastEthernet0/0
◦ D 192.168.1.0/24 [90/409600] via 172.16.0.2, 01:12:06, FastEthernet0/0
◦ D 192.168.2.0/24 [90/409600] via 172.16.30.2, 01:12:06, FastEthernet0/1
◦ D 192.168.3.0/24 [90/409600] via 172.16.30.2, 01:12:08, FastEthernet0/1
When configuring route redistribution with route-maps a simple guideline
should be followed:
◦ Define one or more ACLs (Access Lists) in which specify routes that
be checked by the route-map;
◦ Define an route-map with permit (redistribution will take place) or deny
(redistribution will not take place) statements where ACLs are matched
and attributes for routes are set;
◦ Set the route-map parameter in redistribute command.
Configuring Redistribution (R1)
◦ ACL 10 used to specify routes from EIGRP domain 1:
◦ ip access-list standard 10
◦ 10 permit 192.168.0.0 0.0.0.255
◦ 20 permit 192.168.1.0 0.0.0.255
◦ 30 permit 172.16.0.0 0.0.0.255
◦ ACL 20 used to specify routes from EIGRP domain 2:
◦ ip access-list standard 20
◦ 10 permit 192.168.2.0 0.0.0.255
◦ 20 permit 172.16.30.0 0.0.0.255
◦ Route map domain1-in-ospf
◦ route-map domain1-in-ospf permit 10
◦ match ip address 10
◦ set metric 200
◦ set metric-type type-1
◦ Route map domain2-in-ospf
◦ route-map domain2-in-ospf permit 10
◦ match ip address 20
◦ set metric 200
◦ set metric-type type-2
◦ If route map sequence is a permit then redistribution will take place, if it
is a deny redistribution will not happen.
◦ In both route-maps above there is a match statement, first matches
access list 10 and second matches access list 20 (one for each
redistributed EIGRP domain).
◦ Then metric value was set to 200, which means that matched routes will
enter ospf domain with metric 200.
◦ Also you can set metric type for redistributed routes, if type-1 is chosen
then OSPF will add internal cost to redistributed metric, if type-2 is
chosen then metric value (cost) will remain unchanged.
◦ Take note that redistribution will happen or not depending on permit
or deny command of route-map sequence, but not ACL statement.
Redistribute commands!
◦ R1
◦ router ospf 1
◦ redistribute eigrp 1 subnets route-map domain1-in-ospf
◦ redistribute eigrp 2 subnets route-map domain2-in-ospf
◦ In redistribution statement we use route-map parameter to specify
witch route map will be used (in our case there is domain1-in-ospf and
domain2-in-ospf ). At this point R2 should have external routes to
EIGRP domains,
◦ R2
◦ R2#sh ip route
◦ Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
◦ D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
◦ N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
◦ E1 - OSPF external type 1, E2 - OSPF external type 2
◦ i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
◦ ia - IS-IS inter area, * - candidate default, U - per-user static route
◦ o - ODR, P - periodic downloaded static route
◦ Gateway of last resort is not set
◦ 172.16.0.0/24 is subnetted, 2 subnets
◦ O E2 172.16.30.0 [110/200] via 10.0.0.1, 00:13:20, FastEthernet0/0
◦ O E1 172.16.0.0 [110/210] via 10.0.0.1, 00:13:30, FastEthernet0/0
◦ 10.0.0.0/24 is subnetted, 1 subnets
◦ C 10.0.0.0 is directly connected, FastEthernet0/0
◦ O E1 192.168.0.0/24 [110/210] via 10.0.0.1, 00:13:30, FastEthernet0/0
◦ O E1 192.168.1.0/24 [110/210] via 10.0.0.1, 00:13:30, FastEthernet0/0
◦ O E2 192.168.2.0/24 [110/200] via 10.0.0.1, 00:13:20, FastEthernet0/0
◦ With E1 you see routes learned from first EIGRP domain that are type-1
routes and cost is 210 (200 at the redistribution point plus cost of R2’s
fa0/0 interface). With E2 (type-2) cost remains unchanged.
◦ If you noticed above in ACL 20 We’ve skipped 192.168.3.0/24 route in
second EIGRP domain. We did this with the purpose to not redistribute
that network in OSPF domain. Also you can filter routes from being
redistributed with deny sequences in route-maps.
Follow Us On
https://www.facebook.com/N
etProtocolXpert/
https://www.linkedin.com/c
ompany/netprotocol-xpert
https://plus.google.com/u/
0/collection/AYQ-EB
https://www.instagram.com/
netprotocol_xpert/
https://twitter.com/NPX_cisco
https://branded.me/netprot
ocolxpert

More Related Content

What's hot

Evolution of wireless generations
Evolution of wireless generationsEvolution of wireless generations
Evolution of wireless generationsBurhan Ahmed
 
Spanning tree protocol
Spanning tree protocolSpanning tree protocol
Spanning tree protocolMuuluu
 
Conmutación LAN e inalámbrica: 5. Spaning Tree Protocol STP
Conmutación LAN e inalámbrica: 5. Spaning Tree Protocol STPConmutación LAN e inalámbrica: 5. Spaning Tree Protocol STP
Conmutación LAN e inalámbrica: 5. Spaning Tree Protocol STPFrancesc Perez
 
CONFIGURACIÓN DE REDES IPv6
CONFIGURACIÓN DE REDES IPv6CONFIGURACIÓN DE REDES IPv6
CONFIGURACIÓN DE REDES IPv6Jhoni Guerrero
 
01 c1 Generalidades enrutamiento
01 c1   Generalidades enrutamiento01 c1   Generalidades enrutamiento
01 c1 Generalidades enrutamientoDavid Narváez
 
Dynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And BasicsDynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And BasicsHarsh Mehta
 
Evolucion de la comunicacion inalambrica
Evolucion de la comunicacion inalambrica Evolucion de la comunicacion inalambrica
Evolucion de la comunicacion inalambrica Saul Flores
 
Medios guiados y no guiados (redes para pc)
Medios guiados y no guiados (redes para pc)Medios guiados y no guiados (redes para pc)
Medios guiados y no guiados (redes para pc)Zoraida_Mena
 
VSAT( Very Small Aperture Terminal) :- In Detail
VSAT( Very Small Aperture Terminal) :- In DetailVSAT( Very Small Aperture Terminal) :- In Detail
VSAT( Very Small Aperture Terminal) :- In DetailNitish Kumar
 
Router configuration in packet tracer
Router configuration in packet  tracerRouter configuration in packet  tracer
Router configuration in packet tracerAnabia Anabia
 
Location Based Services for Mobiles: Technologies and Standards
Location Based Services for Mobiles: Technologies and StandardsLocation Based Services for Mobiles: Technologies and Standards
Location Based Services for Mobiles: Technologies and StandardsShu Wang
 

What's hot (20)

Ng Sdh
Ng SdhNg Sdh
Ng Sdh
 
Evolution of wireless generations
Evolution of wireless generationsEvolution of wireless generations
Evolution of wireless generations
 
Spanning tree protocol
Spanning tree protocolSpanning tree protocol
Spanning tree protocol
 
Handover
HandoverHandover
Handover
 
Seminario #4 redes de computadoras
Seminario #4   redes de computadorasSeminario #4   redes de computadoras
Seminario #4 redes de computadoras
 
Herramientas de monitorización de flujos ¿Qué tenemos? ¿Qué necesitamos?
Herramientas de monitorización de flujos ¿Qué tenemos? ¿Qué necesitamos?Herramientas de monitorización de flujos ¿Qué tenemos? ¿Qué necesitamos?
Herramientas de monitorización de flujos ¿Qué tenemos? ¿Qué necesitamos?
 
Arquitectura MPLS
Arquitectura MPLSArquitectura MPLS
Arquitectura MPLS
 
Conmutación LAN e inalámbrica: 5. Spaning Tree Protocol STP
Conmutación LAN e inalámbrica: 5. Spaning Tree Protocol STPConmutación LAN e inalámbrica: 5. Spaning Tree Protocol STP
Conmutación LAN e inalámbrica: 5. Spaning Tree Protocol STP
 
CONFIGURACIÓN DE REDES IPv6
CONFIGURACIÓN DE REDES IPv6CONFIGURACIÓN DE REDES IPv6
CONFIGURACIÓN DE REDES IPv6
 
01 c1 Generalidades enrutamiento
01 c1   Generalidades enrutamiento01 c1   Generalidades enrutamiento
01 c1 Generalidades enrutamiento
 
Rsvp
RsvpRsvp
Rsvp
 
Dynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And BasicsDynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And Basics
 
Evolucion de la comunicacion inalambrica
Evolucion de la comunicacion inalambrica Evolucion de la comunicacion inalambrica
Evolucion de la comunicacion inalambrica
 
Medios guiados y no guiados (redes para pc)
Medios guiados y no guiados (redes para pc)Medios guiados y no guiados (redes para pc)
Medios guiados y no guiados (redes para pc)
 
Comandos ccna (2)
Comandos ccna (2)Comandos ccna (2)
Comandos ccna (2)
 
Cuestionario de redes
Cuestionario de redesCuestionario de redes
Cuestionario de redes
 
VSAT( Very Small Aperture Terminal) :- In Detail
VSAT( Very Small Aperture Terminal) :- In DetailVSAT( Very Small Aperture Terminal) :- In Detail
VSAT( Very Small Aperture Terminal) :- In Detail
 
Router configuration in packet tracer
Router configuration in packet  tracerRouter configuration in packet  tracer
Router configuration in packet tracer
 
Topologías inalámbricas
Topologías inalámbricas Topologías inalámbricas
Topologías inalámbricas
 
Location Based Services for Mobiles: Technologies and Standards
Location Based Services for Mobiles: Technologies and StandardsLocation Based Services for Mobiles: Technologies and Standards
Location Based Services for Mobiles: Technologies and Standards
 

Viewers also liked

Viewers also liked (17)

DCI - Marcada para janeiro, implantação do bloco k pode ser adiada mais uma vez
DCI - Marcada para janeiro, implantação do bloco k pode ser adiada mais uma vezDCI - Marcada para janeiro, implantação do bloco k pode ser adiada mais uma vez
DCI - Marcada para janeiro, implantação do bloco k pode ser adiada mais uma vez
 
Artigo: Escritório de advocacia e contadores
Artigo: Escritório de advocacia e contadoresArtigo: Escritório de advocacia e contadores
Artigo: Escritório de advocacia e contadores
 
MY CV EKA PUTRI (1)
MY CV EKA PUTRI (1)MY CV EKA PUTRI (1)
MY CV EKA PUTRI (1)
 
CRONOGRAMA DE CAPACITACIONES CEG 2017 - PRIMER SEMESTRE
CRONOGRAMA DE CAPACITACIONES CEG 2017 - PRIMER SEMESTRECRONOGRAMA DE CAPACITACIONES CEG 2017 - PRIMER SEMESTRE
CRONOGRAMA DE CAPACITACIONES CEG 2017 - PRIMER SEMESTRE
 
CV
CVCV
CV
 
Ccna1v3.1 mod02
Ccna1v3.1 mod02 Ccna1v3.1 mod02
Ccna1v3.1 mod02
 
Scheda Tecnica Audi A4 2016
Scheda Tecnica Audi A4 2016Scheda Tecnica Audi A4 2016
Scheda Tecnica Audi A4 2016
 
"Санхүүгийн үндэс" Хичээл - 8
"Санхүүгийн үндэс" Хичээл - 8"Санхүүгийн үндэс" Хичээл - 8
"Санхүүгийн үндэс" Хичээл - 8
 
Remote-debugging-based-on-notrace32-20130619-1900
Remote-debugging-based-on-notrace32-20130619-1900Remote-debugging-based-on-notrace32-20130619-1900
Remote-debugging-based-on-notrace32-20130619-1900
 
Cisco 2960x switch password recovery
Cisco 2960x switch password recoveryCisco 2960x switch password recovery
Cisco 2960x switch password recovery
 
Hyundai Tucson: listino prezzi
Hyundai Tucson: listino prezziHyundai Tucson: listino prezzi
Hyundai Tucson: listino prezzi
 
Redistribution into EIGRP
Redistribution into EIGRPRedistribution into EIGRP
Redistribution into EIGRP
 
Network Security
Network SecurityNetwork Security
Network Security
 
vlan
vlanvlan
vlan
 
EIGRP Overview
EIGRP OverviewEIGRP Overview
EIGRP Overview
 
Network Security - Layer 2
Network Security - Layer 2Network Security - Layer 2
Network Security - Layer 2
 
Presentation of the lesson area of a kite
Presentation of the lesson area of a kitePresentation of the lesson area of a kite
Presentation of the lesson area of a kite
 

Similar to Route Maps & Redistribution into OSPF with Route Maps

Chapter 2-IP Routing.pdf
Chapter 2-IP Routing.pdfChapter 2-IP Routing.pdf
Chapter 2-IP Routing.pdfBuntha Chhay
 
Network virtualization beyond vla ns-part2
Network virtualization beyond vla ns-part2Network virtualization beyond vla ns-part2
Network virtualization beyond vla ns-part2IT Tech
 
第8讲 Rip和Igrp
第8讲 Rip和Igrp第8讲 Rip和Igrp
第8讲 Rip和IgrpF.l. Yu
 
Lab routing protocols eigrp
Lab routing protocols eigrpLab routing protocols eigrp
Lab routing protocols eigrpzafar85
 
Routing Information Protocol (RIP)
Routing Information Protocol (RIP)Routing Information Protocol (RIP)
Routing Information Protocol (RIP)Tharindu Sankalpa
 
Cisco Router EIGRP Config
Cisco Router EIGRP ConfigCisco Router EIGRP Config
Cisco Router EIGRP ConfigKadir CIKIS
 
Rip version1 configuration on Cisco router
Rip version1 configuration on Cisco routerRip version1 configuration on Cisco router
Rip version1 configuration on Cisco routertcpipguru
 
Ospf Cisco
Ospf CiscoOspf Cisco
Ospf CiscoAlp isik
 
Eigrp on a cisco asa firewall configuration
Eigrp on a cisco asa firewall configurationEigrp on a cisco asa firewall configuration
Eigrp on a cisco asa firewall configuration3Anetwork com
 
EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)NetProtocol Xpert
 
Ospf Last Modified Eng
Ospf  Last Modified EngOspf  Last Modified Eng
Ospf Last Modified EngAlp isik
 
How to configure Default Routing
How to configure Default RoutingHow to configure Default Routing
How to configure Default Routingtcpipguru
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccnarobertoxe
 

Similar to Route Maps & Redistribution into OSPF with Route Maps (20)

Chapter 2-IP Routing.pdf
Chapter 2-IP Routing.pdfChapter 2-IP Routing.pdf
Chapter 2-IP Routing.pdf
 
Network virtualization beyond vla ns-part2
Network virtualization beyond vla ns-part2Network virtualization beyond vla ns-part2
Network virtualization beyond vla ns-part2
 
Labs ospf
Labs ospfLabs ospf
Labs ospf
 
第8讲 Rip和Igrp
第8讲 Rip和Igrp第8讲 Rip和Igrp
第8讲 Rip和Igrp
 
Lab routing protocols eigrp
Lab routing protocols eigrpLab routing protocols eigrp
Lab routing protocols eigrp
 
Eigrp
EigrpEigrp
Eigrp
 
5242 bgp-ospf-redis
5242 bgp-ospf-redis5242 bgp-ospf-redis
5242 bgp-ospf-redis
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
 
Routing Information Protocol (RIP)
Routing Information Protocol (RIP)Routing Information Protocol (RIP)
Routing Information Protocol (RIP)
 
EIGRP CCNA
EIGRP CCNAEIGRP CCNA
EIGRP CCNA
 
Cisco Router EIGRP Config
Cisco Router EIGRP ConfigCisco Router EIGRP Config
Cisco Router EIGRP Config
 
Rip version1 configuration on Cisco router
Rip version1 configuration on Cisco routerRip version1 configuration on Cisco router
Rip version1 configuration on Cisco router
 
OSPF_multi.pdf
OSPF_multi.pdfOSPF_multi.pdf
OSPF_multi.pdf
 
Ospf Cisco
Ospf CiscoOspf Cisco
Ospf Cisco
 
Eigrp on a cisco asa firewall configuration
Eigrp on a cisco asa firewall configurationEigrp on a cisco asa firewall configuration
Eigrp on a cisco asa firewall configuration
 
EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)
 
Ppt of routing protocols
Ppt of routing protocolsPpt of routing protocols
Ppt of routing protocols
 
Ospf Last Modified Eng
Ospf  Last Modified EngOspf  Last Modified Eng
Ospf Last Modified Eng
 
How to configure Default Routing
How to configure Default RoutingHow to configure Default Routing
How to configure Default Routing
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
 

More from NetProtocol Xpert

Basic Cisco ASA 5506-x Configuration (Firepower)
Basic Cisco ASA 5506-x Configuration (Firepower)Basic Cisco ASA 5506-x Configuration (Firepower)
Basic Cisco ASA 5506-x Configuration (Firepower)NetProtocol Xpert
 
Common Layer 2 Threats, Attacks & Mitigation
Common Layer 2 Threats, Attacks & MitigationCommon Layer 2 Threats, Attacks & Mitigation
Common Layer 2 Threats, Attacks & MitigationNetProtocol Xpert
 
Dynamic ARP Inspection (DAI)
Dynamic ARP Inspection (DAI)Dynamic ARP Inspection (DAI)
Dynamic ARP Inspection (DAI)NetProtocol Xpert
 
Securing management, control & data plane
Securing management, control & data planeSecuring management, control & data plane
Securing management, control & data planeNetProtocol Xpert
 
Point to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAPPoint to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAPNetProtocol Xpert
 
Avoid DNS lookup when mistyping a command
Avoid DNS lookup when mistyping a commandAvoid DNS lookup when mistyping a command
Avoid DNS lookup when mistyping a commandNetProtocol Xpert
 
TCLSH and Macro Ping Test on Cisco Routers and Switches
TCLSH and Macro Ping Test on Cisco Routers and SwitchesTCLSH and Macro Ping Test on Cisco Routers and Switches
TCLSH and Macro Ping Test on Cisco Routers and SwitchesNetProtocol Xpert
 
MTU (maximum transmission unit) & MRU (maximum receive unit)
MTU (maximum transmission unit) & MRU (maximum receive unit)MTU (maximum transmission unit) & MRU (maximum receive unit)
MTU (maximum transmission unit) & MRU (maximum receive unit)NetProtocol Xpert
 
OTV(Overlay Transport Virtualization)
OTV(Overlay  Transport  Virtualization)OTV(Overlay  Transport  Virtualization)
OTV(Overlay Transport Virtualization)NetProtocol Xpert
 

More from NetProtocol Xpert (20)

Basic Cisco ASA 5506-x Configuration (Firepower)
Basic Cisco ASA 5506-x Configuration (Firepower)Basic Cisco ASA 5506-x Configuration (Firepower)
Basic Cisco ASA 5506-x Configuration (Firepower)
 
MPLS Layer 3 VPN
MPLS Layer 3 VPN MPLS Layer 3 VPN
MPLS Layer 3 VPN
 
Common Layer 2 Threats, Attacks & Mitigation
Common Layer 2 Threats, Attacks & MitigationCommon Layer 2 Threats, Attacks & Mitigation
Common Layer 2 Threats, Attacks & Mitigation
 
Storm-Control
Storm-ControlStorm-Control
Storm-Control
 
Dynamic ARP Inspection (DAI)
Dynamic ARP Inspection (DAI)Dynamic ARP Inspection (DAI)
Dynamic ARP Inspection (DAI)
 
IP Source Guard
IP Source Guard IP Source Guard
IP Source Guard
 
DHCP Snooping
DHCP SnoopingDHCP Snooping
DHCP Snooping
 
Password Recovery
Password RecoveryPassword Recovery
Password Recovery
 
Application & Data Center
Application & Data CenterApplication & Data Center
Application & Data Center
 
Cisco ISR 4351 Router
Cisco ISR 4351 RouterCisco ISR 4351 Router
Cisco ISR 4351 Router
 
Cisco ASR 1001-X Router
Cisco ASR 1001-X RouterCisco ASR 1001-X Router
Cisco ASR 1001-X Router
 
Securing management, control & data plane
Securing management, control & data planeSecuring management, control & data plane
Securing management, control & data plane
 
Point to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAPPoint to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAP
 
Avoid DNS lookup when mistyping a command
Avoid DNS lookup when mistyping a commandAvoid DNS lookup when mistyping a command
Avoid DNS lookup when mistyping a command
 
TCLSH and Macro Ping Test on Cisco Routers and Switches
TCLSH and Macro Ping Test on Cisco Routers and SwitchesTCLSH and Macro Ping Test on Cisco Routers and Switches
TCLSH and Macro Ping Test on Cisco Routers and Switches
 
Private VLANs
Private VLANsPrivate VLANs
Private VLANs
 
MTU (maximum transmission unit) & MRU (maximum receive unit)
MTU (maximum transmission unit) & MRU (maximum receive unit)MTU (maximum transmission unit) & MRU (maximum receive unit)
MTU (maximum transmission unit) & MRU (maximum receive unit)
 
OTV Configuration
OTV ConfigurationOTV Configuration
OTV Configuration
 
Cisco OTV 
Cisco OTV Cisco OTV 
Cisco OTV 
 
OTV(Overlay Transport Virtualization)
OTV(Overlay  Transport  Virtualization)OTV(Overlay  Transport  Virtualization)
OTV(Overlay Transport Virtualization)
 

Recently uploaded

Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 

Recently uploaded (20)

Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 

Route Maps & Redistribution into OSPF with Route Maps

  • 1. ROUTE MAPS & REDISTRIBUTION INTO OSPF WITH ROUTE MAPS www.netprotocolxpert.in
  • 2. Route Maps ◦ Route Maps represent a powerful tool for manipulating ip routes and packets. Route maps are somewhat similar to Access Lists but are more complex and more powerful. This article describe the basics of route maps on Cisco devices, and what they are used for. Route maps are widely used by: ◦ Border Gateway Protocol (BGP); ◦ Route Redistribution; ◦ Policy Based Routing (PBR).
  • 3. ◦ When a route map is applied it will check packets against a match with match command. ◦ If a match occurs then an action can be done by using set command. ◦ Every statement in a route map has a sequence number, default sequence number is 10. ◦ Each statement has a permit or deny parameter, which can have different effects in different situations. Any statement that has the same name is the part of the same Route Map. ◦ Each route map statement can contain one or several match or set statements.
  • 4. example ◦ route-map TEST deny 10 ◦ match ip address 50 ◦ route-map TEST permit 20 ◦ match ip address 60 70 ◦ set ip next-hop 10.10.10.10 ◦ In example above you see route map TEST. Numbers 10 and 20 are sequence numbers. This route map can be used in Policy Based Routing (PBR) where next hop address is set to 10.10.10.10. Numbers 50, 60 and 70 are Access Lists numbers, that route map will use to find out which packets to analyse.
  • 5. When this route map is used by PBR, following will happen: ◦ If a match in first statement occurs, then next hop will remain and route map is not further analysed; ◦ If a match in first statement will not occur, next statement will be analysed; ◦ If in second statement a match occurs, set command will take effect and next hop will be changed. ◦ At the end of route map there is an implicit “deny all”, similarly to ACLs.
  • 6. ◦ A match statement can have more than one criteria (like previous slide, criteria 60 and 70). If so, then a logical OR is applied, i.e at least one of them must be true to consider this statement as a match. ◦ If there are multiple match statements under the same sequence number, then a logical AND is applied, i.e all of them must be true to consider this statement (for this sequence number) as a match.
  • 7. Redistribution into OSPF with Route Maps
  • 8.
  • 9. ◦ In the topology we have two EIGRP domains and one OSPF domain. The task is to redistribute EIGRP learned routes into OSPF domain. Redistribution will be done by router R1 which is part of all routing domains. ◦ Let’s assume that all interface configurations are done and EIGRP and OSPF is configured except redistribution. At this point R1 knows all routes learned by EIGRP and OSPF, R2 doesn’t know EIGRP learned routes.
  • 10. ◦ R1 ◦ R1#show ip route ◦ Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP ◦ D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area ◦ N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 ◦ E1 - OSPF external type 1, E2 - OSPF external type 2 ◦ i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ◦ ia - IS-IS inter area, * - candidate default, U - per-user static route ◦ o - ODR, P - periodic downloaded static route ◦ Gateway of last resort is not set ◦ 172.16.0.0/24 is subnetted, 2 subnets ◦ C 172.16.30.0 is directly connected, FastEthernet0/1 ◦ C 172.16.0.0 is directly connected, FastEthernet0/0 ◦ 10.0.0.0/24 is subnetted, 1 subnets ◦ C 10.0.0.0 is directly connected, FastEthernet1/0 ◦ D 192.168.0.0/24 [90/409600] via 172.16.0.2, 01:12:06, FastEthernet0/0 ◦ D 192.168.1.0/24 [90/409600] via 172.16.0.2, 01:12:06, FastEthernet0/0 ◦ D 192.168.2.0/24 [90/409600] via 172.16.30.2, 01:12:06, FastEthernet0/1 ◦ D 192.168.3.0/24 [90/409600] via 172.16.30.2, 01:12:08, FastEthernet0/1
  • 11. When configuring route redistribution with route-maps a simple guideline should be followed: ◦ Define one or more ACLs (Access Lists) in which specify routes that be checked by the route-map; ◦ Define an route-map with permit (redistribution will take place) or deny (redistribution will not take place) statements where ACLs are matched and attributes for routes are set; ◦ Set the route-map parameter in redistribute command.
  • 12. Configuring Redistribution (R1) ◦ ACL 10 used to specify routes from EIGRP domain 1: ◦ ip access-list standard 10 ◦ 10 permit 192.168.0.0 0.0.0.255 ◦ 20 permit 192.168.1.0 0.0.0.255 ◦ 30 permit 172.16.0.0 0.0.0.255 ◦ ACL 20 used to specify routes from EIGRP domain 2: ◦ ip access-list standard 20 ◦ 10 permit 192.168.2.0 0.0.0.255 ◦ 20 permit 172.16.30.0 0.0.0.255
  • 13. ◦ Route map domain1-in-ospf ◦ route-map domain1-in-ospf permit 10 ◦ match ip address 10 ◦ set metric 200 ◦ set metric-type type-1 ◦ Route map domain2-in-ospf ◦ route-map domain2-in-ospf permit 10 ◦ match ip address 20 ◦ set metric 200 ◦ set metric-type type-2
  • 14. ◦ If route map sequence is a permit then redistribution will take place, if it is a deny redistribution will not happen. ◦ In both route-maps above there is a match statement, first matches access list 10 and second matches access list 20 (one for each redistributed EIGRP domain). ◦ Then metric value was set to 200, which means that matched routes will enter ospf domain with metric 200. ◦ Also you can set metric type for redistributed routes, if type-1 is chosen then OSPF will add internal cost to redistributed metric, if type-2 is chosen then metric value (cost) will remain unchanged. ◦ Take note that redistribution will happen or not depending on permit or deny command of route-map sequence, but not ACL statement.
  • 15. Redistribute commands! ◦ R1 ◦ router ospf 1 ◦ redistribute eigrp 1 subnets route-map domain1-in-ospf ◦ redistribute eigrp 2 subnets route-map domain2-in-ospf ◦ In redistribution statement we use route-map parameter to specify witch route map will be used (in our case there is domain1-in-ospf and domain2-in-ospf ). At this point R2 should have external routes to EIGRP domains,
  • 16. ◦ R2 ◦ R2#sh ip route ◦ Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP ◦ D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area ◦ N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 ◦ E1 - OSPF external type 1, E2 - OSPF external type 2 ◦ i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ◦ ia - IS-IS inter area, * - candidate default, U - per-user static route ◦ o - ODR, P - periodic downloaded static route ◦ Gateway of last resort is not set ◦ 172.16.0.0/24 is subnetted, 2 subnets ◦ O E2 172.16.30.0 [110/200] via 10.0.0.1, 00:13:20, FastEthernet0/0 ◦ O E1 172.16.0.0 [110/210] via 10.0.0.1, 00:13:30, FastEthernet0/0 ◦ 10.0.0.0/24 is subnetted, 1 subnets ◦ C 10.0.0.0 is directly connected, FastEthernet0/0 ◦ O E1 192.168.0.0/24 [110/210] via 10.0.0.1, 00:13:30, FastEthernet0/0 ◦ O E1 192.168.1.0/24 [110/210] via 10.0.0.1, 00:13:30, FastEthernet0/0 ◦ O E2 192.168.2.0/24 [110/200] via 10.0.0.1, 00:13:20, FastEthernet0/0
  • 17. ◦ With E1 you see routes learned from first EIGRP domain that are type-1 routes and cost is 210 (200 at the redistribution point plus cost of R2’s fa0/0 interface). With E2 (type-2) cost remains unchanged. ◦ If you noticed above in ACL 20 We’ve skipped 192.168.3.0/24 route in second EIGRP domain. We did this with the purpose to not redistribute that network in OSPF domain. Also you can filter routes from being redistributed with deny sequences in route-maps.