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 546 Lessons. More Lessons Added Every Week!
  • Content created by Rene Molenaar (CCIE #41726)


297 New Members signed up the last 30 days!


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


Notable 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. Ciao Rene',

    testing with your topology: if I set no-advertise with a more specific route-map, like:

    ip prefix-list LOOPBACK seq 5 permit
    route-map SET_NOADVERTISE deny 10
     match ip address prefix-list LOOPBACK
     set community no-advertise
    route-map SET_NOADVERTISE permit 20

    then I get the following result on R2:

    R2#show ip route
    % Network not in table

    do you have any idea on why is that?


  4. 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


  5. 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 ???

Continue the discussion forum.networklessons.com

11 more replies