OcNOS-RON-6.3.1 : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Commands : neighbor distribute-list
neighbor distribute-list
Use this command to filter route updates from a particular BGP neighbor. Use only one distribute list per BGP neighbor.
Use the no parameter with this command to remove an entry.
Command Syntax
neighbor (A.B.C.D|X:X::X:X|WORD) distribute-list (<1-199>|<1300-2699>|WORD) (in|out)
no neighbor (A.B.C.D|X:X::X:X|WORD) distribute-list (<1-199>|<1300-2699>|WORD) (in|out)
For v4-unnumbered mode:
neighbor WORD distribute-list (<1-199>|<1300-2699>|WORD) (in|out)
no neighbor WORD distribute-list (<1-199>|<1300-2699>|WORD) (in|out)
Parameters
A.B.C.D
Address of the BGP neighbor in an IPv4 format
X:X::X:X
Address of the BGP neighbor in an IPv6 format
WORD
Name of a BGP peer group created with the neighbor WORD peer-group command. When you specify this parameter, the command applies to all peers in the group.
<1-199>
IP access-list number
<1300-2699>
IP access-list number (expanded-range)
WORD
Access-list name
in
Filter incoming advertised routes
out
Filter outgoing advertised routes
Default
By default, neighbor distribute list is disabled
Command Mode
Address Family mode and v4-unnumbered mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router bgp 10
(config-router)#address-family ipv4 unicast
(config-router-af)#neighbor 1.2.3.4 distribute-list mylist out
For unnumbered peer, IPv4 unicast mode commands are configured under v4-unnumbered-mode.
(config)#router bgp 100
(config-router)#address-family ipv4 unicast
(config-router-af)#bgp v4-unnumbered-mode
(config-router-v4-unnum)#neighbor eth1 distribute-list list1 in
Last modified date: 07-13-2023