Search This Blog

Thursday, July 21, 2011

Bgp route reflector

R1 configuration and output
router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 1.0.0.0
 neighbor 10.1.1.2 remote-as 100
 neighbor 10.1.1.2 route-reflector-client
 neighbor 10.1.1.3 remote-as 100
 neighbor 10.1.1.3 route-reflector-client
 no auto-summary

R1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

C    1.0.0.0/8 is directly connected, Loopback0
B    2.0.0.0/8 [200/0] via 10.1.1.3, 00:05:39
B    3.0.0.0/8 [200/0] via 10.1.1.2, 00:05:38
C    10.0.0.0/8 is directly connected, FastEthernet0/0


R1#sh ip bgp
BGP table version is 14, local router ID is 10.1.1.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
*> 1.0.0.0          0.0.0.0                  0         32768 i
*>i2.0.0.0          10.1.1.3                 0    100      0 i
*>i3.0.0.0          10.1.1.2                 0    100      0 i



R2 configuration and output
router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 2.0.0.0
 neighbor 10.1.1.1 remote-as 100
 no auto-summary

R2# sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

B    1.0.0.0/8 [200/0] via 10.1.1.1, 00:04:47
C    2.0.0.0/8 is directly connected, Loopback0
B    3.0.0.0/8 [200/0] via 10.1.1.2, 00:04:46
C    10.0.0.0/8 is directly connected, FastEthernet0/0
R2#sh ip bgp
BGP table version is 12, local router ID is 10.1.1.3
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
*>i1.0.0.0          10.1.1.1                 0    100      0 i
*> 2.0.0.0          0.0.0.0                  0         32768 i
*>i3.0.0.0          10.1.1.2                 0    100      0 i
R2#


 R3 configuration and output


router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 3.0.0.0
 neighbor 10.1.1.1 remote-as 100
 no auto-summary


R3#sh  ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

B    1.0.0.0/8 [200/0] via 10.1.1.1, 00:05:24
B    2.0.0.0/8 [200/0] via 10.1.1.3, 00:05:24
C    3.0.0.0/8 is directly connected, Loopback0
C    10.0.0.0/8 is directly connected, FastEthernet0/0

 R3#sh ip bgp
BGP table version is 14, local router ID is 10.1.1.2
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
*>i1.0.0.0          10.1.1.1                 0    100      0 i
*>i2.0.0.0          10.1.1.3                 0    100      0 i
*> 3.0.0.0          0.0.0.0                  0         32768 i

 R3#sh ip bgp summary
BGP router identifier 10.1.1.2, local AS number 100
BGP table version is 14, main routing table version 14
3 network entries using 360 bytes of memory
3 path entries using 156 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 bytes of memory
1 BGP rrinfo entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
Bitfield cache entries: current 1 (at peak 2) using 32 bytes of memory
BGP using 944 total bytes of memory
BGP activity 3/0 prefixes, 8/5 paths, scan interval 60 secs

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.1.1.1        4   100      33      27       14    0    0 00:05:31        2
R3#