Example: Configuring a Route Reflector
This example shows how to configure a route reflector.
Requirements
Before you begin:
- Configure network interfaces. See the Junos OS Interfaces Configuration Guide for Security Devices.
- Configure security filters. See the Junos OS Security Configuration Guide.
- Configure point-to-point peering sessions. See Example: Configuring BGP Point-to-Point Peer Sessions.
- Configure IBGP sessions between peers. See Example: Configuring Internal BGP Peering Sessions.
- Configure a routing policy to advertise the BGP routes.
Overview
Figure 1 shows an IBGP network with an IP address 192.168.40.4 acting as a route reflector. In the sample network, each device in cluster 2.3.4.5 has an internal client relationship to the route reflector.
To configure the cluster:
- Create an internal group on the Juniper Networks device, configure an internal peer (neighbor) relationship to every other device in the cluster, and assign a cluster identifier.
- On the other devices you are assigning to the cluster, create the cluster group and configure a client relationship to the route reflector.
Figure 32: Typical IBGP Network Using a Route Reflector

Configuration
CLI Quick Configuration
To quickly configure a route reflector, copy the following commands and paste them into the CLI:
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode.
To configure IBGP in the network using the Juniper Networks device as a route reflector:
- Configure BGP.[edit]user@host# edit protocols bgp
- Create the BGP group and add IP addresses
of the internal neighbors.[edit protocols bgp]user@host# set group cluster-peers neighbor 192.168.6.4

Note: Repeat Step 2 for each BGP neighbor within the cluster that you are configuring.
- Set the group type.[edit protocols bgp]user@host# edit group internal-peers[edit protocols bgp group internal-peers]user@host# set type internal
- Configure the cluster identifier.[edit protocols bgp group internal-peers]user@host# set cluster 2.3.4.5
- Create the BGP group cluster-peers and
add the internal IP address of the route reflector on the other devices
in the cluster.

Note: If the other devices in the network are from Juniper Networks, follow these steps. Otherwise, consult the device’s documentation for instructions.
[edit protocols bgp]user@host# set group cluster-peers neighbor 192.168.40.4
Results
From configuration mode, confirm your configuration by entering the show protocols bgp command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.
If you are done configuring the device, enter commit from configuration mode.
Verification
To confirm that the configuration is working properly, perform these tasks:
Verifying BGP Neighbors
Purpose
Verify that BGP is running on configured interfaces and that the BGP session is active for each neighbor address.
Action
From operational mode, enter the show bgp neighbor command.
Verifying BGP Groups
Purpose
Verify that the BGP groups are configured correctly.
Action
From operational mode, enter the show bgp group command.
Verifying BGP Summary Information
Purpose
Verify that the BGP configuration is correct.
Action
From operational mode, enter the show bgp summary command.
Related Topics
- Junos OS Feature Support Reference for SRX Series and J Series Devices
- Understanding BGP Route Reflectors
- Configuring BGP Route Reflection in the Junos Routing Protocols Configuration Guide
- Verifying a BGP Configuration
Hide Navigation Pane
Show Navigation Pane
Download
SHA1