BGP is one of the widely used Routing Protocol. It is also known as Internet Protocol. In this Juniper BGP Configuration Example, we will configure BGP on Juniper Routers.
We will use the below simple topology for our Juniper BGP Configuration Example.

Juniper-BGP-configuration-example
We will see each step of BGP Configuration on Juniper Routers step by step. Let’s start.
Table of Contents
Step 1 – IP Configurations
The first step of Juniper BGP Configuration is IP connectivity. We need to be sure that all the interfaces are connected successfully.
Step 2 – Autonomous System Number Configuration
BGP uses AS (Autonomous System) Numbers. To configure AS Numbers on Juniper routers, we will use the below command.
Step 3 – eBGP Peer Configurations
BGP Peer configuration is required to esatblish peer relationship.There are two type of peers in BGP:
- eBGP Peers
- iBGP Peers
Here, we will configure both of them. As you know, eBGP is used between external peers that reside in another AS. iBGP is used between internal peers that reside in the same AS.
In step 3, we will configure eBGP.
RouterA1
RouterB1
Step 4 – iBGP Peer Configurations
iBGP Peers are the peers that is in the same AS in the BGP Domain.
RouterA1
RouterA2
RouterA1
RouterB2
Step 5 – Creating Routing Policy
With all routers, you can add a Routing Policy that provide you to manuplate routing. You can add this Routing Policies as Internal and External.
You can create this Routing Policy on all the routers that you want to use.
Step 6 – Assigning Routing Policy
To use a Routing Policy, we need to add it under the Juniper BGP Configuration. To do this, we will go under the bgp group hieararchy and we will add the Routing Policy under it. This can be eBGP or iBGP. Here, we will add the iBGP as an example.
Gokhan Kosem is a Network Engineer, Instructor and the Founder of IPCisco.com with 15+ years of experience in Cisco, Nokia, Huawei, Juniper, Linux, Service Provider Networks, Routing and Switching technologies.
He has worked on the backbone networks of major service providers and network vendors including Nortel, Alcatel-Lucent (Nokia) and has extensive hands-on experience with Cisco, Huawei, Juniper and Nokia networking technologies.
He has trained thousands of networking students worldwide through IPCisco.com, Udemy, books, labs, quizzes, and educational content across multiple social media platforms.
IPCisco.com | Best Route to Your Dreams










Leave a Reply