2015年2月5日 星期四
EIGRP and OSPF route redistribution
EIGRP and OSPF route redistribution LAB
R2 is an ASBR for EIGRP 100 and OSPF area 24
R3 is an ASBR for EIGRP 100 and OSPF area 34
R1 is only EIGRP 100
Notice : you should make a ping from R1 to R5 IP:172.16.100.1
Answer command :
R2#
R2(config)#router ospf 1
R2(config-router)#redistribute eigrp 100 metric-type 1 subnets
R2(config-router)#exit
R2(config)#router eigrp 100
R2(config-router)#redistribute ospf 1 metric 1544 200 255 1 1500
R2(config-router)#end
R2#
R3(config)#router ospf 1
R3(config-router)#redistribute eigrp 100 metric-type 1 subnets
R3(config-router)#exit
R3(config)#
R3(config)#router eig 100
R3(config-router)#redistribute ospf 1 metric 10000 100 255 1 1500
R3(config-router)#end
R3#
Complete configuration :
=================================
R1#sh run
!
hostname R1
!
interface Serial1/0
ip address 192.168.1.1 255.255.255.0
!
router eigrp 100
network 192.168.1.0
no auto-summary
!
R1#
=================================
R2#sh run
!
hostname R2
!
interface Serial1/0
ip address 192.168.1.2 255.255.255.0
!
interface Serial1/1
ip address 192.168.3.2 255.255.255.0
!
interface Serial1/3
ip address 192.168.2.2 255.255.255.0
!
router eigrp 100
redistribute ospf 1 metric 1544 200 255 1 1500
network 192.168.1.0
network 192.168.2.0
no auto-summary
!
router ospf 1
log-adjacency-changes
redistribute eigrp 100 metric-type 1 subnets
network 192.168.3.0 0.0.0.255 area 24
!
R2#
=================================
R3#sh run
!
hostname R3
!
interface Serial0/0
ip address 192.168.2.3 255.255.255.0
no fair-queue
clock rate 2000000
!
interface FastEthernet0/1
ip address 192.168.4.3 255.255.255.0
duplex auto
speed auto
!
router eigrp 100
redistribute ospf 1 metric 10000 100 255 1 1500
network 192.168.2.0
no auto-summary
!
router ospf 1
log-adjacency-changes
redistribute eigrp 100 metric-type 1 subnets
network 192.168.4.0 0.0.0.255 area 34
!
R3#
=================================
R4#sh run
!
hostname R4
!
interface FastEthernet0/0
ip address 172.16.100.4 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.4.4 255.255.255.0
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 172.16.100.0 0.0.0.255 area 0
network 192.168.3.0 0.0.0.255 area 24
network 192.168.4.0 0.0.0.255 area 34
!
R4#
=================================
R5#
R5#sh run
hostname R5
interface FastEthernet0/0
ip address 172.16.100.1 255.255.255.0
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 172.16.100.0 0.0.0.255 area 0
!
R5#
Before redistribution , show ip route
=================================
R5#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.100.0 is directly connected, FastEthernet0/0
O IA 192.168.4.0/24 [110/11] via 172.16.100.4, 00:02:58, FastEthernet0/0
O IA 192.168.3.0/24 [110/74] via 172.16.100.4, 00:02:58, FastEthernet0/0
R5#
After redistribution , show ip route
=================================
R5#
R5#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.100.0 is directly connected, FastEthernet0/0
O IA 192.168.4.0/24 [110/11] via 172.16.100.4, 00:07:54, FastEthernet0/0
O E1 192.168.1.0/24 [110/31] via 172.16.100.4, 00:01:41, FastEthernet0/0
O E1 192.168.2.0/24 [110/31] via 172.16.100.4, 00:01:41, FastEthernet0/0
O IA 192.168.3.0/24 [110/74] via 172.16.100.4, 00:07:54, FastEthernet0/0
R5#
R5#
=================================
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言