neighbor prefix-list

Filters the outgoing and incoming route updates to or from a particular BGP neighbor according to IP address and mask length.
Syntax
neighbor { ip-address | ipv6-address | peer-group-name } prefix-list string { in | out }
no neighbor { ip-address | ipv6-address | peer-group-name } prefix-list string { in | out }
Parameters
ip-address
Specifies the IPv4 address of the neighbor
ipv6-address
Specifies the IPv6 address of the neighbor
peer-group-name
Specifies the peer group name configured by the neighbor peer-group-name command.
string
Specifies the name of the prefix list.
in
Applies the filter in incoming routes.
out
Applies the filter in outgoing routes.
Modes

BGP configuration mode

BGP address-family IPv6 unicast configuration mode

Usage Guidelines

When this command is entered in BGP global configuration mode, it applies only to the IPv4 address family. Use this command in BGP address-family IPv6 unicast configuration mode for BGP4+ configurations.

Examples

The following example applies the prefix list "myprefixlist" to incoming advertisements to neighbor 10.11.12.13.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# neighbor 10.11.12.13 prefix-list myprefixlist in

The following example applies the prefix list "myprefixlist" to outgoing advertisements to neighbor 2001:2018:8192::125.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# neighbor 2001:2018:8192::125 prefix-list myprefixlist out