SlideShare a Scribd company logo
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

Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eChapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eadpeer
 
CCIE Lab - IGP Routing
CCIE Lab -  IGP Routing  CCIE Lab -  IGP Routing
CCIE Lab - IGP Routing
Kristof De Brouwer
 
Spanning Tree Protocol
Spanning Tree ProtocolSpanning Tree Protocol
Spanning Tree Protocol
Manoj Gharate
 
Virtual Local Area Network (VLAN)
Virtual Local Area Network (VLAN)Virtual Local Area Network (VLAN)
Virtual Local Area Network (VLAN)
Mohammad Javad Abdolmaleki
 
I pv4 address classes
I pv4 address classesI pv4 address classes
I pv4 address classes
mail2rajeev10
 
Subnet Mask
Subnet MaskSubnet Mask
Subnet Mask
NetProtocol Xpert
 
Subnetting
SubnettingSubnetting
Subnetting
Fatima Qayyum
 
Static Routing
Static RoutingStatic Routing
Static Routing
Kishore Kumar
 
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
NetProtocol Xpert
 
CCNA-LAB-GUIDE-V3_LAST-ADDITION (4).pdf
CCNA-LAB-GUIDE-V3_LAST-ADDITION (4).pdfCCNA-LAB-GUIDE-V3_LAST-ADDITION (4).pdf
CCNA-LAB-GUIDE-V3_LAST-ADDITION (4).pdf
poojaswami31
 
Ccna Commands In 10 Minutes
Ccna Commands In 10 MinutesCcna Commands In 10 Minutes
Ccna Commands In 10 Minutes
CCNAResources
 
IOS Cisco - Cheat sheets
IOS Cisco - Cheat sheetsIOS Cisco - Cheat sheets
IOS Cisco - Cheat sheets
Alejandro Marin
 
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERSDay 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERSanilinvns
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
university of Gujrat, pakistan
 
Cisco router basic
Cisco router basicCisco router basic
Cisco router basic
Tapan Khilar
 
Fhrp notes
Fhrp notesFhrp notes
Fhrp notes
Krunal Shah
 

What's hot (20)

Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eChapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
 
Ipv4
Ipv4Ipv4
Ipv4
 
CCIE Lab - IGP Routing
CCIE Lab -  IGP Routing  CCIE Lab -  IGP Routing
CCIE Lab - IGP Routing
 
Spanning Tree Protocol
Spanning Tree ProtocolSpanning Tree Protocol
Spanning Tree Protocol
 
Virtual Local Area Network (VLAN)
Virtual Local Area Network (VLAN)Virtual Local Area Network (VLAN)
Virtual Local Area Network (VLAN)
 
Ip addressing classful
Ip addressing classfulIp addressing classful
Ip addressing classful
 
I pv4 address classes
I pv4 address classesI pv4 address classes
I pv4 address classes
 
Subnet Mask
Subnet MaskSubnet Mask
Subnet Mask
 
Subnetting
SubnettingSubnetting
Subnetting
 
Subnetting
SubnettingSubnetting
Subnetting
 
Static Routing
Static RoutingStatic Routing
Static Routing
 
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
 
CCNA-LAB-GUIDE-V3_LAST-ADDITION (4).pdf
CCNA-LAB-GUIDE-V3_LAST-ADDITION (4).pdfCCNA-LAB-GUIDE-V3_LAST-ADDITION (4).pdf
CCNA-LAB-GUIDE-V3_LAST-ADDITION (4).pdf
 
Ccna Commands In 10 Minutes
Ccna Commands In 10 MinutesCcna Commands In 10 Minutes
Ccna Commands In 10 Minutes
 
IOS Cisco - Cheat sheets
IOS Cisco - Cheat sheetsIOS Cisco - Cheat sheets
IOS Cisco - Cheat sheets
 
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERSDay 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 
Cisco router basic
Cisco router basicCisco router basic
Cisco router basic
 
Fhrp notes
Fhrp notesFhrp notes
Fhrp notes
 
CCNA IP Addressing
CCNA IP AddressingCCNA IP Addressing
CCNA IP Addressing
 

Viewers also liked

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
Grounds - Expanding tax & financial limits
 
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
Grounds - Expanding tax & financial limits
 
MY CV EKA PUTRI (1)
MY CV EKA PUTRI (1)MY CV EKA PUTRI (1)
MY CV EKA PUTRI (1)EKA PUTRI
 
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
Federación Ecuatoriana de Exportadores - FEDEXPOR
 
Ccna1v3.1 mod02
Ccna1v3.1 mod02 Ccna1v3.1 mod02
Ccna1v3.1 mod02
Karthick Bala
 
Scheda Tecnica Audi A4 2016
Scheda Tecnica Audi A4 2016Scheda Tecnica Audi A4 2016
Scheda Tecnica Audi A4 2016
Autoblog.it
 
