RE: BGP prefers route with less local preference??

From: Michael Zuo (mzuo@ixiacom.com)
Date: Thu Feb 22 2007 - 02:14:45 ART


More outputs below, since the route came from R4, I also attached the
same command output from R4. as you can see, the 10.10.10.0 network is
known to RIP thus satisfying the synchronization rule. However, the
"show ip bg 10.10.10.0" still shows the route as "not synchronized.
Very bizarre...

thanks

R3(config-route-map)#do sh ip rip da
10.0.0.0/8 auto-summary
10.10.10.0/24 redistributed
    [1] via 172.16.34.10,
70.0.0.0/8 auto-summary

R3(config-route-map)#do sh ip bg 10.10.10.0
BGP routing table entry for 10.10.10.0/24, version 96
Paths: (2 available, best #1, table Default-IP-Routing-Table)
Flag: 0x820
  Advertised to update-groups:
     1 2
  1000
    172.16.34.10 from 172.16.34.10 (172.16.120.1)
      Origin IGP, metric 0, localpref 100, valid, external, best
  1000
    172.16.34.4 from 172.16.34.4 (172.16.104.1)
      Origin IGP, metric 0, localpref 200, valid, internal, not
synchronized
R3(config-route-map)#

R4(config)#do sh ip rip da
10.0.0.0/8 auto-summary
10.10.10.0/24 redistributed
    [1] via 172.16.34.10,
70.0.0.0/8 auto-summary
70.0.0.0/8
    [1] via 172.16.34.3, 00:00:13, FastEthernet0/0
172.16.0.0/16 auto-summary
172.16.13.0/24 redistributed
    [1] via 172.16.101.1,

R4(config)#do sh ip bg 10.10.10.0
BGP routing table entry for 10.10.10.0/24, version 2
Paths: (2 available, best #2, table Default-IP-Routing-Table)
  Advertised to non peer-group peers:
  172.16.34.3 172.16.124.5
  1000
    172.16.34.3 from 172.16.34.3 (172.16.103.1)
      Origin IGP, metric 0, localpref 100, valid, internal, not
synchronized
  1000
    172.16.34.10 from 172.16.34.10 (172.16.120.1)
      Origin IGP, metric 0, localpref 100, valid, external, best
R4(config)#

-----Original Message-----
From: Ben [mailto:ccieben@cox.net]
Sent: Monday, February 19, 2007 4:43 PM
To: Michael Zuo
Cc: ccielab@groupstudy.com
Subject: Re: BGP prefers route with less local preference??

Hi Michael,

Looks like synchronization is turned on for AS300, is that 10.10.10.0/24

net in the IGP of R3?

Can you send the output of: show ip bgp 10.10.10.0

Thanks...

Ben

Michael Zuo wrote:
> Oops, forgot the output:
>
>
>
> R3(config-router)#do sh run | be router bg
>
> router bgp 300
>
> synchronization
>
> bgp log-neighbor-changes
>
> neighbor 172.16.34.4 remote-as 300
>
> neighbor 172.16.34.4 next-hop-self
>
> neighbor 172.16.34.4 route-map PREFER in
>
> neighbor 172.16.34.10 remote-as 1000
>
> neighbor 172.16.36.6 remote-as 100
>
> distance bgp 20 20 20
>
> no auto-summary
>
> !
>
> no ip http server
>
> no ip http secure-server
>
> !
>
> !
>
> !
>
> !
>
> ip prefix-list FROMR4 seq 5 permit 10.0.0.0/8 le 32
>
> !
>
> ip access-list standard FROMCAT2
>
> permit 10.0.0.0 0.255.255.255
>
> ip access-list standard LOOP
>
> permit 172.16.104.0 0.0.0.255
>
>
>
> R3(config-router)#do sh ip b
>
> BGP table version is 13, local router ID is 172.16.103.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.10.10.0/24 172.16.34.4 0 200 0 1000 i
>
> *> 172.16.34.10 0 0 1000 i
>
> *> 70.0.0.0 172.16.36.6 0 100 700 ?
>
> R3(config-router)#
>
>
>
> ________________________________
>
> From: Michael Zuo
> Sent: Monday, February 19, 2007 1:28 PM
> To: ccielab@groupstudy.com
> Subject: BGP prefers route with less local preference??
>
>
>
> Hi Group,
>
>
>
> I ran into a strange problem, below output shows that BGP is picking a
> route with less local preference as "Best"?? this starts happening
when
> I put in "distance bgp 20 20 20". Does anyone know why this is
> happening?
>
>
>
> thanks
>
>



This archive was generated by hypermail 2.1.4 : Thu Mar 01 2007 - 07:38:47 ART