Re: Redistribution using route-maps with EIGRP and OSPF

From: Godswill Oletu (oletu@inbox.lv)
Date: Thu Jul 14 2005 - 18:31:58 GMT-3


Dave,

You may have to paste your configure, setting the metrics via route-map is
working fine for me.....

I labbed:

R1 -------------3550SW----------------R2

R1 - runing ospf 1
3550SW- running ospf 1 & eigrp 1 (ospf 1 redistributed into eigrp 1, setting
the redistributed metric via route-map)
R2 -----running eigrp 1

Configs.................

R2:
interface Loopback0
 ip address 22.1.1.1 255.255.0.0
 ip ospf network point-to-point
!
interface Loopback1
 ip address 1.1.1.1 255.0.0.0
!
interface FastEthernet0/0
 ip address 172.27.1.1 255.255.0.0
 duplex auto
 speed auto

<ommitted..................................>
!
router eigrp 1
 network 172.27.0.0
 no auto-summary

3550SW:
interface Loopback1
 ip address 33.1.1.1 255.0.0.0
!
interface Loopback2
 ip address 31.1.1.1 255.0.0.0
!
interface Loopback3
 ip address 32.1.1.1 255.0.0.0
!
interface FastEthernet0/1
 no switchport
 ip address 172.26.1.2 255.255.0.0
!
interface FastEthernet0/2
 no switchport
 ip address 172.27.1.2 255.255.0.0
<ommited....................>
router eigrp 1
 redistribute ospf 1 route-map redist
 network 172.27.0.0
 no auto-summary
 no eigrp log-neighbor-changes
!
router ospf 1
 router-id 172.26.1.2
 log-adjacency-changes
 network 172.26.0.0 0.0.255.255 area 0
!
route-map redist permit 10
 set metric 240000 10 10 10 1500

R1:
interface Loopback0
 ip address 10.1.1.1 255.0.0.0
 ip ospf network point-to-point
!
interface Loopback2
 ip address 100.1.1.1 255.255.0.0
 ip ospf network point-to-point
!
interface Loopback3
 ip address 200.1.1.1 255.255.0.0
!
interface FastEthernet0/0
 ip address 172.26.1.1 255.255.0.0
 duplex auto
 speed auto
<ommitted...................>
router ospf 1
 router-id 172.26.1.1
 log-adjacency-changes
 network 10.1.0.0 0.0.255.255 area 1
 network 100.1.0.0 0.0.255.255 area 1
 network 172.26.0.0 0.0.255.255 area 0

Result....
R2#sh ip rout
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       i - IS-IS, 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

C 1.0.0.0/8 is directly connected, Loopback1
     100.0.0.0/16 is subnetted, 1 subnets
D EX 100.1.0.0 [170/30720] via 172.27.1.2, 00:10:47, FastEthernet0/0
C 172.27.0.0/16 is directly connected, FastEthernet0/0
D EX 172.26.0.0/16 [170/30720] via 172.27.1.2, 00:10:47, FastEthernet0/0
     22.0.0.0/16 is subnetted, 1 subnets
C 22.1.0.0 is directly connected, Loopback0
D EX 10.0.0.0/8 [170/30720] via 172.27.1.2, 00:10:47, FastEthernet0/0
R2#

Thanks.
Godswill Oletu

----- Original Message -----
From: "Schulz, Dave" <DSchulz@dpsciences.com>
To: <ccielab@groupstudy.com>
Sent: Thursday, July 14, 2005 12:41 AM
Subject: Redistribution using route-maps with EIGRP and OSPF

> Group -
>
> I ran into an interesting problem yesterday evening in the lab. When I
> set up a redistribution of OSPF into EIGRP (using a route-map)....
>
> router ospf 1
> (net statements omitted)
>
> router eigrp 1
> (net statements omitted)
> redistribute ospf 1 route-map REDIST
>
>
> route-map REDIST permit 10
> set metric 240000 10 10 10 1500
> set tag 130
>
> ....this does not redistribute OSPF routes into EIGRP. However, if I
> change this slightly and put the metric in the redistribute statement
> (versus the route map), it works. As follows:
>
> router ospf 1
> (net statements omitted)
>
> router eigrp 1
> (net statements omitted)
> redistribute ospf 1 metric 240000 10 10 10 1500 route-map REDIST
>
>
> route-map REDIST permit 10
> set tag 130
>
>
> Any thoughts on why this difference makes it work?
>
> Dave
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Sun Sep 04 2005 - 17:00:30 GMT-3