Re: BGP Default Route conditional Advertisment

From: Edison Ortiz (edisonmortiz@gmail.com)
Date: Tue Apr 24 2007 - 10:09:59 ART


R2(config)#int lo192
R2(config-if)#ip address 192.168.10.1 255.255.255.0

R2(config-if)#do show ip route | i 192.168.10.
C 192.168.10.0/24 is directly connected, Loopback192

R2(config-if)#ip prefix-list NET192 permit 192.168.10.0/24

R2(config)#do show ip bgp sum | be Nei
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
54.1.1.1 4 300 5626 5623 7 0 0 17:06:31 2

R2(config)#do show ip bgp ne 54.1.1.1 ad | be Net
   Network Next Hop Metric LocPrf Weight Path
*> 172.16.1.0/24 0.0.0.0 0 32768 i
*> 172.16.2.0/24 0.0.0.0 0 32768 i
*> 172.16.3.0/24 0.0.0.0 0 32768 i
*> 172.16.4.0/24 0.0.0.0 0 32768 i

R2(config)#route-map NET192
R2(config-route-map)#match ip address prefix-list NET192

R2(config-route-map)#router bgp 200
R2(config-router)#neighbor 54.1.1.1 default-originate route-map NET192

R2(config-router)#do clear ip bgp * out

R2(config-router)#do show ip bgp ne 54.1.1.1 ad | i Originating
Originating default network 0.0.0.0

R2(config-router)#int lo192
R2(config-if)#shut
R2(config-if)#do show ip bgp ne 54.1.1.1 ad | i Originating
R2(config-if)#no shut
R2(config-if)#do show ip bgp ne 54.1.1.1 ad | i Originating
Originating default network 0.0.0.0

----- Original Message -----
From: "Sam" <syed_wsu@yahoo.com>
To: <ccielab@groupstudy.com>
Sent: Tuesday, April 24, 2007 2:43 AM
Subject: BGP Default Route conditional Advertisment

> Hi All,
>
> If have 2 EBGP peers R1 and R2. I want to advertise
> the default route to R2 only if i have one of my
> conected interface in the routing table
> fa0(192.168.1.0)/24.
>
> I did the following but does not seems to help
>
> 1. Created default route pointing to null 0
> 2. Used advertise map (for 0.0.0.0) and exist map (for
> 192.168.1.0)under BGP config
> 3. Also did redfistribute static so that the defualt
> route is in BGP table
>
> This does not seem to help. I also tried using defualt
> originate with route-map but that didn't work as well
>
> Please let me know what will be the cleanest possible
> way to acheive my requirement.
>
> Thanks
> sam
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Tue May 01 2007 - 08:28:37 ART