From: Alec (clapun@graduate.hku.hk)
Date: Mon Feb 23 2004 - 14:17:03 GMT-3
Thanks Brian.... some more queries
1) Can it omit match ip route-source prefix-list ROUTE_SOURCE ?
2) For the prefixes in the exist-map, can I keep track of locally originated
routes (e.g. aggregate) instead of BGP prefixes learned from another BGP
speaker ?
rgds,
alec
----- Original Message -----
From: "Brian McGahan" <bmcgahan@internetworkexpert.com>
To: "'Alec'" <clapun@graduate.hku.hk>; <ccielab@groupstudy.com>
Sent: Tuesday, February 24, 2004 1:25 AM
Subject: RE: BGP inject-map
> Alec,
>
> Your syntax is fine, I just loaded it and it works:
>
> R1#sh run | b router bgp
> router bgp 109
> no synchronization
> bgp log-neighbor-changes
> bgp inject-map ORIGINATE exist-map LEARNED_PATH
> neighbor 10.2.1.1 remote-as 109
> no auto-summary
>
> R1#show ip bgp
> BGP table version is 4, local router ID is 12.0.0.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
> *>i10.1.1.0/25 10.2.1.1 0 ?
> *>i10.1.1.0/24 10.2.1.1 0 100 0 i
> *>i10.1.1.128/25 10.2.1.1 0 ?
>
>
> Are you sure 10.1.1.0/24 is a best path? Try clearing the BGP
> session.
>
> HTH,
>
> Brian McGahan, CCIE #8593
> bmcgahan@internetworkexpert.com
>
> Internetwork Expert, Inc.
> http://www.InternetworkExpert.com
> Toll Free: 877-224-8987 x 705
> Outside US: 775-826-4344 x 705
>
>
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
> > Alec
> > Sent: Monday, February 23, 2004 8:47 AM
> > To: ccielab@groupstudy.com
> > Subject: BGP inject-map
> >
> > Hi group,
> >
> > I've tried BGP inject-map but failed to inject the prefix in the BGP
> > table.
> > Does it require the ORIGINATED_ROUTES exist in the routing table
> > beforehand
> > ? Grateful if anyone can show me some guidelines..
> >
> > rgds,
> > alec
> >
> > router bgp 109
> > bgp inject-map ORIGINATE exist-map LEARNED_PATH
> > !
> > route-map LEARNED_PATH permit 10
> > match ip address prefix-list ROUTE
> > match ip route-source prefix-list ROUTE_SOURCE
> > !
> > route-map ORIGINATE permit 10
> > set ip address prefix-list ORIGINATED_ROUTES
> > set community 14616:555 additive
> > !
> > ip prefix-list ROUTE permit 10.1.1.0/24
> > !
> > ip prefix-list ORIGINATED_ROUTES permit 10.1.1.0/25
> > ip prefix-list ORIGINATED_ROUTES permit 10.1.1.128/25
> > !
> > ip prefix-list ROUTE_SOURCE permit 10.2.1.1/32
> >
> > _______________________________________________________________________
> > 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 : Fri Mar 05 2004 - 07:13:55 GMT-3