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
OSPF Virtual Link
PDF
5242 bgp-ospf-redis
PDF
OSPF (open shortest path first) part iii
PDF
OSPF Route Filtering
PPT
Bgp 6 advanced transit as issues
PPTX
EBGP MultiHop
DOC
E routing final exam ccna 2 46
DOCX
Ccna 2 v 4.0 final-exam-19-06-2010
DOCX
Ccna 2 v 4.0 final-exam-19-06-2010
PPT
Chapter7ccna
PPT
Chapter7ccna
DOC
Networking Tutorial Goes to Basic PPP Configuration
PDF
08 ip oc304 2_e1_1 zxr10 m6000 bgp configuration 24
DOC
Ccna commands
DOC
Ccna commands
PDF
1 using default
PDF
1 using default
PDF
EIGRP ZERO TO HERO
PDF
Service Provider Networks and Frame Relay
Redistribution into EIGRP
OSPF Virtual Link
5242 bgp-ospf-redis
OSPF (open shortest path first) part iii
OSPF Route Filtering
Bgp 6 advanced transit as issues
EBGP MultiHop
E routing final exam ccna 2 46
Ccna 2 v 4.0 final-exam-19-06-2010
Ccna 2 v 4.0 final-exam-19-06-2010
Chapter7ccna
Chapter7ccna
Networking Tutorial Goes to Basic PPP Configuration
08 ip oc304 2_e1_1 zxr10 m6000 bgp configuration 24
Ccna commands
Ccna commands
1 using default
1 using default
EIGRP ZERO TO HERO
Service Provider Networks and Frame Relay

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)

PPTX
Construction Project Organization Group 2.pptx
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
DOCX
573137875-Attendance-Management-System-original
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPT
Project quality management in manufacturing
PPTX
Sustainable Sites - Green Building Construction
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
web development for engineering and engineering
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Welding lecture in detail for understanding
PDF
Well-logging-methods_new................
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Construction Project Organization Group 2.pptx
OOP with Java - Java Introduction (Basics)
Arduino robotics embedded978-1-4302-3184-4.pdf
Strings in CPP - Strings in C++ are sequences of characters used to store and...
573137875-Attendance-Management-System-original
Foundation to blockchain - A guide to Blockchain Tech
Project quality management in manufacturing
Sustainable Sites - Green Building Construction
Internet of Things (IOT) - A guide to understanding
bas. eng. economics group 4 presentation 1.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
web development for engineering and engineering
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Welding lecture in detail for understanding
Well-logging-methods_new................
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Structs to JSON How Go Powers REST APIs.pdf
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk

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