distribute-list
Use this command to filter networks in routing updates. This command redistributes other routing protocols into the OSPF routing table.
Use the no parameter with this command to disable this function.
Command Syntax
distribute-list WORD out (kernel|connected|static|rip|bgp|isis|ospf (<0-65535>|))
distribute-list WORD in
no distribute-list WORD out (kernel|connected|static|rip|bgp|isis|ospf (<0-65535>|))
no distribute-list WORD in
Parameters
WORD
Specify the name of the access list.
in
Filter incoming routing updates.
out
Filter outgoing routing updates.
kernel
Specify kernel routes.
connected
Specify connected routes.
static
Specify static routes.
rip
Specify RIP routes.
bgp
Specify BGP routes.
isis
Specify IS-IS routes.
ospf
Specify OSPF process.
<0-65535>
Specify OSPF process ID <1-65535>. If not specified, this command redistribute OSPF instance with process ID 0.
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows the distribution of BGP routing updates based on the access list list1 (network 172.10.0.0).
#configure terminal
(config)#access-list list1 permit 172.10.0.0
(config)#router ospf 100
(config-router)#distribute-list list1 out bgp
(config-router)#redistribute bgp
Last modified date: 08/28/2023