SlideShare a Scribd company logo
Redistribution into OSPF
www.netprotocolxpert.in
There are similarities and differences when compared to EIGRP redistribution.
OSPF does have default metrics but in EIGRP must set them. Both of them mark routes
as being External. When make redistribution into OSPF external routes can be of two
types: E1 and E2.
OSPF uses LSAs to represent external routes and apply a different logic to calculate
routes to external subnets..
Redistribution into OSPF
we have two types of external routes: E1 and E2. Those marked E2 will be
redistributed with Default Metric unchanged an will ignore internal OSPF cost (except
when there is a need to break ties for best route). For those marked with E1, OSPF
will take Default Metric and will add to it internal cost to reach ASBR.
Default Metric for routes taken from BGP is 1, for routes taken from another OSPF
process will use the source route’s metric, and for all other sources will use default
metric equal to 20.
In the topology we have two EIGPR domains and one OSPF domain. we will make
redistribution of routes from EIGRP domain 1 as E1 routes and from EIGRP domain 2
as E2.
To each EIGRP domain we attached two loopback interfaces, so after we configure
redistribution on R2 we should have external routes to them.
R1
R1(config)#interface FastEthernet0/0
R1(config-if)#description to R3
R1(config-if)#ip address 172.16.0.1 255.255.255.0
R1(config-if)#no shutdown
R1(config)#interface FastEthernet0/1
R1(config-if)#description to R4
R1(config-if)#ip address 172.16.30.1 255.255.255.0
R1(config-if)#no shutdown
R1(config)#interface FastEthernet1/0
R1(config-if)#description to R2
R1(config-if)#ip address 10.0.0.1 255.255.255.0
R1(config-if)#no shutdown
R1(config)#router eigrp 1
R1(config-router)#network 172.16.0.0 0.0.0.255
R1(config-router)#no auto-summary
R1(config)#router eigrp 2
R1(config-router)#network 172.16.30.0 0.0.0.255
R1(config-router)#no auto-summary
R1(config)#router ospf 1
R1(config-router)#network 10.0.0.0 0.0.0.255 area 0
R2
R2(config)#interface FastEthernet0/0
R2(config-if)#description to R1
R2(config-if)#ip address 10.0.0.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#router ospf 1
R2(config-router)#network 10.0.0.0 0.0.0.255 area 0
R3 R3(config)#interface Loopback0
R3(config-if)#ip address 192.168.0.1 255.255.255.0
R3(config)#interface Loopback1
R3(config-if)#ip address 192.168.1.1 255.255.255.0
R3(config)#interface FastEthernet0/0
R3(config-if)#description to R1
R3(config-if)#ip address 172.16.0.2 255.255.255.0
R3(config-if)#no shutdown
R3(config)#router eigrp 1
R3(config-router)# network 172.16.0.0 0.0.0.255
R3(config-router)# network 192.168.0.0
R3(config-router)# network 192.168.1.0
R3(config-router)# no auto-summary
R4 R4(config)#interface Loopback0
R4(config-if)#ip address 192.168.2.1 255.255.255.0
R4(config)#interface Loopback1
R4(config-if)#ip address 192.168.3.1 255.255.255.0
R4(config)#interface FastEthernet0/0
R4(config-if)#ip address 172.16.30.2 255.255.255.0
R4(config-if)#no shutdown
R4(config)#router eigrp 2
R4(config-router)#network 172.16.0.0
R4(config-router)#network 192.168.2.0
R4(config-router)#network 192.168.3.0
R4(config-router)#no auto-summary
Now R1 should be EIGRP neighbor with R3 and R4, also R1 with R2 should be OSPF
neighbors.
Check them with show ip eigrp neighbors and show ip ospf neighbor commands.
Further we will add redistribution commands on R1 to import routes in OSPF domain.
Routes learned from EIGRP domain 1 will be marked with E1, from EIGRP domain 2
will be marked with E2.
R1
R1(config)#router ospf 1
R1(config-router)# redistribute eigrp 1 metric-type 1 subnets
R1(config-router)# redistribute eigrp 2 metric-type 2 subnets
R3
R3(config)#ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
R4
R4(config)#ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
Keyword subnet highlighted in bold
it’s important because without it
OSPF will make redistribution of only
classful subnets. If we do not type
metric type it will be E2, this is
default metric type. It’s time to
check what we got. I put on R3 and
R4 default routes to point all
unknown traffic to R1 (in our case it
will be traffic to R2).
Wecanseeoutput of“showiproute”onR2
As we can see in the previous slide picture redistribution has worked, Routes
redistributed from first EIGRP domain are marked as E1 and have cost of 30 which is
the sum of the default metric (20) and 10 Mb/s link cost (10) that connects R1 with
R2.
Routes learned from second EIGRP domain are marked with E2 and have cost of 20
(default metric).
ping from R2 to R3 loopback interface
Follow us
@https://www.facebook.com/Net
ProtocolXpert/
https://www.linkedin.com/com
pany/netprotocol-xpert
https://plus.google.com/u/0/+
NetProtocolXpert_NPX/posts
https://www.instagram.com/n
etprotocol_xpert/
https://twitter.com/NPX_cis
co
https://branded.me/netp
rotocolxpert

