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
NetProtocol Xpert
 
PPTX
Route Redistribution between OSPF and EIGRP
NetProtocol Xpert
 
PPTX
OSPF Summary LSA (Type 3 LSA)
NetProtocol Xpert
 
PPTX
Route Redistribution
NetProtocol Xpert
 
PPTX
BGP Next-hop-self
NetProtocol Xpert
 
PPTX
OSPF Network LSA (Type 2 LSA)
NetProtocol Xpert
 
PPTX
BGP Loop Prevention
NetProtocol Xpert
 
OSPF Internal Route Summarization
NetProtocol Xpert
 
Route Redistribution between OSPF and EIGRP
NetProtocol Xpert
 
OSPF Summary LSA (Type 3 LSA)
NetProtocol Xpert
 
Route Redistribution
NetProtocol Xpert
 
BGP Next-hop-self
NetProtocol Xpert
 
OSPF Network LSA (Type 2 LSA)
NetProtocol Xpert
 
BGP Loop Prevention
NetProtocol Xpert
 

What's hot (20)

PPT
EIGRP Configuration
NetProtocol Xpert
 
PDF
Route Redistribution
Netwax Lab
 
PPTX
OSPF External Route Summarization
NetProtocol Xpert
 
PPTX
EIGRP (Enhanced Interior Gateway Routing Protocol)
NetProtocol Xpert
 
PPT
OSPF summary & Differences between OSPF and EIGRP
NetProtocol Xpert
 
PPT
OSPF Configuration
NetProtocol Xpert
 
PPT
OSPF Overview
NetProtocol Xpert
 
PPT
Ospf
Alp isik
 
PPTX
OSPF Summarization
NetProtocol Xpert
 
PPTX
OSPF Authentication
NetProtocol Xpert
 
PPT
Ospf
amit khunte
 
PPTX
OSPF Router LSA (Type 1)
NetProtocol Xpert
 
PPTX
Лекц 15
Muuluu
 
PPTX
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
anilinvns
 
PDF
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
anilinvns
 
PPTX
EIGRP Overview
NetProtocol Xpert
 
PPTX
Multi-area ospf adjacency on ios-xr
CoderGenie Technologies
 
PPT
EIGRP Automatic & Manual Summarization
NetProtocol Xpert
 
PDF
Routing Protocol EIGRP
Dmitry Figol
 
EIGRP Configuration
NetProtocol Xpert
 
Route Redistribution
Netwax Lab
 
OSPF External Route Summarization
NetProtocol Xpert
 
EIGRP (Enhanced Interior Gateway Routing Protocol)
NetProtocol Xpert
 
OSPF summary & Differences between OSPF and EIGRP
NetProtocol Xpert
 
OSPF Configuration
NetProtocol Xpert
 
OSPF Overview
NetProtocol Xpert
 
Ospf
Alp isik
 
OSPF Summarization
NetProtocol Xpert
 
OSPF Authentication
NetProtocol Xpert
 
OSPF Router LSA (Type 1)
NetProtocol Xpert
 
Лекц 15
Muuluu
 
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
anilinvns
 
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
anilinvns
 
EIGRP Overview
NetProtocol Xpert
 
Multi-area ospf adjacency on ios-xr
CoderGenie Technologies
 
EIGRP Automatic & Manual Summarization
NetProtocol Xpert
 
Routing Protocol EIGRP
Dmitry Figol
 
Ad

Viewers also liked (15)

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

Similar to Redistribution into OSPF (20)

PPTX
Redistribution into EIGRP
NetProtocol Xpert
 
PPTX
Redistribution into EIGRP with Route Maps
NetProtocol Xpert
 
DOCX
Redistribution into EIGRP(Exterior & Interior gateway Routing protocol)
lurdhu agnes
 
PDF
OSPF (open shortest path first) part ii
Netwax Lab
 
PDF
OSPF (open shortest path first) part iii
Netwax Lab
 
PPT
Chapter7ccna
Lakshan Perera
 
PDF
Eincop Netwax Lab: Redistribution
Netwax Lab
 
