Friday, November 13, 2026

Configure Distribute List in Cisco Router

I was trying to apply a route-map using prefix-list under a router sub-interface to block a range of public subnet received via a RIP network, but got an error instead. 

Per AI search:

You cannot reliably block or filter RIP (Routing Information Protocol) routing updates using a standard or extended Access Control List (ACL) applied directly to a router sub-interface because ACLs block data/network layer packets rather than process internal routing protocol databases.


Why an ACL on a Sub-Interface Fails for RIP

Process-Level Traffic: RIP updates are sent to the multicast address 224.0.0.9 or broadcast (UDP port 520) generated or consumed directly by the router's routing process, bypassing typical interface-level data-plane ACL checks in certain directions or contexts.



Router#show ip route | i 12.116

R        12.116.4.x 

R        12.116.2.x 



Router(config)#interface GigabitEthernet0/0/1.4

Router(config-subif)# ip policy route-map BLOCK-PUBLIC-IPv4

% Can not apply route-map BLOCK-PUBLIC-IPv4 to this interface

  if match clause with prefix-list is configured



So I used a distribute-list and apply it under the routing process instead.


Router#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#router rip

Router(config-router)#distribute-list ?

  <1-199>      IP access list number

  <1300-2699>  IP expanded access list number

  WORD         Access-list name

  gateway      Filtering incoming updates based on gateway

  prefix       Filter prefixes in routing updates


Router(config-router)#distribute-list acl_BLOCK-PUBLIC-IPv4 ?

  in   Filter incoming routing updates

  out  Filter outgoing routing updates


Router(config-router)#distribute-list BLOCK-PUBLIC-IPv4 in ?

  ACR                Virtual ACR interface

  ATM-ACR            ATM interface with ACR

  Analysis-Module    Cisco network analysis service module

  AppNav-Compress    Service-Context Virtual Interface Compress

  AppNav-UnCompress  Service-Context Virtual interface UnCompress

  Async              Async interface

  Auto-Template      Auto-Template interface

  BD-VIF             Bridge-Domain Virtual IP interface

  BDI                Bridge-Domain interface

  BVI                Bridge-Group Virtual Interface

  Bluetooth          Bluetooth interface

  CDMA-Ix            CDMA Ix interface

  CEM                Circuit Emulation interface

  CEM-ACR            Circuit Emulation interface with ACR

  CEM-PG             Circuit Emulation interface with Protection group

  CEOBC              Cluster EOBC Interface

  CTunnel            CTunnel interface

  Container          Container interface

  Dialer             Dialer interface

  EsconPhy           ESCON interface

  Ethernet-Internal  Ethernet-Internal interface

  Fcpa               Fiber Channel

  Filter             Filter interface

  Filtergroup        Filter Group interface

  GMPLS              MPLS interface

  GigabitEthernet    GigabitEthernet IEEE 802.3z

  IMA-ACR            IMA interface with ACR

  L2LISP             L2 Locator/ID Separation Protocol Virtual Interface

  LongReachEthernet  Long-Reach Ethernet interface

  Loopback           Loopback interface

  Lspvif             LSP virtual interface

  MFR                Multilink Frame Relay bundle interface

  Multilink          Multilink-group interface

  NVI                NAT virtual interface

  Null               Null interface

  Overlay            Overlay interface

  PROTECTION_GROUP   Protection-group controller

  Port-channel       Ethernet Channel of interfaces

  Portgroup          Portgroup interface

  Pos-channel        POS Channel of interfaces

  SBC                Session Border Controller

  SDH_ACR            Virtual SDH-ACR controller

  SERIAL-ACR         Serial interface with ACR

          

Router(config-router)#distribute-list acl_BLOCK-PUBLIC-IPv4 in GigabitEthernet0/0/1.4

Router(config-router)# end


Router#clear ip route 12.116.4.x

Router#clear ip route 12.116.2.x



Router#show run | sec router rip

router rip

 version 2

 network 10.0.0.0

 default-information originate

 distribute-list acl_BLOCK-PUBLIC-IPv4 in GigabitEthernet0/0/1.4

 no auto-summary


Router#show ip route | inc 12.116

Router# <EMPTY>