ip distribution access-list

Last Updated : Apr 02, 2020 |
Use the ip distribution access-list command to create a RIP distribution access list or add a distribution access rule to the list. Use the no form of this command to delete a distribution access list rule. Apply the distribution rule using the distribution-list command.
Prolog information

Syntax

ip distribution access-list access_list_number access_list_index action {{router_ip [router_wildcard>|any}
no ip distribution access-list access_list_number [access_list_index]
Note:
If a list index is not given in the no ip distribution access-list command, all rules are deleted.

Parameters

Parameter
Description
Possible Values
Default Value
access_list_number
The access list number
1–99
access_list_index
The access list index number
1–9999
action
The action to perform
permit, deny
router_ip
The IP router address of the network
router_wildcard
The IP network wildcard address
any
Keyword that specifies the value can be any IP address

User Level

read-write

Context

general

Example

To create distribution list 1, whose default action is to discard information from the network 10.10.0.0:
Gxxx-001(super)# ip distribution access-list 1 23 deny 10.10.0.0 0.0.255.255
To configure RIP distribution access list number 2 permitting distribution and learning of router 10.1.1.1:
Gxxx-001(super)# ip distribution access-list 2 24 permit 10.1.1.1
To configure RIP distribution access list number 20 permitting distribution and learning of all networks:
Gxxx-001(super)# ip distribution access-list 20 4 permit any