Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Quagga: Users

bgp redistributed conn bug ?

 

 

Quagga users RSS feed   Index | Next | Previous | View Threaded


mike at sentex

Nov 11, 2009, 9:26 AM

Post #1 of 1 (347 views)
Permalink
bgp redistributed conn bug ?

Not sure if this is a bug or a 'feature'

While starting to do some testing with Quagga 0.99.15, FreeBSD 7.x
and 8.x, I noticed that with the following simple config



AS2 ---- AS1
aka
1.1.1.2 (i3) ----------- 1.1.1.1 (ich10)


on host ich10 (1.1.1.1)
router bgp 1
bgp router-id 1.1.1.1
bgp log-neighbor-changes
redistribute connected
redistribute static
neighbor 1.1.1.2 remote-as 2
neighbor 1.1.1.2 description i3
neighbor 1.1.1.2 update-source 1.1.1.1
neighbor 1.1.1.2 next-hop-self
neighbor 1.1.1.2 soft-reconfiguration inbound
neighbor 1.1.1.2 prefix-list I3-IN in
neighbor 1.1.1.2 prefix-list I3-OUT out
!
ip prefix-list I3-IN seq 5 permit 2.2.2.0/30
ip prefix-list I3-OUT seq 5 permit 10.255.255.0/24


and on host i3 (1.1.1.2)

router bgp 2
bgp router-id 1.1.1.2
bgp log-neighbor-changes
redistribute connected
redistribute static
neighbor 1.1.1.1 remote-as 1
neighbor 1.1.1.1 description ich10
neighbor 1.1.1.1 update-source 1.1.1.2
neighbor 1.1.1.1 next-hop-self
neighbor 1.1.1.1 soft-reconfiguration inbound
neighbor 1.1.1.1 prefix-list ICH10-IN in
neighbor 1.1.1.1 prefix-list ICH10-OUT out
!
ip prefix-list ICH10-IN seq 5 permit 10.255.255.0/24
ip prefix-list ICH10-OUT seq 5 permit 2.2.2.0/30
ip prefix-list ICH10-OUT seq 1000 deny any


From the ICH10 box (AS1), I should in theory only see one prefix

ich10.sentex.ca# sh ip bgp sum
BGP router identifier 1.1.1.1, local AS number 1
RIB entries 51, using 3264 bytes of memory
Peers 1, using 2520 bytes of memory

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ
Up/Down State/PfxRcd
1.1.1.2 4 2 40 52 0 0 0 00:00:50 1

Total number of neighbors 1
ich10.sentex.ca#

ich10.sentex.ca# sh ip bgp nei 1.1.1.2 routes
BGP table version is 0, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 2.2.2.0/30 1.1.1.2 1 0 2 ?

Total number of prefixes 1
ich10.sentex.ca#

Which is correct, as 2.2.2.0/30 is a connected interface.... And on i3,

i3# sh ip bgp nei 1.1.1.1 adv
BGP table version is 0, local router ID is 1.1.1.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 2.2.2.0/30 1.1.1.2 1 32768 ?

Total number of prefixes 1
i3#

shows I am only sending that one route. All looks good so far!

Yet, if I do

ich10.sentex.ca# sh ip bgp nei 1.1.1.2 received-routes
BGP table version is 0, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 2.2.2.0/30 1.1.1.2 1 0 2 ?
*> 10.54.96.0/29 1.1.1.2 1 0 2 ?
*> 10.128.128.0/30 1.1.1.2 1 0 2 ?
*> 10.172.6.0/29 1.1.1.2 1 0 2 ?
*> 10.177.194.16/29 1.1.1.2 1 0 2 ?
*> 64.7.133.144/30 1.1.1.2 1 0 2 ?
*> 64.7.143.40/29 1.1.1.2 1 0 2 ?
*> 64.7.149.40/29 1.1.1.2 1 0 2 ?
*> 64.7.153.72/29 1.1.1.2 1 0 2 ?
....

I see *all* of the connected interfaces on i3 being sent to AS1 from AS2.

Is this not a bug ?

---Mike





--------------------------------------------------------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike [at] sentex
Providing Internet since 1994 www.sentex.net
Cambridge, Ontario Canada www.sentex.net/mike

_______________________________________________
Quagga-users mailing list
Quagga-users [at] lists
http://lists.quagga.net/mailman/listinfo/quagga-users

Quagga users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.