"Санхүүгийн үндэс" Хичээл - 8
"Санхүүгийн үндэс" Хичээл - 8"Санхүүгийн үндэс" Хичээл - 8
"Санхүүгийн үндэс" Хичээл - 8
E-Gazarchin Online University
 
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-1900Samsung Electronics
 
Cisco 2960x switch password recovery
Cisco 2960x switch password recoveryCisco 2960x switch password recovery
Cisco 2960x switch password recovery
NetProtocol Xpert
 
Hyundai Tucson: listino prezzi
Hyundai Tucson: listino prezziHyundai Tucson: listino prezzi
Hyundai Tucson: listino prezzi
autoblogpuntoit
 
Redistribution into EIGRP
Redistribution into EIGRPRedistribution into EIGRP
Redistribution into EIGRP
NetProtocol Xpert
 
Network Security
Network SecurityNetwork Security
Network Security
hj43us
 
vlan
vlanvlan
EIGRP Overview
EIGRP OverviewEIGRP Overview
EIGRP Overview
NetProtocol Xpert
 
Network Security - Layer 2
Network Security - Layer 2Network Security - Layer 2
Network Security - Layer 2
samis
 
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
Jhona Bustamante
 

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.pdf
Buntha Chhay
 
Network virtualization beyond vla ns-part2
Network virtualization beyond vla ns-part2Network virtualization beyond vla ns-part2
Network virtualization beyond vla ns-part2
IT 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
 
Eigrp
EigrpEigrp
5242 bgp-ospf-redis
5242 bgp-ospf-redis5242 bgp-ospf-redis
5242 bgp-ospf-redis
Andrei Alexandru
 
Routing Information Protocol (RIP)
Routing Information Protocol (RIP)Routing Information Protocol (RIP)
Routing Information Protocol (RIP)
Tharindu Sankalpa
 
EIGRP CCNA
EIGRP CCNAEIGRP CCNA
Cisco Router EIGRP Config
Cisco Router EIGRP ConfigCisco Router EIGRP Config
Cisco Router EIGRP Config
Kadir 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_multi.pdf
OSPF_multi.pdfOSPF_multi.pdf
OSPF_multi.pdf
Denis Rasskazov
 
Ospf Cisco
Ospf CiscoOspf Cisco
Ospf Cisco
Alp 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 Eng
Alp 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
 
MPLS Layer 3 VPN
MPLS Layer 3 VPN MPLS Layer 3 VPN
MPLS Layer 3 VPN
NetProtocol Xpert
 
Common Layer 2 Threats, Attacks & Mitigation
Common Layer 2 Threats, Attacks & MitigationCommon Layer 2 Threats, Attacks & Mitigation
Common Layer 2 Threats, Attacks & Mitigation
NetProtocol Xpert
 
Storm-Control
Storm-ControlStorm-Control
Storm-Control
NetProtocol Xpert
 
Dynamic ARP Inspection (DAI)
Dynamic ARP Inspection (DAI)Dynamic ARP Inspection (DAI)
Dynamic ARP Inspection (DAI)
NetProtocol Xpert
 
IP Source Guard
IP Source Guard IP Source Guard
IP Source Guard
NetProtocol Xpert
 
DHCP Snooping
DHCP SnoopingDHCP Snooping
DHCP Snooping
NetProtocol Xpert
 
Password Recovery
Password RecoveryPassword Recovery
Password Recovery
NetProtocol Xpert
 
Application & Data Center
Application & Data CenterApplication & Data Center
Application & Data Center
NetProtocol Xpert
 
Cisco ISR 4351 Router
Cisco ISR 4351 RouterCisco ISR 4351 Router
Cisco ISR 4351 Router
NetProtocol Xpert
 
Cisco ASR 1001-X Router
Cisco ASR 1001-X RouterCisco ASR 1001-X Router
Cisco ASR 1001-X Router
NetProtocol Xpert
 
Securing management, control & data plane
Securing management, control & data planeSecuring management, control & data plane
Securing management, control & data plane
NetProtocol 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 command
NetProtocol 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 Switches
NetProtocol Xpert
 
Private VLANs
Private VLANsPrivate VLANs
Private VLANs
NetProtocol 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 Configuration
OTV ConfigurationOTV Configuration
OTV Configuration
NetProtocol Xpert
 
Cisco OTV 
Cisco OTV Cisco OTV 
Cisco OTV 
NetProtocol Xpert
 
OTV(Overlay Transport Virtualization)
OTV(Overlay  Transport  Virtualization)OTV(Overlay  Transport  Virtualization)
OTV(Overlay Transport Virtualization)
NetProtocol Xpert
 
Regular expression examples
Regular expression examplesRegular expression examples
Regular expression examples
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
 
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)
 
Regular expression examples
Regular expression examplesRegular expression examples
Regular expression examples
 

Recently uploaded

space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 

Recently uploaded (20)

space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 

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.