DOCX
Packet Tracer: Routing protocols EIGRP and OSPF
Rafat Khandaker
 
PPTX
Route Maps & Redistribution into OSPF with Route Maps
NetProtocol Xpert
 
PDF
Eincop Netwax Lab: Route Redistribution
Netwax Lab
 
PPTX
13. eigrp and ospf
Swarndeep Singh
 
PPT
Routing and OSPF
arpit
 
PDF
Extensive Reviews of OSPF and EIGRP Routing Protocols based on Route Summariz...
IJERA Editor
 
PPT
Chapter7ccna
ernestlithur
 
PPT
Chapter7ccna
robertoxe
 
PPTX
BSCI30S05 Redistribution, DHCP.pptx
sumankumar770546
 
PDF
5242 bgp-ospf-redis
Andrei Alexandru
 
PDF
Performance Analysis of Routing Protocols RIP, OSPF and EIGRP
IRJET Journal
 
PDF
A single router is running both OSPF and EIGRP routing protocols. The.pdf
bestpricezonelko
 
PDF
IOS Cisco - Cheat sheets
Alejandro Marin
 
Redistribution into EIGRP
NetProtocol Xpert
 
Redistribution into EIGRP with Route Maps
NetProtocol Xpert
 
Redistribution into EIGRP(Exterior & Interior gateway Routing protocol)
lurdhu agnes
 
OSPF (open shortest path first) part ii
Netwax Lab
 
OSPF (open shortest path first) part iii
Netwax Lab
 
Chapter7ccna
Lakshan Perera
 
Eincop Netwax Lab: Redistribution
Netwax Lab
 
Packet Tracer: Routing protocols EIGRP and OSPF
Rafat Khandaker
 
Route Maps & Redistribution into OSPF with Route Maps
NetProtocol Xpert
 
Eincop Netwax Lab: Route Redistribution
Netwax Lab
 
13. eigrp and ospf
Swarndeep Singh
 
Routing and OSPF
arpit
 
Extensive Reviews of OSPF and EIGRP Routing Protocols based on Route Summariz...
IJERA Editor
 
Chapter7ccna
ernestlithur
 
Chapter7ccna
robertoxe
 
BSCI30S05 Redistribution, DHCP.pptx
sumankumar770546
 
5242 bgp-ospf-redis
Andrei Alexandru
 
Performance Analysis of Routing Protocols RIP, OSPF and EIGRP
IRJET Journal
 
A single router is running both OSPF and EIGRP routing protocols. The.pdf
bestpricezonelko
 
IOS Cisco - Cheat sheets
Alejandro Marin
 

More from NetProtocol Xpert (20)

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

Recently uploaded (20)

PPT
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PDF
Construction of a Thermal Vacuum Chamber for Environment Test of Triple CubeS...
2208441
 
PDF
Zero Carbon Building Performance standard
BassemOsman1
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
PDF
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
PDF
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
PDF
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
PPTX
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
PDF
CAD-CAM U-1 Combined Notes_57761226_2025_04_22_14_40.pdf
shailendrapratap2002
 
PDF
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
PDF
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
PPTX
Tunnel Ventilation System in Kanpur Metro
220105053
 
PDF
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
PDF
Zero carbon Building Design Guidelines V4
BassemOsman1
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PPTX
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
PDF
STUDY OF NOVEL CHANNEL MATERIALS USING III-V COMPOUNDS WITH VARIOUS GATE DIEL...
ijoejnl
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
Construction of a Thermal Vacuum Chamber for Environment Test of Triple CubeS...
2208441
 
Zero Carbon Building Performance standard
BassemOsman1
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
Inventory management chapter in automation and robotics.
atisht0104
 
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
CAD-CAM U-1 Combined Notes_57761226_2025_04_22_14_40.pdf
shailendrapratap2002
 
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
Tunnel Ventilation System in Kanpur Metro
220105053
 
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
Zero carbon Building Design Guidelines V4
BassemOsman1
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
STUDY OF NOVEL CHANNEL MATERIALS USING III-V COMPOUNDS WITH VARIOUS GATE DIEL...
ijoejnl
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 

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