Re: BGP

From: Mingzhou Nie (mnie@yahoo.com)
Date: Mon Sep 09 2002 - 20:47:52 GMT-3


To better understand how it works, use

- "show ip bgp nei 14.14.14.14 adv" on R7 to see what routes being adv
to R14
- "show ip bgp nei 14.14.14.7 routes" on R14 to see what routes being
accepted from R7
- "show ip bgp nei 14.14.14.7 receive" on R14 to see all received
routes (both accepted and rejected) from R7

Ming

--- perkinsr@WellsFargo.COM wrote:
> Here is a simple scenario for trying some basic BGP testing:
>
> R7
> / \
> R13 R14
>
> R13 and R14 both have the networks 10.10.10.0 and 11.11.11.0 and
> 12.12.12.0
> as loopbacks and are redistributing to R7. R13 is using redis conn
> and R14
> is using network statements. Once R13 forms a peer relationship with
> R7 it
> sees both its routes and the R14's routes, but R14s go away after
> about a
> minute and I only see R13s routes in the BGP table of R13. R7 always
> sees
> both sets of routes.
>
> Here are the configs:
>
> (AS is same as router number)
> router bgp 7
> bgp log-neighbor-changes
> network 10.10.10.0 mask 255.255.255.0 backdoor
> neighbor 13.13.13.13 remote-as 13
> neighbor 14.14.14.14 remote-as 14
>
> router bgp 13
> bgp log-neighbor-changes
> redistribute connected
> neighbor 13.13.13.7 remote-as 7
> no auto-summary
>
> router bgp 14
> bgp log-neighbor-changes
> network 10.10.10.0 mask 255.255.255.0
> network 11.11.11.0 mask 255.255.255.0
> network 12.12.12.0 mask 255.255.255.0
> neighbor 14.14.14.7 remote-as 7
> neighbor 14.14.14.7 route-map test out
> route-map test permit 10
> set as-path prepend 45 62 75 38
>
> R7#b
> BGP table version is 16, local router ID is 14.14.14.7
> Status codes: s suppressed, d damped, h history, * valid, > best, i -
> internal
> Origin codes: i - IGP, e - EGP, ? - incomplete
>
> Network Next Hop Metric LocPrf Weight Path
> *> 10.10.10.0/24 13.13.13.13 0 0 13 ?
> * 14.14.14.14 0 0 14 45 62
> 75 38
> i
> *> 11.11.11.0/24 13.13.13.13 0 0 13 ?
> * 14.14.14.14 0 0 14 45 62
> 75 38
> i
> *> 12.12.12.0/24 13.13.13.13 0 0 13 ?
> * 14.14.14.14 0 0 14 45 62
> 75 38
> i
> *> 13.13.13.0/24 13.13.13.13 0 0 13 ?
> R7#
>
> R13 after routes disapear:
> R13#b
> BGP table version is 5, local router ID is 12.12.12.12
> Status codes: s suppressed, d damped, h history, * valid, > best, i -
> internal
> Origin codes: i - IGP, e - EGP, ? - incomplete
>
> Network Next Hop Metric LocPrf Weight Path
> *> 10.10.10.0/24 0.0.0.0 0 32768 ?
> *> 11.11.11.0/24 0.0.0.0 0 32768 ?
> *> 12.12.12.0/24 0.0.0.0 0 32768 ?
> *> 13.13.13.0/24 0.0.0.0 0 32768 ?
> R13#
>
> R13, shortly after a clear ip bgp *, before routes diapear:
> R13#b
> BGP table version is 8, local router ID is 12.12.12.12
> Status codes: s suppressed, d damped, h history, * valid, > best, i -
> internal
> Origin codes: i - IGP, e - EGP, ? - incomplete
>
> Network Next Hop Metric LocPrf Weight Path
> *> 10.10.10.0/24 0.0.0.0 0 32768 ?
> * 13.13.13.7 0 7 14 45
> 62 75
> 38 i
> *> 11.11.11.0/24 0.0.0.0 0 32768 ?
> * 13.13.13.7 0 7 14 45
> 62 75
> 38 i
> *> 12.12.12.0/24 0.0.0.0 0 32768 ?
> * 13.13.13.7 0 7 14 45
> 62 75
> 38 i
> *> 13.13.13.0/24 0.0.0.0 0 32768 ?
> R13#
>
>
> R14#b
> BGP table version is 12, local router ID is 12.12.12.12
> Status codes: s suppressed, d damped, h history, * valid, > best, i -
> internal
> Origin codes: i - IGP, e - EGP, ? - incomplete
>
> Network Next Hop Metric LocPrf Weight Path
> * 10.10.10.0/24 14.14.14.7 0 7 13 ?
> *> 0.0.0.0 0 32768 i
> * 11.11.11.0/24 14.14.14.7 0 7 13 ?
> *> 0.0.0.0 0 32768 i
> * 12.12.12.0/24 14.14.14.7 0 7 13 ?
> *> 0.0.0.0 0 32768 i
> *> 13.13.13.0/24 14.14.14.7 0 7 13 ?
> R14#



This archive was generated by hypermail 2.1.4 : Mon Oct 07 2002 - 07:43:47 GMT-3