BGP Route Reflector Configuration Example
BGP Route Reflector Configuration Example
The IBGP network should be formed without interrupting fullmesh BGP connections between Switch B, Switch C, and Switch D, and call for simplified device configuration and management.
Configure Switch B, Switch C, and Switch D to have IBGP connections. Between Switch A and Switch B should be an EBGP connection.
Configure Switch C as a route reflector with clients Switch B and Switch D.
Figure 5-10. BGP route reflector
Configuring Switch A
Configure the VLAN that each interface belongs to.
admin@XorPlus# set vlans vlan-id 10 l3-interface 10 admin@XorPlus# set vlans vlan-id 20 l3-interface 20 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 10 admin@XorPlus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 20 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus#
Configure the VLAN interfaces, and assign them each IP addresses.
admin@XorPlus# set vlan-interface interface 10 vif 10 address 192.168.10.1 prefix-length 24 admin@XorPlus# set vlan-interface interface 20 vif 20 address 192.168.20.1 prefix-length 24 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus#
Configure an EBGP connection.
admin@XorPlus# set protocols bgp bgp-id 1.1.1.1 admin@XorPlus# set protocols bgp local-as 100 admin@XorPlus# set protocols bgp peer 192.168.20.2 as 200 admin@XorPlus# set protocols bgp peer 192.168.20.2 local-ip 192.168.20.1 admin@XorPlus# set protocols bgp peer 192.168.20.2 next-hop-self true admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus#
Configuring Switch B
Configure the VLAN that each interface belongs to.
admin@XorPlus# set vlans vlan-id 20 l3-interface 20 admin@XorPlus# set vlans vlan-id 40 l3-interface 40 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# admin@XorPlus# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 20 admin@XorPlus# set interface gigabit-ethernet ge-1/1/4 family ethernet-switching native-vlan-id 40 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus#
Configure the VLAN interfaces, and assign them each IP addresses.
admin@XorPlus# set vlan-interface interface 20 vif 20 address 192.168.20.2 prefix-length 24 admin@XorPlus# set vlan-interface interface 40 vif 40 address 192.168.40.1 prefix-length 24 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus#
Configure EBGP and IBGP connections.
admin@XorPlus# set policy policy-statement p2 term t1 from protocol bgp admin@XorPlus# admin@XorPlus# set policy policy-statement p2 term t1 from network4 192.168.10.0/24 admin@XorPlus# set policy policy-statement p2 term t1 then nexthop4 192.168.40.1 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# admin@XorPlus# set protocols bgp bgp-id 2.2.2.2 admin@XorPlus# set protocols bgp local-as 200 admin@XorPlus# set protocols bgp peer 192.168.20.2 as 100 admin@XorPlus# set protocols bgp peer 192.168.20.1 local-ip 192.168.20.2 admin@XorPlus# set protocols bgp peer 192.168.20.1 next-hop-self true admin@XorPlus# set protocols bgp peer 192.168.40.2 as 200 admin@XorPlus# set protocols bgp peer 192.168.40.2 local-ip 192.168.40.1 admin@XorPlus# set protocols bgp peer 192.168.40.2 next-hop-self true admin@XorPlus# set protocols bgp export p2 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus#
Configuring Switch C
Configure the VLAN that each interface belongs to.
admin@XorPlus# set vlans vlan-id 40 l3-interface 40 admin@XorPlus# set vlans vlan-id 50 l3-interface 50 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# set interface gigabit-ethernet ge-1/1/4 family ethernet-switching native-vlan-id 40 admin@XorPlus# set interface gigabit-ethernet ge-1/1/5 family ethernet-switching native-vlan-id 50 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus#
Configure the VLAN interfaces, and assign them each IP addresses.
admin@XorPlus# set vlan-interface interface 40 vif 40 address 192.168.40.2 prefix-length 24 admin@XorPlus# set vlan-interface interface 50 vif 50 address 192.168.50.2 prefix-length 24 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus#
Configure an IBGP connection.
admin@XorPlus# set protocols bgp bgp-id 3.3.3.3 admin@XorPlus# set protocols bgp local-as 200 admin@XorPlus# set protocols bgp peer 192.168.40.1 as 200 admin@XorPlus# set protocols bgp peer 192.168.40.1 local-ip 192.168.40.2 admin@XorPlus# set protocols bgp peer 192.168.40.1 next-hop-self true admin@XorPlus# set protocols bgp peer 192.168.50.1 as 200 admin@XorPlus# set protocols bgp peer 192.168.50.1 local-ip 192.168.50.2 admin@XorPlus# set protocols bgp peer 192.168.50.1 next-hop-self true admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus#
Configure IBGP connections for the route reflector clients.
admin@XorPlus# set protocols bgp route-reflector cluster-id 3.3.3.3 admin@XorPlus# set protocols bgp route-reflector disable false admin@XorPlus# set protocols bgp peer 192.168.40.1 client true admin@XorPlus# set protocols bgp peer 192.168.50.1 client true admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus#
Configuring Switch D
Configure the VLAN that each interface belongs to.
admin@XorPlus# set vlans vlan-id 30 l3-interface 30 admin@XorPlus# set vlans vlan-id 50 l3-interface 50 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching native-vlan-id 30 admin@XorPlus# set interface gigabit-ethernet ge-1/1/5 family ethernet-switching native-vlan-id 50 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus#
Configure the VLAN interfaces, and assign them each IP addresses.
admin@XorPlus# set vlan-interface interface 30 vif 30 address 192.168.30.2 prefix-length 24 admin@XorPlus# set vlan-interface interface 50 vif 50 address 192.168.50.1 prefix-length 24 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus#
Configure an IBGP connection.
admin@XorPlus# set protocols bgp bgp-id 4.4.4.4 admin@XorPlus# set protocols bgp local-as 200 admin@XorPlus# set protocols bgp peer 192.168.30.1 as 200 admin@XorPlus# set protocols bgp peer 192.168.30.1 local-ip 192.168.30.2 admin@XorPlus# set protocols bgp peer 192.168.30.1next-hop-self true admin@XorPlus# set protocols bgp peer 192.168.50.2 as 200 admin@XorPlus# set protocols bgp peer 192.168.50.2 local-ip 192.168.50.1 admin@XorPlus# set protocols bgp peer 192.168.50.2 next-hop-self true admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus#
Verifying Configurations
View the BGP routing table of Switch B:
admin@XorPlus# 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 ? admin@XorPlus#
View the BGP routing table of Switch D:
admin@XorPlus# run show bgp routes detail 192.168.10.0/24 From peer: 3.3.3.3 Route: Not Used Origin: INCOMPLETE AS Path: 200 Nexthop: 192.168.40.1 Multiple Exit Discriminator: 0 Local Preference: 100 Originator ID: 2.2.2.2 Cluster List: 3.3.3.3
Copyright © 2025 Pica8 Inc. All Rights Reserved.