.. _example_protocols_ripng_distribute-list_distribute-listinterface: ######################### Distribute-List Interface ######################### Test to verify RIPng **distribute-list interface** configuration for route filtering. The ``set protocols ripng distribute-list interface prefix-list in `` command filters incoming RIPng routes based on the interface they are received on and a prefix-list. The ``set protocols ripng distribute-list interface prefix-list out `` command filters outgoing RIPng routes on a specific interface. These commands provide granular control over route acceptance and advertisement on a per-interface basis. The first test case validates inbound filtering with three routers, while the second test case validates outbound filtering with two routers using multiple dummy interfaces. ********************************************** Test RIPng Distribute-List Interface Filtering ********************************************** Description =========== Test RIPng **distribute-list interface in** filters incoming routes based on interface and prefix-list. DUT0 acts as the middle router with two neighbors. DUT1 connects via eth0 and redistributes the 2001:db8:100::/64 network into RIPng. DUT2 connects via eth1 and redistributes the 2001:db8:200::/64 network into RIPng. DUT0 applies the same prefix-list FILTER-ROUTES on both interfaces, which permits 2001:db8:100::/64 and denies 2001:db8:200::/64. The test verifies that DUT0 learns the route from DUT1 via eth0 but rejects the route from DUT2 via eth1 due to the prefix-list filtering rules. Scenario ======== .. include:: distribute-listinterface/testripngdistribute-listinterfacefiltering .. raw:: html
************************************************** Test RIPng Distribute-List Interface OUT Filtering ************************************************** Description =========== Test RIPng **distribute-list interface out** filters outgoing routes on specific interfaces. DUT0 has two dummy interfaces with networks 2001:db8:100::/64 and 2001:db8:200::/64. DUT0 is configured with an outgoing distribute-list on eth0 that permits 2001:db8:100::/64 and denies 2001:db8:200::/64. The test verifies that DUT1 receives only the permitted route. Scenario ======== .. include:: distribute-listinterface/testripngdistribute-listinterfaceoutfiltering .. raw:: html