.. _example_protocols_rip_distribute-list_distribute-listinterface: ######################### Distribute-List Interface ######################### Test to verify RIP **distribute-list interface** configuration for route filtering. The ``set protocols rip distribute-list interface prefix-list in `` command filters incoming RIP routes based on the interface they are received on and a prefix-list. The ``set protocols rip distribute-list interface prefix-list out `` command filters outgoing RIP routes on a specific interface. These commands provide granular control over route acceptance and advertisement on a per-interface basis. ******************************************** Test RIP Distribute-List Interface Filtering ******************************************** Description =========== Test RIP **distribute-list interface** filters routes based on receiving interface and prefix-list. DUT0 acts as the middle router with two neighbors. DUT1 connects via eth0 and redistributes the 10.10.10.0/24 network into RIP. DUT2 connects via eth1 and redistributes the 10.20.20.0/24 network into RIP. DUT0 is configured with interface-specific filters where eth0 accepts only the 10.10.10.0/24 prefix and eth1 denies all routes. The test verifies that DUT0 learns the route from DUT1 via eth0 but rejects the route from DUT2 via eth1 due to the per-interface filtering rules. Scenario ======== .. include:: distribute-listinterface/testripdistribute-listinterfacefiltering .. raw:: html
************************************************ Test RIP Distribute-List Interface OUT Filtering ************************************************ Description =========== Test RIP **distribute-list interface out** filters outgoing routes on specific interfaces. DUT0 has a dummy interface with network 10.10.10.0/24 and connects to two neighbors via eth0 and eth1. DUT0 is configured with an outgoing distribute-list on eth0 that permits only the 10.10.10.0/24 route. The test verifies that DUT1 receives the 10.10.10.0/24 route via eth0 but DUT2 does not receive it via eth1 because the filter only allows advertisement on eth0. Scenario ======== .. include:: distribute-listinterface/testripdistribute-listinterfaceoutfiltering .. raw:: html