More Related Content

PPTX
OSPF Internal Route Summarization
PPTX
Route Redistribution between OSPF and EIGRP
PPTX
OSPF Summary LSA (Type 3 LSA)
PPTX
Route Redistribution
PPTX
BGP Next-hop-self
PPTX
OSPF Network LSA (Type 2 LSA)
PPTX
BGP Loop Prevention
OSPF Internal Route Summarization
Route Redistribution between OSPF and EIGRP
OSPF Summary LSA (Type 3 LSA)
Route Redistribution
BGP Next-hop-self
OSPF Network LSA (Type 2 LSA)
BGP Loop Prevention

What's hot (20)

PPT
EIGRP Configuration
PDF
Route Redistribution
PPTX
OSPF External Route Summarization
PPTX
EIGRP (Enhanced Interior Gateway Routing Protocol)
PPT
OSPF summary & Differences between OSPF and EIGRP
PPT
OSPF Configuration
PPT
OSPF Overview
PPT
Ospf
PPTX
OSPF Summarization
PPTX
OSPF Authentication
PPT
PPTX
OSPF Router LSA (Type 1)
PPTX
Лекц 15
PPTX
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
PDF
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
PPTX
EIGRP Overview
PPTX
Multi-area ospf adjacency on ios-xr
PPT
EIGRP Automatic & Manual Summarization
PDF
Routing Protocol EIGRP
EIGRP Configuration
Route Redistribution
OSPF External Route Summarization
EIGRP (Enhanced Interior Gateway Routing Protocol)
OSPF summary & Differences between OSPF and EIGRP
OSPF Configuration
OSPF Overview
Ospf
OSPF Summarization
OSPF Authentication
OSPF Router LSA (Type 1)
Лекц 15
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
EIGRP Overview
Multi-area ospf adjacency on ios-xr
EIGRP Automatic & Manual Summarization
Routing Protocol EIGRP
Ad

Viewers also liked (15)

PDF
Heat transfer by evaporation
PDF
XP再解釈
PDF
Aggression in health_web
PDF
communication design philosophy
PDF
Ipsos Global @dvisor 24: Employee Relocation
PPTX
Everything You Need To Know About Creating and Maintaining Donor Relationships
DOC
Planificacion de riesgos._esquema
PDF
Cursuri open septembrie
PDF
Cursuri open august
PPTX
Fases Tecnológicas
PPTX
[SNU Computer Vision Course Project] Image Style Recognition
PPTX
7 c's of effective communication. Abid Hussain Sindhu, M14BBA036,HCBF, PU
PPTX
最近の事例におけるサイバー攻撃の傾向と対策
PPTX
Physiopathologie et perspectives thérapeutiques dans la polykystose rénale
PDF
Reading and Writing Molecular File Formats for Data Exchange of Small Molecul...
Heat transfer by evaporation
XP再解釈
Aggression in health_web
communication design philosophy
Ipsos Global @dvisor 24: Employee Relocation
Everything You Need To Know About Creating and Maintaining Donor Relationships
Planificacion de riesgos._esquema
Cursuri open septembrie
Cursuri open august
Fases Tecnológicas
[SNU Computer Vision Course Project] Image Style Recognition
7 c's of effective communication. Abid Hussain Sindhu, M14BBA036,HCBF, PU
最近の事例におけるサイバー攻撃の傾向と対策
Physiopathologie et perspectives thérapeutiques dans la polykystose rénale
Reading and Writing Molecular File Formats for Data Exchange of Small Molecul...
Ad

