RE: redistribute RIP into BGP

From: Jonathan V Hays (jhays@jtan.com)
Date: Thu Jul 10 2003 - 14:54:24 GMT-3


You are running into the old "redistribute protocol for routes that are
connected" problem. <g>

The problem is that the 200.200.200.0 network is a connected interface
on the same router on which both RIP and BGP are running. The IOS
protects itself by being selective about what it is going to allow into
redistribution or all sorts of messy internal loops will develop.

Now, if the 200.200.200.0 route came into your routing table via RIP
from another router, the "metric" keyword would work just fine. In my
example below, both routers are running RIP and BGP. Router R2 is
advertising network 200.200.200.0 to R6 via RIP.

R6--172.150.200.0--R2--200.200.200.0

on R6:

router rip
 network 172.150.0.0
!
router bgp 6
 bgp log-neighbor-changes
 redistribute rip metric 5
 neighbor 172.150.200.2 remote-as 1
!

r6#sh ip rip database
172.150.0.0/16 auto-summary
172.150.2.1/32
    [1] via 172.150.200.2, 00:00:10, Ethernet0
172.150.5.0/28 directly connected, Serial1
172.150.9.4/30 directly connected, BRI0
172.150.200.0/26 directly connected, Ethernet0
200.200.200.0/24 auto-summary
200.200.200.0/24
    [1] via 172.150.200.2, 00:00:10, Ethernet0
r6#
r6#sh ip bgp
BGP table version is 7, local router ID is 10.6.6.6
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network Next Hop Metric LocPrf Weight Path
*> 172.150.0.0 0.0.0.0 0 32768 ?
*> 200.200.200.0 172.150.200.2 5 32768 ?
r6#

HTH

> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On
> Behalf Of Pun, Alec CL
> Sent: Thursday, July 10, 2003 12:45 AM
> To: ccielab@groupstudy.com
> Subject: redistribute RIP into BGP
>
>
> Hi group,
>
> Have anyone tried to use the metric keyword in the
> redistribute command ? I
> am curious why the BGP metric (MED) can't be changed in this way :
>
> router rip
> network 200.200.200.0
> router bgp 1
> no sync
> no auto-summary
> redistribute rip metric 5
> !
>
> c7206-2#show ip bgp
> BGP table version is 4, local router ID is 1.1.99.1
> Status codes: s suppressed, d damped, h history, * valid, > best, i -
> internal,
> r RIB-failure, S Stale
> Origin codes: i - IGP, e - EGP, ? - incomplete
>
> Network Next Hop Metric LocPrf Weight Path
> *> 200.200.200.0 0.0.0.0 0 32768 ?
>
>
> ______________________________________________________________
> _________
> You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Wed Aug 06 2003 - 06:52:34 GMT-3