862
C
56: BGP C
HAPTER
BGP Load Balancing and
MED Attribute
Configuration
ONFIGURATION
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 15/37/47 ms
Network requirements
This example describes how to configure BGP load balancing, and how to use the
MED attribute to affect BGP route election.
As shown in the figure below, all routers run BGP, and Router A resides in AS
65008, Router B and Router C in AS 65009. Between Router A and Router B,
Router A and Router C are EBGP connections, and between Router B and Router C
is an IBGP connection.
Network diagram
Figure 248 Network diagram for BGP path selection
AS 65008
S2/0
Eth1/0
200.1.1.2 /24
8 .1.1.1/8
S2/1
200.1.2 .2/24
Router A
Configuration procedure
1 Configure IP addresses for interfaces (omitted)
2 Configure BGP connections
# Configure Router A.
<RouterA> system-view
[RouterA] bgp 65008
[RouterA-bgp] router-id 1.1.1.1
[RouterA-bgp] peer 200.1.1.1 as-number 65009
[RouterA-bgp] peer 200.1.2.1 as-number 65009
[RouterA-bgp] network 8.0.0.0 255.0.0.0
[RouterA-bgp] quit
# Configure Router B.
<RouterB> system-view
[RouterB] bgp 65009
[RouterB-bgp] router-id 2.2.2.2
[RouterB-bgp] peer 200.1.1.2 as-number 65008
[RouterB-bgp] peer 9.1.1.2 as-number 65009
[RouterB-bgp] network 9.1.1.0 255.255.255.0
[RouterB-bgp] quit
AS 65009
Router B
S 2/0
200.1.1.1 /24
Eth1 /0
9 .1.1.1/24
EBGP
IBGP
Eth1 /0
EBGP
9 .1.1.2/24
S 2/1
200.1.2.1 /24
Router C
Need help?
Do you have a question about the MSR 50 Series and is the answer not in the manual?