Similar to Redistribution into OSPF (20)

PPTX
Redistribution into EIGRP
PPTX
Redistribution into EIGRP with Route Maps
DOCX
Redistribution into EIGRP(Exterior & Interior gateway Routing protocol)
PDF
OSPF (open shortest path first) part ii
PDF
OSPF (open shortest path first) part iii
PPT
Chapter7ccna
PDF
Eincop Netwax Lab: Redistribution
DOCX
Packet Tracer: Routing protocols EIGRP and OSPF
PPTX
Route Maps & Redistribution into OSPF with Route Maps
PDF
Eincop Netwax Lab: Route Redistribution
PPTX
13. eigrp and ospf
PPT
Routing and OSPF
PDF
Extensive Reviews of OSPF and EIGRP Routing Protocols based on Route Summariz...
PPT
Chapter7ccna
PPT
Chapter7ccna
PPTX
BSCI30S05 Redistribution, DHCP.pptx
PDF
5242 bgp-ospf-redis
PDF
Performance Analysis of Routing Protocols RIP, OSPF and EIGRP
PDF
A single router is running both OSPF and EIGRP routing protocols. The.pdf
PDF
IOS Cisco - Cheat sheets
Redistribution into EIGRP
Redistribution into EIGRP with Route Maps
Redistribution into EIGRP(Exterior & Interior gateway Routing protocol)
OSPF (open shortest path first) part ii
OSPF (open shortest path first) part iii
Chapter7ccna
Eincop Netwax Lab: Redistribution
Packet Tracer: Routing protocols EIGRP and OSPF
Route Maps & Redistribution into OSPF with Route Maps
Eincop Netwax Lab: Route Redistribution
13. eigrp and ospf
Routing and OSPF
Extensive Reviews of OSPF and EIGRP Routing Protocols based on Route Summariz...
Chapter7ccna
Chapter7ccna
BSCI30S05 Redistribution, DHCP.pptx
5242 bgp-ospf-redis
Performance Analysis of Routing Protocols RIP, OSPF and EIGRP
A single router is running both OSPF and EIGRP routing protocols. The.pdf
IOS Cisco - Cheat sheets

More from NetProtocol Xpert (20)

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

Recently uploaded (20)

PDF
III.4.1.2_The_Space_Environment.p pdffdf
PPTX
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
PPTX
introduction to high performance computing
PPT
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
PDF
Abrasive, erosive and cavitation wear.pdf
PPTX
Current and future trends in Computer Vision.pptx
PDF
737-MAX_SRG.pdf student reference guides
PDF
Visual Aids for Exploratory Data Analysis.pdf
PPTX
Fundamentals of Mechanical Engineering.pptx
PPTX
Feature types and data preprocessing steps
PPTX
Software Engineering and software moduleing
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PDF
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PDF
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PDF
August 2025 - Top 10 Read Articles in Network Security & Its Applications
PDF
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
III.4.1.2_The_Space_Environment.p pdffdf
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
introduction to high performance computing
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
Abrasive, erosive and cavitation wear.pdf
Current and future trends in Computer Vision.pptx
737-MAX_SRG.pdf student reference guides
Visual Aids for Exploratory Data Analysis.pdf
Fundamentals of Mechanical Engineering.pptx
Feature types and data preprocessing steps
Software Engineering and software moduleing
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
Categorization of Factors Affecting Classification Algorithms Selection
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
August 2025 - Top 10 Read Articles in Network Security & Its Applications
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
Fundamentals of safety and accident prevention -final (1).pptx
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems

