Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


max-sessions (Origin Validation for BGP)



Hierarchy Level

Release Information

Statement introduced in Junos OS Release 12.2.


Configure the number of concurrent sessions for each group.

If the number of sessions in a group exceeds the max-sessions value, the connections are established in order by preference value. A numerically higher preference results in a higher probability for session establishment. The order of session establishment is random among sessions with equal preferences.


number—Maximum number of sessions per group.

Range: 1 through 63

Default: 2

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.