F3215-HP Load Balancing Module Network Management Configuration Guide-6PW101

285
b. Configure IBGP:
{ To prevent route flapping caused by port state changes, this example uses loopback interfaces
to establish IBGP connections.
{ Because loopback interfaces are virtual interfaces, you need to use the peer connect-interface
command to specify the loopback interface as the source interface for establishing BGP
connections.
{ Enable OSPF in AS 65009 to make sure that LB can communicate with Router B through
loopback interfaces.
# Configure LB.
<LB> system-view
[LB] bgp 65009
[LB-bgp] router-id 2.2.2.2
[LB-bgp] peer 3.3.3.3 as-number 65009
[LB-bgp] peer 3.3.3.3 connect-interface loopback 0
[LB-bgp] quit
[LB] ospf 1
[LB-ospf-1] area 0
[LB-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0
[LB-ospf-1-area-0.0.0.0] network 9.1.1.1 0.0.0.255
[LB-ospf-1-area-0.0.0.0] quit
[LB-ospf-1] quit
# Configure Router B.
<RouterB> system-view
[RouterB] bgp 65009
[RouterB-bgp] router-id 3.3.3.3
[RouterB-bgp] peer 2.2.2.2 as-number 65009
[RouterB-bgp] peer 2.2.2.2 connect-interface loopback 0
[RouterB-bgp] quit
[RouterB] ospf 1
[RouterB-ospf-1] area 0
[RouterB-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0
[RouterB-ospf-1-area-0.0.0.0] network 9.1.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] quit
[RouterB] display bgp peer
BGP local router ID : 3.3.3.3
Local AS number : 65009
Total number of peers : 1 Peers in established state : 1
Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
2.2.2.2 65009 7 10 0 0 00:06:09 Established
The output shows that Router B has established an IBGP peer relationship with LB.
c. Configure EBGP: