Re: BGP outbound route-map Query

From: Deepak Ahuja (deeps.ccie@gmail.com)
Date: Sun Mar 15 2009 - 01:22:55 ART


Hi Bryan

Thanks a lot for a quick reply

Here are the configs

R1

router bgp 100
 bgp router-id 9.9.1.1
 no bgp default ipv4-unicast
 bgp log-neighbor-changes
 neighbor 9.9.2.2 remote-as 100
 neighbor 9.9.2.2 update-source Loopback0
 neighbor 9.9.13.3 remote-as 200
 !
 address-family ipv4
 neighbor 9.9.2.2activate
 neighbor 9.9.2.2 send-community
 neighbor 9.9.2.2 next-hop-self
 neighbor 9.9.13.3 activate
 neighbor 9.9.13.3 send-community
 neighbor 9.9.13.3 route-map MED out
  no auto-summary
 no synchronization
 exit-address-family

ip community-list 1 permit 200:200

route-map MED per 10
match community 1
set metric 50
route-map MED per 20

R2

router bgp 100
 bgp router-id 9.9.2.2
 no bgp default ipv4-unicast
 bgp log-neighbor-changes
 neighbor 9.9.1.1 remote-as 100
 neighbor 9.9.1.1 update-source Loopback0
 neighbor 9.9.24.4 remote-as 200
 !
 address-family ipv4
 neighbor 9.9.1.1activate
 neighbor 9.9.1.1 send-community
 neighbor 9.9.1.1 next-hop-self
 neighbor 9.9.24.4 activate
 neighbor 9.9.24.4 send-community
  no auto-summary
 no synchronization
 exit-address-family

R3

router bgp 200
 bgp router-id 9.9.3.3
 no bgp default ipv4-unicast
 bgp log-neighbor-changes
 neighbor 9.9.4.4 remote-as 200
 neighbor 9.9.4.4 update-source Loopback0
 neighbor 9.9.13.1 remote-as 100
 !
 address-family ipv4
 neighbor 9.9.4.4 activate
 neighbor 9.9.4.4 send-community
 neighbor 9.9.4.4 next-hop-self
 neighbor 9.9.13.1 activate
 neighbor 9.9.13.1 send-community
network 200.200.200.1 mask 255.255.255.255 route-map COMM
network 200.200.201.2 mask 255.255.255.255 route-map COMM
  no auto-summary
 no synchronization
 exit-address-family

route-map COMM
set community 200:200

R4

router bgp 200
 bgp router-id 9.9.4.4
 no bgp default ipv4-unicast
 bgp log-neighbor-changes
 neighbor 9.9.3.3 remote-as 200
 neighbor 9.9.3.3 update-source Loopback0
 neighbor 9.9.24.2 remote-as 100
 !
 address-family ipv4
 neighbor 9.9.3.3 activate
 neighbor 9.9.3.3 send-community
 neighbor 9.9.3.3 next-hop-self
 neighbor 9.9.24.2 activate
 neighbor 9.9.24.2 send-community
  no auto-summary
 no synchronization
 exit-address-family

Show ip bgp on any router does not show the change in metric

Regards
Deepak

On Sat, Mar 14, 2009 at 11:30 AM, Bryan Bartik <bbartik@ipexpert.com> wrote:

> Outbound route-map with AS-Path prepend or MED will work. Do you see the
> prepend values or MED values on R1 and R2? Post your configs.
>
>
> On Sat, Mar 14, 2009 at 11:31 AM, Deepak Ahuja <deeps.ccie@gmail.com>wrote:
>
>> Hi Ryan
>>
>> I have to use a OUTBOUND route-map
>>
>> On Sat, Mar 14, 2009 at 10:18 AM, Ryan DeBerry <rdeberry@gmail.com>
>> wrote:
>>
>> > To manipulate outbound traffic use local pref applied inbound.
>> >
>> > On Sat, Mar 14, 2009 at 12:03 PM, Deepak Ahuja <deeps.ccie@gmail.com
>> >wrote:
>> >
>> >> Hi Experts
>> >>
>> >> I know this is simple for you folks but I am really stucked
>> >>
>> >> Situation
>> >>
>> >> R 1----------BGP AS 100-----------------R2
>> >> | |
>> >> | |
>> >> | |
>> >> R3--------------------BGP AS 200---------R4
>> >>
>> >>
>> >> I have following routes advertised to R1 and R2 from AS 200 with
>> >> Community
>> >> 200:200
>> >>
>> >> 1. 200.200.200.1/32
>> >> 2. 200.200.200.2/32
>> >>
>> >> Condition
>> >>
>> >> I need to make R1 as the primary gateway for these routes using an
>> >> outbound
>> >> route-map and community
>> >>
>> >>
>> >>
>> >> I tried with the AS PATH And MED it doesnt work.
>> >>
>> >>
>> >> Please help, any insight on that is appreciated
>> >>
>> >> Regards
>> >> Deepak Ahuja
>> >>
>> >>
>> >> Blogs and organic groups at http://www.ccie.net
>> >>
>> >> _______________________________________________________________________
>> >> Subscription information may be found at:
>> >> http://www.groupstudy.com/list/CCIELab.html
>>
>>
>> Blogs and organic groups at http://www.ccie.net
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html
>>
>>
>>
>>
>>
>>
>>
>>
>
>
> --
> Bryan Bartik
> CCIE #23707, CCNP
> Sr. Support Engineer - IPexpert, Inc.
> URL: http://www.IPexpert.com

Blogs and organic groups at http://www.ccie.net



This archive was generated by hypermail 2.1.4 : Mon Apr 06 2009 - 06:44:05 ART