Redistribution into OSPF

  • 2. There are similarities and differences when compared to EIGRP redistribution. OSPF does have default metrics but in EIGRP must set them. Both of them mark routes as being External. When make redistribution into OSPF external routes can be of two types: E1 and E2. OSPF uses LSAs to represent external routes and apply a different logic to calculate routes to external subnets..
  • 4. we have two types of external routes: E1 and E2. Those marked E2 will be redistributed with Default Metric unchanged an will ignore internal OSPF cost (except when there is a need to break ties for best route). For those marked with E1, OSPF will take Default Metric and will add to it internal cost to reach ASBR. Default Metric for routes taken from BGP is 1, for routes taken from another OSPF process will use the source route’s metric, and for all other sources will use default metric equal to 20. In the topology we have two EIGPR domains and one OSPF domain. we will make redistribution of routes from EIGRP domain 1 as E1 routes and from EIGRP domain 2 as E2. To each EIGRP domain we attached two loopback interfaces, so after we configure redistribution on R2 we should have external routes to them.
  • 5. R1 R1(config)#interface FastEthernet0/0 R1(config-if)#description to R3 R1(config-if)#ip address 172.16.0.1 255.255.255.0 R1(config-if)#no shutdown R1(config)#interface FastEthernet0/1 R1(config-if)#description to R4 R1(config-if)#ip address 172.16.30.1 255.255.255.0 R1(config-if)#no shutdown R1(config)#interface FastEthernet1/0 R1(config-if)#description to R2 R1(config-if)#ip address 10.0.0.1 255.255.255.0 R1(config-if)#no shutdown R1(config)#router eigrp 1 R1(config-router)#network 172.16.0.0 0.0.0.255 R1(config-router)#no auto-summary R1(config)#router eigrp 2 R1(config-router)#network 172.16.30.0 0.0.0.255 R1(config-router)#no auto-summary R1(config)#router ospf 1 R1(config-router)#network 10.0.0.0 0.0.0.255 area 0
  • 6. R2 R2(config)#interface FastEthernet0/0 R2(config-if)#description to R1 R2(config-if)#ip address 10.0.0.2 255.255.255.0 R2(config-if)#no shutdown R2(config)#router ospf 1 R2(config-router)#network 10.0.0.0 0.0.0.255 area 0
  • 7. R3 R3(config)#interface Loopback0 R3(config-if)#ip address 192.168.0.1 255.255.255.0 R3(config)#interface Loopback1 R3(config-if)#ip address 192.168.1.1 255.255.255.0 R3(config)#interface FastEthernet0/0 R3(config-if)#description to R1 R3(config-if)#ip address 172.16.0.2 255.255.255.0 R3(config-if)#no shutdown R3(config)#router eigrp 1 R3(config-router)# network 172.16.0.0 0.0.0.255 R3(config-router)# network 192.168.0.0 R3(config-router)# network 192.168.1.0 R3(config-router)# no auto-summary
  • 8. R4 R4(config)#interface Loopback0 R4(config-if)#ip address 192.168.2.1 255.255.255.0 R4(config)#interface Loopback1 R4(config-if)#ip address 192.168.3.1 255.255.255.0 R4(config)#interface FastEthernet0/0 R4(config-if)#ip address 172.16.30.2 255.255.255.0 R4(config-if)#no shutdown R4(config)#router eigrp 2 R4(config-router)#network 172.16.0.0 R4(config-router)#network 192.168.2.0 R4(config-router)#network 192.168.3.0 R4(config-router)#no auto-summary
  • 9. Now R1 should be EIGRP neighbor with R3 and R4, also R1 with R2 should be OSPF neighbors. Check them with show ip eigrp neighbors and show ip ospf neighbor commands. Further we will add redistribution commands on R1 to import routes in OSPF domain. Routes learned from EIGRP domain 1 will be marked with E1, from EIGRP domain 2 will be marked with E2.
  • 10. R1 R1(config)#router ospf 1 R1(config-router)# redistribute eigrp 1 metric-type 1 subnets R1(config-router)# redistribute eigrp 2 metric-type 2 subnets R3 R3(config)#ip route 0.0.0.0 0.0.0.0 FastEthernet0/0 R4 R4(config)#ip route 0.0.0.0 0.0.0.0 FastEthernet0/0 Keyword subnet highlighted in bold it’s important because without it OSPF will make redistribution of only classful subnets. If we do not type metric type it will be E2, this is default metric type. It’s time to check what we got. I put on R3 and R4 default routes to point all unknown traffic to R1 (in our case it will be traffic to R2).
  • 12. As we can see in the previous slide picture redistribution has worked, Routes redistributed from first EIGRP domain are marked as E1 and have cost of 30 which is the sum of the default metric (20) and 10 Mb/s link cost (10) that connects R1 with R2. Routes learned from second EIGRP domain are marked with E2 and have cost of 20 (default metric).
  • 13. ping from R2 to R3 loopback interface