Wednesday, August 12, 2015

BGP- Route Injection




R1

router bgp 101
 bgp asnotation dot
 bgp log-neighbor-changes
 bgp inject-map ORIGIN exist-map LEARNED

ip prefix-list ORIG seq 5 permit 69.1.1.0/24

route-map ORIGIN permit 10
 set ip address prefix-list ORIG


ip prefix-list ROUTE seq 5 permit 69.0.0.0/11
!
ip prefix-list ROUTE-SOURCE seq 5 permit 6.6.6.6/32


route-map LEARNED permit 10
 match ip address prefix-list ROUTE
 match ip route-source prefix-list ROUTE-SOURCE
!

R1#sh ip bgp  | sec 69
 * i 69.0.0.0/11        6.6.6.6                  0    100      0 1.301 i
 *>  69.1.1.0/24      6.6.6.6                                     0 ?
R1#


R1#sh ip bgp injected-paths
BGP table version is 16, local router ID is 11.11.11.11
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  69.1.1.0/24      6.6.6.6                                0 ?
R1#

R3

R3#sh ip bgp | in 69
 *>i 69.0.0.0/11      1.1.1.1                  0    100      0 1.301 i
 *>i 69.1.1.0/24      1.1.1.1                  0    100      0 ?
R3#




No comments:

Post a Comment