RIP AD filtering


see these examples please,


access-list 1 permit host


router rip

 distance 255 1


access-list 2 permit


router rip

 distance 255 2


router rip

  distance 255



can someone please tell me what is the different  between these all ?





  • Here’s my best explanation


    #1 links the AD to an ACL, very straightforward.  If the host generates a RIB entry
    then he/she will be assigned an AD of 255

    #2 uses the distance command to say if the host
    receives a prefix from host then assign the AD of 255.

    #3 is similar to #1 in the context that it uses the
    prefix and mask as the source and assigns an AD to it.  #3 says if a prefix from is
    received then assign it the AD of 255.



    I might be off but that is my explanation.

  • Hi,

    The address after distance value denotes the source of the routing update. In this case, the first is least specific which tells the local router set distance for any sources of update. The second is most specific as it tells the local router just to add the AD for source. Lastly, if the source of update is under the network, it will apply AD values in the routing prefixes coming from them. Keep in mind that there is no ACL in the last statement means that it adds the given AD value for all the updates from that particular source.


Sign In or Register to comment.