Saturday, October 8, 2011

REDISTRIBUTION USING OSPF AND EIGRP

Redistribution helps us to inject the routes learnt by one routing protocol in one autonomous system into the another routing protocol having different autonomous system.With the help of redistribution we can join two different network having two different routing protocols communicate.


here in this scenario R1 is running ospf and R3 is running eigrp and R2 will be running both the protocols.

configuration
R1
enable 
configure terminal
int fa 0/0
ip add 10.11.11.1 255.255.255.0
no shut
int lo 0
ip add 1.1.1.1 255.0.0.0
router ospf 1
network 10.11.11.0 0.0.0.255 area 0
network 1.1.1.1 0.0.0.0 area 0
no au
end

R3
enable 
configure terminal
int fa 0/0
ip add 10.22.22.3 255.255.255.0
no shut
int lo 0
ip add 2.2.2.2 255.0.0.0
router eigrp 10
network 10.22.22.0
network 2.0.0.0
no au
end

R3

enable 
configure terminal
int fa 0/0
ip add 10.11.11.2.255.255.255.0
no shut
int fa 0/1
ip add 10.22.22.2 255.255.255.0
no sh
router ospf 1
network 10.11.11.0 0.0.0.255 area 0
no auto-summary
router eigrp 10
network 10.22.22.0
no auto-summary
-----------
REDISTRIBUTION 

R2(config)router ospf 1
R2(config-router)#redistribute eigrp 1000

R2(config-router)#exit
R2(config)#router eigrp 10
R2(config-router)#redistribute ospf 1 10000 1000 255 1 1500