We're Sorry, Full Content Access is for Members Only...

If you like to keep on reading, Become a Member Now! Here is Why:

  • Learn any CCNA, CCNP and CCIE R&S Topic. Explained As Simple As Possible.
  • Try for Just $1. The Best Dollar You've Ever Spent on Your Cisco Career!
  • Full Access to our 597 Lessons. More Lessons Added Every Week!
  • Content created by Rene Molenaar (CCIE #41726)


393 New Members signed up the last 30 days!


100% Satisfaction Guaranteed!
You may cancel your monthly membership at any time.
No Questions Asked!


Forum Replies

  1. Rene,
    Great lesson to understand community. I have question if we have two loopbacks for instance on R1 and I would like to advertize this and block Do I need an ACL to match under route-map?

    Please confirm

  2. Hi Hamood,

    That’s right, in this example I used a really simple route-map but you could do something like this:

    access-list 1 permit host
    route-map NO_ADVERTISE deny 10
    match ip address 1
    set community no-advertise
    route-map NO_ADVERTISE permit 20

    The first route-map statement will deny everything that matches access-list 1, the second route-map statement is required to permit everything else.


  3. Hello Salvatore,

    This should work… is not in your prefix-list so it should be permitted. I just checked it to be sure and it’s working for me.

    Any chance you got the wrong route-map on R1? :slight_smile:

    ip prefix-list LOOPBACK permit
    route-map SET_NOADVERTISE permit 10
     match ip address prefix-list LOOPBACK
     set community no-advertise
    route-map SET_NOADVERTISE permit 20
    router bgp 1
     bgp log-neighbor-changes
     network mask
     neighbor remote-as 24
     neighbor send-community
     neighbor route-map SET_NOADVERTISE out
    R2#show ip bgp | include
     *>             0             0 1 i


  4. I think the route map with deny statement will deny everything that permitted in access-list statement, so the outbound routes will be filtered if we use the route map with redistribution or with community or any other case, I also check it out with a lab and I see the route in your case will not announce even to R2 !!! If I did not understand, is it possible to clarify this case more ???

  5. Let me give an example to avoid confusion. To keep it simple and fast, I’ll use EIGRP and a distribute-list. Here’s R1:

    R1#show run | begin router eigrp
    router eigrp 1

    and R2:

    R2#show run | begin router eigrp
    router eigrp 1

    R1 has two loopback interfaces that are advertised to R2:

    R2#show ip route eigrp 
 is subnetted, 1 subnets
    D [90/130816] via, 00:02:32, GigabitEthernet0/1
 is subnetted, 1 subnets
    D [90/130816] via, 00:02:32, GigabitEthernet0/1

    It has learned and Let’s add a distribute-list:

    R1(config)#router eigrp 1
    R1(config-router)#distribute-list route-map NO_ADVERTISE out

    Here’s a route-map:

    R1(config)#access-list 1 permit
    R1(config)#route-map NO_ADVERTISE deny 10
    R1(config-route-map)#match ip address 1

    Here’s what we have on R2:

    R2#show ip route eigrp

    It’s empty…why? the first route-map statement denies what we have in our access-list. The second (invisible) route-map statement is also a deny which prevents from being advertised. If we want this, we have to add a permit:

    R1(config)#route-map NO_ADVERTISE permit 20

    This empty permit, permits everything since there is no match command. The result:

    R2#show ip route eigrp 
    D [90/130816] via, 00:00:30, GigabitEthernet0/1


11 more replies! Ask a question or join the discussion by visiting our Community Forum