# bgp maxas-limit

#### Syntax

bgp maxas-limit limit

no bgp maxas-limit [ limit ]

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Causes BGP to check the length of AS paths received in update messages and to not forward routes whose AS paths are greater than the specified length. The no version halts checking of the AS path length.

#### Options

- limit—Maximum acceptable length of a received AS path; number in the range 1–1000

#### Mode

Router Configuration