RE: BGP MED Scenario!!!

From: Mohamed (nmohamed@cisco.com)
Date: Thu Apr 29 2004 - 03:56:15 GMT-3


Hi,
I got your question, sorry I couldnot spare time to do in OSPF!.

SFM#sh ip route eigrp
     20.0.0.0/24 is subnetted, 1 subnets
D 20.1.1.0 [90/28416] via 25.25.25.26, 00:01:31, FastEthernet3/6
     200.100.100.0/24 is variably subnetted, 2 subnets, 2 masks
D 200.100.100.0/24
           [90/128512] via 25.25.25.26, 00:01:31, FastEthernet3/6
     201.100.100.0/24 is variably subnetted, 2 subnets, 2 masks
D 201.100.100.0/24
           [90/128512] via 25.25.25.26, 00:01:31, FastEthernet3/6

Note the metric on eigrp route-128512 for network 200.100.100.0/24

Now -
SFM#sh run | b router bgp
router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 200.100.100.0 <<<<<<<<<<<<<<<<
 network 201.100.100.0 <<<<<<<<<<<<<<<<<
 neighbor 25.25.25.26 remote-as 100
 neighbor 99.99.99.2 remote-as 300
 neighbor 99.99.99.2 route-map INT out
 no auto-summary

So here iam advertising network 200.100.100.0.

Down---------------SFM-----------Side---------Up

From down to sfm router,I run eigrp and down advertise 200.100.100.0 and
201.100.100.0 as eigrp routes to sfm router.
I DON'T REDISTRIBUTE EIGRP HERE!!!! In SFM.
I advertise using network command.I set a route-map to Side router.
Now see what the route-map is
  

ip as-path access-list 9 permit .*
route-map INT permit 10
 match as-path 9
 set metric-type internal
End

So BGP set the metric of the advertised routes 200.100.100.0 and
201.100.100.0 to Side as Eigrp metric=128512 .
Side#sh ip bgp
BGP table version is 78, local router ID is 213.1.4.1
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
*> 200.100.100.0 99.99.99.1 128512 0 100 i
*> 201.100.100.0 99.99.99.1 128512 0 100 i
Side#

I think it don't do anyother job than this!!

Thanks
Mohamed.

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Sergio Jimenez Arguedas
Sent: Wednesday, April 28, 2004 10:08 PM
To: ccielab@groupstudy.com
Subject: Fw: BGP MED Scenario!!!

Hi Mohamed,

I really understand that, but the doubt is the following,

172.16.0.0------RA-------------RB-------------RC-------------RD

Config RB

router bgp 1
netw 172.16.0.0
neighbor x.x.x.x remote-as 2

RBsi
 Tx the prefix if it has a route of 172.16.0.0 in the routing table. RB
Rx the route from RA by ospf, So RB tx the prefix with the IGP metric to
RC without THE ROUTE-MAP with set metric-type internal.

Question: How can I use a route-map with set metric-type internal?

Thanks,

Sergio

----- Original Message -----
From: "Mohamed" <nmohamed@cisco.com>
To: "'Sergio Jimenez Arguedas'" <sejimenez@its.co.cr>;
<ccielab@groupstudy.com>
Sent: Wednesday, April 28, 2004 1:20 AM
Subject: RE: BGP MED Scenario!!!

> I tried in my router,
>
> A----------B----------C---------D
>
> A,B are IBGP,running OSPF.
> B redistributing OSPF into BGP.
> C is EBGP of B.
> D is Ebgp of C
>
> Now in C,we get the metrics from B,bcoz C only reset the metric to
> zero. In D we don't get metric.
>
>
> Now if u put route-map and set metric-type int or even set origin
> igp,I don't get any mteric in D,bcoz MED is a optional Non-transitive
> attribute,which never passed to EBGP peers.
>
>
> Thanks
> Mohamed.
>
>
>
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
> Of Sergio Jimenez Arguedas
> Sent: Wednesday, April 28, 2004 2:29 AM
> To: ccielab@groupstudy.com
> Subject: BGP MED Scenario!!!
>
>
> Hi Group,
>
> I have a question about BGP MED, the scenario is the following:
>
>
>
> --------------EB GP----------------------R4
> OSPF |
> |ibgp
> NETA
> ----------R1------------------------------R2------------EBGP----------
> --
> -----
> -----R3-------------EBGP-----------------R5
>
>
> R1 Tx NETA to R2 by OSPF and R2 Tx NetA to R3/R4 by EBGP. R3 and R4 Rx

> NETA with the IGP (OSPF) metric. When R3 Tx the route R5, R5 Rx the
> route with the metric 0. I understood it, but I have the following
> question:
>
>
> If I apply a route-map from R3 to R5 with set metric-type
> internal.......This would cause BGP routes to carry the internal IGP
> metric as the BGP MED?
>
> R3/R4 carried the IGP metric without a route-map in R2.
>
>
>
> Could you help me, please?
>
>
> Reference: HALABI Pag_340
>
>
>
> Rgds,
>
>
> Sergio Jiminez A.
>
> ______________________________________________________________________
> _
> Please help support GroupStudy by purchasing your study materials
from:
> http://shop.groupstudy.com
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Mon May 03 2004 - 19:48:57 GMT-3