For example, to configure RIP distribution access list number 10 permitting distribution and learning of network 10.10.0.0, do the following:
Enter the command: ip distribution access-list 10 1 permit 10.10.0.0 0.0.255.255
ADDITIONAL INFORMATION:
The default action of the access list is deny and can be changed using the ip distribution access-default-action command.
Note:
Whenever at least one permit rule exists, distributing and learning of all the remaining networks is denied, unless specifically permitted by another rule.
Apply the distribution access list created in Step 1 by performing the following procedure within the Router RIP context:
Enter the distribution-list 10 in command to apply list number 10 created in Step 1 on all updates received on all interfaces.
Enter the distribution-list 10 in FastEthernet 10/3 command to apply Access List 10 on updates received on interface ‘FastEthernet 10/3’.
Enter the distribution-list 10 out command to apply Access List 10 to all advertised updates.
Enter the distribution-list 10 out ospf command to apply Access List 10 to all advertised updates that were learned from OSPF (redistributed from OSPF into RIP).
Result
If no distribution access list is defined, learning and advertising is allowed for all of the routing information. This is the default.