Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Configure BGP

Learn how to configure the BGP protocol on your MX204, MX301, MX304, MX10004, or MX10008 router.

Configuring BGP on a Juniper MX204, MX301, MX304, MX10004, or MX10008 router involves defining the local Autonomous System (AS) and Router ID under [edit routing-options], creating a BGP group with peer details (neighbor IP, peer AS, type) under [edit protocols bgp], and applying routing policies to control route advertisement.

For more information on configuring your device as a node in a BGP network, see Configuring BGP Routing Policy.

To configure BGP on a Juniper MX router (Junos OS), perform the following steps:

  1. Set the local AS number and a unique router ID (usually a loopback address).

  2. Enable logging BGP Events.

  3. Create a group for BGP peers, specifying whether it is internal (iBGP) or external (eBGP). For eBGP, define the peer AS.

  4. Define policies to filter which routes are accepted (import) or advertised (export).

  5. Attach the policy to the BGP group to start exchanging routes.

  6. Verify and apply the configuration.