×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Redistribution ( ospf, rip , eigrp , static )

Answered Question
Oct 22nd, 2014
User Badges:

Hello everyone!

I'm a trainee in networks, and i had an exercice of routing protocols and a static route OSPF, EIGRP , RIP, et Static. (I tried to do the redistribution between the LANs but it doesn't work for me, my ping command fails ), i tried to look for some usefull commands on google but i didn't find a solution.

I need your help please, i want to have a solution with commands on each router.

 

I'm using  Packet Tracer version 6.1.1 student.

this is my PKT work: https://docs.google.com/file/d/0B1_v47dz4SKFRDU1SlZQMTZtMGs

and this is a screenshot https://drive.google.com/file/d/0B1_v47dz4SKFNVdPRVA5SzdwZzg

Correct Answer by John Blakley about 2 years 10 months ago

Rating as resolved is good enough :) Glad I could help

 

I'm a network engineer like all of the rest of us..just a normal guy :)

Correct Answer by John Blakley about 2 years 10 months ago

Your distribution points are the routers that will run multiple protocols. From this it looks like the routers in the middle (can't see their names) are your redistribution points. I won't tell you the answer completely, but let's use the EIGRP network. On the router that's running eigrp 200 and ospf 10, you'll do dual redistribution:

router eigrp 200

redistribute ospf 1 metric 1 1 1 1 1

router ospf 1

redistribute eigrp 200 subnets

 

The router will share the eigrp learned routes with the ospf routers in area 20. You'll do this on the other two routers with redistributing between the appropriate protocols. After this, you'll be able to ping everywhere...

Unless I'm missing something, you can have a single ospf area that is not area 0 and still have it work. Once you have more than one area, you're required to have an area 0 in order for routes to travel across the backbone. In other words, if you have this area 20 (which is the only one I see at the moment), and you add an area 40 later, you won't be able to get routes from area 40 to 20 without an area 0...does that make sense?

HTH,

John

 

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
John Blakley Wed, 10/22/2014 - 11:38
User Badges:
  • Purple, 4500 points or more

Your distribution points are the routers that will run multiple protocols. From this it looks like the routers in the middle (can't see their names) are your redistribution points. I won't tell you the answer completely, but let's use the EIGRP network. On the router that's running eigrp 200 and ospf 10, you'll do dual redistribution:

router eigrp 200

redistribute ospf 1 metric 1 1 1 1 1

router ospf 1

redistribute eigrp 200 subnets

 

The router will share the eigrp learned routes with the ospf routers in area 20. You'll do this on the other two routers with redistributing between the appropriate protocols. After this, you'll be able to ping everywhere...

Unless I'm missing something, you can have a single ospf area that is not area 0 and still have it work. Once you have more than one area, you're required to have an area 0 in order for routes to travel across the backbone. In other words, if you have this area 20 (which is the only one I see at the moment), and you add an area 40 later, you won't be able to get routes from area 40 to 20 without an area 0...does that make sense?

HTH,

John

 

elgharbaouy Wed, 10/22/2014 - 12:04
User Badges:

Thank you John for your quick response .

the problem is not answered yet( i just hit the botton because of a mistake )

this is exactly what i've done on my routers.

 

This is the configuration i made after the activation of the protocols and adding the networks to them, and the creation of static routes .

 

- the router that share RIPv2 and OSPF 10 :

config#router ospf 10

config-route#redistribute rip subnets

config-route#exit

config#router rip

config-route#redistribute ospf 10

 

-The router that share OSFP 10 and EIGRP 200 :

config#router ospf 10

config-route#redistribute eigrp 200 subnets

config-route#exit

config#router eigrp 200

config-route#redistribute ospf 10 metric 10000 100 255 1 1500  ( //default values)

config-route#exit

 

-the router that share the static and the ospf 10 :

config#router ospf 10

config-route#redistribute static subnets

config-route#redistribute connected subnets

 

But the ping still doesn't work

John Blakley Wed, 10/22/2014 - 12:11
User Badges:
  • Purple, 4500 points or more

RIP requires a metric, so in your first example, change it to:

 

router rip

redistribute ospf 10 metric 2

 

The rest of it looks correct....

 

You also need to make sure that you have the routes from the respective protocol. For example, your routing table should have eigrp routes if it has an eigrp neighbor. Redistribution only works if a route that matches the protocol is in the routing table.

 

elgharbaouy Wed, 10/22/2014 - 12:37
User Badges:

Oh John you are genius i forgot the metric 2 :)

 

thank you a lot.

 

i have one problem now : The ping doesn't work between the static and eigrp , and the static and the rip.

 

Do i have to add something the (static-ospf) router ?

John Blakley Wed, 10/22/2014 - 12:45
User Badges:
  • Purple, 4500 points or more

Can you post the routing table from the static/ospf router along with the static routes and ospf configuration? Also, can you post the result from "show ip ospf database extern"?

 

Thanks!

John Blakley Wed, 10/22/2014 - 13:26
User Badges:
  • Purple, 4500 points or more

They're in the database. Let's do this one site at a time then. Let's work with the eigrp/ospf router. From that router, can you post:

 

sh ip eigrp topolo

sh ip route

sh ip ospf database exter

sh ip ospf neigh brie

 

Also, do you have a default route on all of the routers in the "Static" area?

John Blakley Wed, 10/22/2014 - 14:04
User Badges:
  • Purple, 4500 points or more

Okay....let's focus on the 192.168.64.0/22 route. The route shows to be connected on the static/ospf router. The route is in the routing table on the ospf/eigrp router. Can you post the routing table from one of the internal eigrp routers?

 

Can you try to ping that address from one of your hosts? All hosts should have a default route pointing to their respective router. I don't see a default route on any of your routers that you have. The router will drop unknown traffic if it doesn't have a default route to send the traffic to.

 

HTH,

John

elgharbaouy Wed, 10/22/2014 - 14:11
User Badges:

the ping on this network 192.168.64.0/22 works without creating a static route, because it's directly connected to the ospf/static router

 

it's normal because the ospf protocol will share all the connected networks to that router.

 

the issues is between the network 192.168.68.0/23 and rip area, and 192.168.68.0/23 and the eigrp area. the same for the network 209.165.200.224/27

elgharbaouy Wed, 10/22/2014 - 14:19
User Badges:

do i have to add those commands ?

 

ospf/eigrp config#ip route 0.0.0.0 0.0.0.0 192.168.77.1

ospf/rip config#ip route 0.0.0.0 0.0.0.0  192.168.77.5

192.168.68.0/23 config#ip route 0.0.0.0 0.0.0.0 192.168.77.9

209.165.200.224/27 config#ip route 0.0.0.0 0.0.0.0 209.165.200.225

John Blakley Wed, 10/22/2014 - 14:24
User Badges:
  • Purple, 4500 points or more

Yes...that will resolve any unknown routes.

knezevic.filip0111 Mon, 01/11/2016 - 00:02
User Badges:

Hello, I'm also studying for my CCNA and Im doing some labs in Packet tracer. I have RIP2 network and EIGRP network, all computers in those networks can ping each other, so the routing is good. Now I wanted to connect this two networks so I created router in the middle (CORE router) that should redistribute traffic between networks. I enabled RIp2 and EIGRP on Core router and I followed instructions for redistribution, so I typed this commands:

router eigrp 1

redistribute rip metric 1024 0 255 1 1500

network 10.0.0.0

no auto-summary

!

router rip

redistribute eigrp 1 metric 1

network 10.0.0.0

network 172.30.0.0

network 192.168.13.0

no auto-summary

!

All computers in RIP 2 network can see Core router, all computers in EIGRP network can see Core router, but they cant see each other. 

When I type show ip route it looks like EIGRP network can see RIP2 network, but not vice versa.

So it looks like EIGRP router and Core router learned all routes, but RIP2 router didnt. Obviously I messed something with redistribution.

Please help. Thank you in advance.

In attachment you can see how my lab looks like.

Attachment: 
John Blakley Wed, 10/22/2014 - 14:19
User Badges:
  • Purple, 4500 points or more

Sorry...I should have made myself more clear. I wanted you to try to ping the 192.168.64.0/22 host from the host in the eigrp AS. Either way, the 192.168.68.0/23 is the same situation. You have the route in the eigrp/ospf router, so you should be able to get to it.

Many of us don't use packet tracer, so that's one reason why I haven't downloaded your pkt file. You need to make sure that this route has a default route. The router on the left side in the "static" area needs a default route pointing to the ospf/static router. All of your routers need a default route, but especially the statics because they have no visibility to the other networks unless you've added all of your other routes as static to those routers.

 

So, final thing:

Please post the routing table on the router in the "static" area that sits on the left side

and please post the routing table on the eigrp internal router that sits on the left side (Router8 is listed underneath).

 

elgharbaouy Wed, 10/22/2014 - 14:40
User Badges:

the problem is resolved

 

this is what i did :

192.168.68.0/23 config#ip route 0.0.0.0 0.0.0.0 192.168.77.9

209.165.200.224/27 config#ip route 0.0.0.0 0.0.0.0 209.165.200.225

ospf/rip config# router rip

ospf/rip config-route# redistribute ospf 10 metric 1

 

the ospf/static router doesn't contain any default route

the eigrp/ospf router doesn't contain any default route

the rip/ospf router doesn't contain any default route

 

and the ping works between all the networks, and this is what i was looking for.

 

can I do something for you as a reward on the website ? cick something for exemple

 

thank you so much. you really helped me a lot.

what is your job please ?

Correct Answer
John Blakley Wed, 10/22/2014 - 14:45
User Badges:
  • Purple, 4500 points or more

Rating as resolved is good enough :) Glad I could help

 

I'm a network engineer like all of the rest of us..just a normal guy :)

elgharbaouy Wed, 10/22/2014 - 14:50
User Badges:

my dream is to because a network engineer too, but i have a problem with my professor in class.

 

He doesn't teach us the basics and the important things, so i feel like i'm wasting my time.

 

I wish you all the success in your life :)

John Blakley Wed, 10/22/2014 - 14:58
User Badges:
  • Purple, 4500 points or more

Nothing learned is ever wasted. Sometimes we just have to take what's given to us and start asking a lot of questions. You'll get there. The basics will help you build into the more complicated. Just keep at it and stay on these forums. There are a great group of people on here willing to help.

Thanks!

John

Actions

This Discussion