# neighbor filter-list

#### Syntax

To apply an access list:

neighbor { ipAddress | ipv6Address | peerGroupName } filter-list
accessListName { in | out }

no neighbor { ipAddress | ipv6Address | peerGroupName } filter-list
[ accessListName ] { in | out }

To assign a weight:

neighbor { ipAddress | ipv6Address | peerGroupName } filter-list
accessListName weight value

no neighbor { ipAddress | ipv6Address | peerGroupName } filter-list
[ accessListName ] weight [ value ]

#### Release Information

Command introduced before JunosE Release 7.1.0.
ipv6Address variable added in JunosE Release 8.0.0.

#### Description

Applies an AS path access list to advertisements inbound from or outbound to the specified neighbor, or assigns a weight to incoming routes that match the AS path access list. The no version stops the application of the list or assignment of the weight.

#### Options

- ipAddress—IP address of BGP neighbor
- ipv6Address—IPv6 address of BGP neighbor
- peerGroupName—Name of a BGP peer group. If you specify a BGP peer group by using the peerGroupName argument, all the members of the peer group inherit the characteristic configured with this command, unless it is overridden for a specific peer.
- accessListName—Name of a single AS path access list; string of up to 32 characters
- in—Applies access list to incoming routes (inbound policy)
- out—Applies access list to outgoing routes (outbound policy); you cannot configure a member of a peer group to override the inherited peer group characteristic for outbound policy
- value—Number in the range 0–65535; assigns relative importance to incoming routes matching AS paths

#### Mode

Address Family Configuration, Router Configuration