BGP route reflector configuration
Network requirements
As shown in
•
EBGP runs between Router A and Router B. IBGP runs between Router C and Router B, and
between Router C and Router D.
•
Router C is a route reflector with clients Router B and D.
•
Router D can learn route 1.0.0.0/8 from Router C.
Figure 78 Network diagram
Configuration procedure
Configure IP addresses for interfaces. (Details not shown.)
1.
Configure BGP connections:
2.
# Configure Router A.
<RouterA> system-view
[RouterA] bgp 100
[RouterA-bgp] peer 192.1.1.2 as-number 200
# Inject network 1.0.0.0/8 to the BGP routing table.
[RouterA-bgp] network 1.0.0.0
[RouterA-bgp] quit
# Configure Router B.
<RouterB> system-view
[RouterB] bgp 200
[RouterB-bgp] peer 192.1.1.1 as-number 100
[RouterB-bgp] peer 193.1.1.1 as-number 200
[RouterB-bgp] peer 193.1.1.1 next-hop-local
[RouterB-bgp] quit
# Configure Router C.
<RouterC> system-view
[RouterC] bgp 200
[RouterC-bgp] peer 193.1.1.2 as-number 200
[RouterC-bgp] peer 194.1.1.2 as-number 200
[RouterC-bgp] quit
# Configure Router D.
<RouterD> system-view
[RouterD] bgp 200
Figure
78, all routers run BGP.
250