Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Network Requirement

As shown in Figure. 1, BGP runs on all the switches.

...

Configure an EBGP connection between Switch A and Switch B.

Configure Switch D as the route reflector for Switch B and Switch C as the clients of Switch D to simplify device configuration and management.

You have to finish configurations on Switch D to be a route reflector. No configuration is required on the client.

 Figure 1. BGP Route Reflector Configuration


Procedure

This section describes the steps of how to configure basic BGP route reflector functions on SwitchA, SwitchB, SwitchC and SwitchD.

Switch A

Step1         Configure the VLANs and VLAN interfaces.

...

Code Block
admin@SwitchA# set protocols bgp bgprouter-id 1.1.1.1
admin@SwitchA# set protocols bgp local-as 100
admin@SwitchA# set protocols bgp peerneighbor 192.168.20.2 remote-as 200
admin@SwitchA# set protocols bgp peer 192.168.20.2 local-ip 192.168.20.1
admin@SwitchA# set protocols bgp peer 192.168.20.2 next-hop-self true

Step3         Commit the configurations.

...

Code Block
admin@SwitchB# set protocols bgp bgprouter-id 2.2.2.2
admin@SwitchB# set protocols bgp local-as 200
admin@SwitchB# set protocols bgp peerneighbor 192.168.20.1 remote-as 100
admin@SwitchB# set protocols bgp peerneighbor 192.168.20.1 local-ip 192.168.20.2
admin@SwitchB# set protocols bgp peer 192.168.20.1 next-hop-self true
admin@SwitchB# set protocols bgp peer 192.168.40.2 as 200
admin@SwitchB# set protocols bgp peer 192.168.40.2 local-ip 192.168.40.1
admin@SwitchB# set protocols bgp peer 192.168.40.2 next-hop-self true40.2 remote-as 200

Step3        Commit the configurations.

...

Code Block
admin@SwitchC# set protocols bgp bgprouter-id 3.3.3.3
admin@SwitchC# set protocols bgp local-as 200
admin@SwitchC# set protocols bgp peerneighbor 192.168.40.1 remote-as 200
admin@SwitchC# set protocols bgp peerneighbor 192.168.4050.1 local-ip 192.168.40.2
admin@SwitchC# set protocols bgp peer 192.168.40.1 next-hop-self true
admin@SwitchC# set protocols bgp peer 192.168.50.1 as 200
admin@SwitchC# set protocols bgp peer 192.168.50.1 local-ip 192.168.50.2
admin@SwitchC# set protocols bgp peer 192.168.50.1 next-hop-self true

Step3         Configure IBGP connections for the route reflector clients.

Code Block
admin@SwitchC# set protocols bgp route-reflector cluster-id 3.3.3.3
admin@SwitchC# set protocols bgp route-reflector disable false
admin@SwitchC# set protocols bgp peer 192.168.40.1 client true
admin@SwitchC# set protocols bgp peer 192.168.50.1 client true

...

remote-as 200

Step3         Commit the configurations.

...

Code Block
admin@SwitchD# set protocols bgp bgprouter-id 4.4.4.4
admin@SwitchD# set protocols bgp local-as 200
admin@SwitchD# set protocols bgp peerneighbor 192.168.30.1 remote-as 200
admin@SwitchD# set protocols bgp peerneighbor 192.168.3050.12 localremote-ip 192.168.30.2
as 200

Step3         Configure Switch D to be a route reflector for Switch B and  Switch C.

Code Block
admin@SwitchD# set protocols bgp peeripv4 unicast neighbor 192.168.3040.1 nextroute-hopreflector-selfclient
true
admin@SwitchD# set protocols bgp peer 192.168.50.2 as 200
admin@SwitchD# set protocols bgp peer 192.168.50.2 local-ip ipv4 unicast neighbor 192.168.50.1 admin@SwitchD# set protocols bgp peer 192.168.50.2 next-hop-self true

...

route-reflector-client

Step4         Commit the configurations.

...

Verify the Configurations

  • View the BGP routing table of Switch B.
Code Block
admin@SwitchB# run show bgp routes
Status Codes: * valid route, > best route
Origin Codes: i IGP, e EGP, ? incomplete
Prefix Nexthop Peer AS Path
------ ------- ---- -------
*> 192.168.10.0/24 192.168.20.11.1.1.1200 ?

...