I was playing around with Packet Tracer today, thought why not give it a try. Nice program none the less. So here is a very modest try on basic redistribution. I thought it will help someone.
The lab had very basic set up, i used three routers and with a bunch of loopbacks i tested the redistribution between RIP and OSPF. You can use this lab as a tester or a reference point. PT lacks a lot of command options but is still very highly usable.
So here is the setup:
Router 1: (RIP V2)
interface Loopback1
ip address 192.168.10.100 255.255.255.0
!
interface Loopback2
ip address 2.2.2.2 255.0.0.0
!
interface Serial0/0
ip address 172.16.10.1 255.255.255.252
!
router rip
version 2
network 2.0.0.0
network 172.16.0.0
network 192.168.10.0
no auto-summary
Router 3: (OSPF 1)
interface Loopback1
ip address 3.3.3.3 255.0.0.0
!
interface Loopback2
ip address 192.168.20.100 255.255.255.0
!
interface Serial0/0
ip address 172.16.20.1 255.255.255.252
clock rate 64000
!
router ospf 1
log-adjacency-changes
network 3.3.3.3 0.0.0.0 area 0
network 192.168.20.0 0.0.0.255 area 0
network 172.16.20.0 0.0.0.3 area 0
Router 2: (Performed the redistribution)
interface Serial0/0
ip address 172.16.10.2 255.255.255.252
clock rate 64000
!
interface Serial0/1
ip address 172.16.20.2 255.255.255.252
!
router ospf 1
log-adjacency-changes
redistribute rip subnets
network 172.16.20.0 0.0.0.3 area 0
!
router rip
version 2
redistribute ospf 1 metric 5
network 172.16.0.0
no auto-summary
Outputs:
Router 1: (Rip)
Gateway of last resort is not set
C 2.0.0.0/8 is directly connected, Loopback2
3.0.0.0/32 is subnetted, 1 subnets
R 3.3.3.3 [120/5] via 172.16.10.2, 00:00:01, Serial0/0
172.16.0.0/30 is subnetted, 2 subnets
C 172.16.10.0 is directly connected, Serial0/0
R 172.16.20.0 [120/1] via 172.16.10.2, 00:00:01, Serial0/0
C 192.168.10.0/24 is directly connected, Loopback1
192.168.20.0/32 is subnetted, 1 subnets
R 192.168.20.100 [120/5] via 172.16.10.2, 00:00:01, Serial0/0
Router 3: (OSPF)
O E2 2.0.0.0/8 [110/781] via 172.16.20.2, 00:18:56, Serial0/0
C 3.0.0.0/8 is directly connected, Loopback1
172.16.0.0/30 is subnetted, 2 subnets
O E2 172.16.10.0 [110/781] via 172.16.20.2, 00:18:56, Serial0/0
C 172.16.20.0 is directly connected, Serial0/0
O E2 192.168.10.0/24 [110/781] via 172.16.20.2, 00:18:56, Serial0/0
C 192.168.20.0/24 is directly connected, Loopback2
Router 2: (Performed Redistribution)
R 2.0.0.0/8 [120/1] via 172.16.10.1, 00:00:00, Serial0/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/782] via 172.16.20.1, 00:20:15, Serial0/1
172.16.0.0/30 is subnetted, 2 subnets
C 172.16.10.0 is directly connected, Serial0/0
C 172.16.20.0 is directly connected, Serial0/1
R 192.168.10.0/24 [120/1] via 172.16.10.1, 00:00:00, Serial0/0
192.168.20.0/32 is subnetted, 1 subnets
O 192.168.20.100 [110/782] via 172.16.20.1, 00:20:15, Serial0/1
(The routes that are in bold are learned using redistribution)
Now you could use the "passive-interface" command on s0/1 of Router 2 so that route on s0/1 is advertised by RIP.
If you want the PT lab file, here is the link: hxxp://[nofileshares].com/files/195399030/redist-lab1.pkt.html
Note: As i mentioned above PT does lack some of the advance features. For example while redistributing the rip i was not able to specify the metric-type. But as you can see it still works.
Thanks for it darkloard:) you should have had included a image of your topology. Instead of using redistribution on router 2,we can use default routes on router 1 and router 3.If router1 gets a packet with destination 3.3.3.0( which is on router3) it can forward it to router 2,and if router 3 has a packet with network 2.0.0.0 as destination,so according to the default route it should forward it to router 2 and router 2 will send it to router 1.Redistribution is something very nice to play with :D
ReplyDeleteEDIT: what is more feasible in a production environment? configuring a router with ospf and rip to do the distribution or implementing default routes?
And in addition, route redistribution also is helpful when you company has old routers that only supports old routing protocols (e.g RIP v1), so instead of buying a new router, we redistribute route :lol:
ReplyDeleteTesla, Sorry the lab layout was so simple i thought a screenshot was not needed. :)
ReplyDeleteNow it all depends on what kind of setup you have, there will be times when you have to use route redistribution, for example:
1) Your company uses OSPF and they just bought an other company that uses a different routing protocol rip, eigrp etc.
2) Your company wants to expand and the current routing protocol will not be enough (for whatever reasons), so you want to switch to a different protocol. Now you can either shut the whole network down and reconfigure it OR reconfigure one network segment at a time.
3) Geo-political problems. A routing protocol may not meet the industry standards of certain regions, countries. So you will be forced to use redistribution.
Route redistribution could be as simple as the example in the first post. But there are a lot of other advance features like filtering that i haven't touched. May be i will post another lab someday.
Thank you! really helpful post... :D
ReplyDeleteThank you for your kindness, Jah bless.. you dude..
ReplyDeleteAlright then, i have posted another lab and the walk through on this topic.
ReplyDeleteBut i have a feeling redistribution is a little too advance fo CCNA level. But i will post more labs on different technologies in the future. Its good to share you learn a few things too.
sir it would be really good to know regarding what else can be achieved through redistribution,Plz enlighten us :D ,and i doubt if those advanced features work in PT
ReplyDelete