task: Ensure that the IP prefix for 100.100.101.0 is not propagated beyond
AS 8888.  Why don't I see 100.100.100.0 advertised?

r4

router bgp 65522
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 8888
 bgp confederation peers 65511 65533
 network 100.100.100.0 mask 255.255.255.0
 network 100.100.101.0 mask 255.255.255.0
 neighbor 150.50.100.2 remote-as 65522
  neighbor 150.50.100.2 send-community
 neighbor 150.50.100.2 route-map NOEXPORT out
 no auto-summary
!
access-list 1 permit 100.100.101.0 0.0.0.255
!
route-map NOEXPORT permit 10
 match ip address 1
 set community no-export
!
route-map NOEXPORT permit 20

r2
   Network          Next Hop            Metric LocPrf Weight Path
*>i100.100.101.0/24 150.50.100.4             0    100      0 i
*  172.16.0.0/24    150.50.200.2             0    100      0 (65511) 500 i
*  172.16.1.0/24    150.50.200.2             0    100      0 (65511) 500 i
*  172.16.2.0/24    150.50.200.2             0    100      0 (65511) 500 i
*  172.16.3.0/24    150.50.200.2             0    100      0 (65511) 500 i
*> 192.168.0.0      150.50.20.1              0    100      0 (65511) i
*> 192.168.0.0/22   150.50.20.1              0    100      0 (65511) i
*> 192.168.1.0      150.50.20.1              0    100      0 (65511) i
*> 192.168.3.0      150.50.20.1              0    100      0 (65511) i

R2(config-router)#do sho ip route 100.100.100.0
% Subnet not in table
R2(config-router)#do sho ip route 100.100.101.0
Routing entry for 100.100.101.0/24
  Known via "bgp 65522", distance 200, metric 0, type internal
  Last update from 150.50.100.4 00:07:13 ago
  Routing Descriptor Blocks:
  * 150.50.100.4, from 150.50.100.4, 00:07:13 ago
      Route metric is 0, traffic share count is 1
      AS Hops 0

R2(config-router)#do sh ip bgp nei 150.50.100.4 routes
BGP table version is 21, local router ID is 150.50.2.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
*>i100.100.101.0/24 150.50.100.4             0    100      0 i

Total number of prefixes 1
*


As soon as I take the community off I see both 100.100.100.0 and
100.100.101.0*

R2#sho ip bgp
BGP table version is 23, local router ID is 150.50.2.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
*>i100.100.100.0/24 150.50.100.4             0    100      0 i
*>i100.100.101.0/24 150.50.100.4             0    100      0 i
*  172.16.0.0/24    150.50.200.2             0    100      0 (65511) 500 i
*  172.16.1.0/24    150.50.200.2             0    100      0 (65511) 500 i
*  172.16.2.0/24    150.50.200.2             0    100      0 (65511) 500 i
*  172.16.3.0/24    150.50.200.2             0    100      0 (65511) 500 i
*> 192.168.0.0      150.50.20.1              0    100      0 (65511) i
*> 192.168.0.0/22   150.50.20.1              0    100      0 (65511) i
*> 192.168.1.0      150.50.20.1              0    100      0 (65511) i
*> 192.168.3.0      150.50.20.1              0    100      0 (65511) i

Reply via email to