# neighbor maximum-prefix

#### Syntax

neighbor { ipAddress | ipv6Address | peerGroupName } maximum-prefix maximum
[ threshold ] [ strict ] [ warning-only ]

no neighbor { ipAddress | ipv6Address | peerGroupName } maximum-prefix
[ maximum ][ threshold ] [ strict ] [ warning-only ]

#### Release Information

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

#### Description

Sets the number of prefixes that can be received from a neighbor. The no version removes the maximum prefix limitation.

#### Options

- ipAddress—IP address of BGP neighbor
- ipv6Address—IPv6 address of BGP neighbor
- peerGroupName—Name of the 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.
- maximum—Maximum number of prefixes; default value is no limit
- threshold—Percent of maximum at which to log a warning in the range 0–100; default value is 75
- strict—Checks the maximum prefix limit against all received routes rather than the default behavior of checking it only against accepted routes
- warning-only—Causes BGP software to log a warning, rather than reset the connection if the maximum or threshold value is exceeded

#### Mode

Address Family Configuration, Router Configuration