Showing posts with label Redistribution : Rip and OSPF Using Packet Tracer. Show all posts
Showing posts with label Redistribution : Rip and OSPF Using Packet Tracer. Show all posts

Tuesday, September 28, 2010

Redistribution : Rip & OSPF Using Packet Tracer

7 nhận xét
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. :)
more.

Popular Posts