Example: Configuring a Route Reflector

This example shows how to configure a route reflector.

Requirements

Before you begin:

  1. Configure network interfaces. See the Junos OS Interfaces Configuration Guide for Security Devices.
  2. Configure security filters. See the Junos OS Security Configuration Guide.
  3. Configure point-to-point peering sessions. See Example: Configuring BGP Point-to-Point Peer Sessions.
  4. Configure IBGP sessions between peers. See Example: Configuring Internal BGP Peering Sessions.
  5. 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:

Figure 32: Typical IBGP Network Using a Route Reflector

Image g015034.gif

Configuration

CLI Quick Configuration

To quickly configure a route reflector, copy the following commands and paste them into the CLI:

[edit]set protocols bgp group cluster-peers neighbor 192.168.6.4set protocols bgp group internal-peers type internal cluster 2.3.4.5

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:

  1. Configure BGP.
    [edit]user@host# edit protocols bgp
  2. 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.

  3. Set the group type.
    [edit protocols bgp]user@host# edit group internal-peers[edit protocols bgp group internal-peers]user@host# set type internal
  4. Configure the cluster identifier.
    [edit protocols bgp group internal-peers]user@host# set cluster 2.3.4.5
  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.

[edit]user@host# show protocols bgpgroup cluster-peers {neighbor 192.168.6.4;}group internal-peers {type internal;cluster 2.3.4.5;}

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