interface Ethernet0/0
 ip address 210.210.210.2 255.255.255.0
!

!
interface Ethernet1/0
 ip address 100.100.100.1 255.255.255.0
!
!
router eigrp 100
 default-metric 10000 33 255 1 1500
 network 210.210.210.0
 redistribute bgp 20000
 redistribute static
 redistribute connected
!
router bgp 20000
 bgp log-neighbor-changes
 network 200.200.200.0
 neighbor 100.100.100.2 remote-as 10000
!
!
!
end

testr2#  sh ip bgp su
BGP router identifier 210.210.210.2, local AS number 20000
BGP table version is 1, main routing table version 1

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
100.100.100.2   4        10000       7       6        1    0    0 00:02:38        0
testr2#
*Jun 21 07:33:28.665: %DUAL-5-NBRCHANGE: EIGRP-IPv4 100: Neighbor 210.210.210.1 (Ethernet0/0) is up: new adjacency
testr2#

testr2#
testr2#  sh ip bgp su
BGP router identifier 210.210.210.2, local AS number 20000
BGP table version is 2, main routing table version 2
1 network entries using 144 bytes of memory
1 path entries using 80 bytes of memory
1/1 BGP path/bestpath attribute entries using 152 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
BGP using 376 total bytes of memory
BGP activity 1/0 prefixes, 1/0 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
100.100.100.2   4        10000      10      10        2    0    0 00:05:14        0
testr2#

testr2#sh ip route
Codes: L - local, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is not set

      10.0.0.0/24 is subnetted, 1 subnets
B        10.10.10.0 [20/0] via 100.100.100.2, 00:00:24
      100.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        100.100.100.0/24 is directly connected, Ethernet1/0
L        100.100.100.1/32 is directly connected, Ethernet1/0
D     200.200.200.0/24 [90/307200] via 210.210.210.1, 00:04:56, Ethernet0/0
      210.210.210.0/24 is variably subnetted, 2 subnets, 2 masks
C        210.210.210.0/24 is directly connected, Ethernet0/0
L        210.210.210.2/32 is directly connected, Ethernet0/0
testr2#
testr2#sh ip bgp
BGP table version is 7, local router ID is 210.210.210.2
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
 *>  10.10.10.0/29    100.100.100.2            0             0 10000 i
 *>  10.10.10.0/24    100.100.100.2            0             0 10000 i
 *>  10.10.10.128/25  100.100.100.2            0             0 10000 i
 *>  10.10.10.224/27  100.100.100.2            0             0 10000 i
 *>  10.10.10.248/29  100.100.100.2            0             0 10000 i
 *>  200.200.200.0    210.210.210.1       307200         32768 i
testr2#
testr2#
testr2#sh ip bgp 10.10.10.1 lo
testr2#sh ip bgp 10.10.10.1
BGP routing table entry for 10.10.10.0/29, version 7
Paths: (1 available, best #1, table default)
  Not advertised to any peer
  Refresh Epoch 1
  10000
    100.100.100.2 from 100.100.100.2 (100.100.100.2)
      Origin IGP, metric 0, localpref 100, valid, external, best
      rx pathid: 0, tx pathid: 0x0
testr2#
testr2#
testr2#sh ip bgp 10.10.10.55
% Network not in table
testr2#sh ip bgp 10.10.10.129
BGP routing table entry for 10.10.10.128/29, version 8
Paths: (1 available, best #1, table default)
  Not advertised to any peer
  Refresh Epoch 1
  10000
    100.100.100.2 from 100.100.100.2 (100.100.100.2)
      Origin IGP, metric 0, localpref 100, valid, external, best
      rx pathid: 0, tx pathid: 0x0
testr2#sh ip bgp 10.10.10.127
% Network not in table
testr2#
testr2#
testr2#sh ip route 10.10.10.1
Routing entry for 10.10.10.0/29
  Known via "bgp 20000", distance 20, metric 0
  Tag 10000, type external
  Redistributing via eigrp 100
  Advertised by eigrp 100
  Last update from 100.100.100.2 00:05:51 ago
  Routing Descriptor Blocks:
  * 100.100.100.2, from 100.100.100.2, 00:05:51 ago
      Route metric is 0, traffic share count is 1
      AS Hops 1
      Route tag 10000
      MPLS label: none
testr2#
testr2#
testr2#sh ip route 10.10.10.33
% Subnet not in table
testr2#sh ip route 10.10.10.120
% Subnet not in table
testr2#sh ip route 10.10.10.129
Routing entry for 10.10.10.128/29
  Known via "bgp 20000", distance 20, metric 0
  Tag 10000, type external
  Redistributing via eigrp 100
  Advertised by eigrp 100
  Last update from 100.100.100.2 00:05:42 ago
  Routing Descriptor Blocks:
  * 100.100.100.2, from 100.100.100.2, 00:05:42 ago
      Route metric is 0, traffic share count is 1
      AS Hops 1
      Route tag 10000
      MPLS label: none
testr2#

 

★サブネットマスクをつけると一致しないとマッチしなくなる