HP 4800G Series Configuration Manual page 610

24/48 port
Table of Contents

Advertisement

[SwitchA-bgp] peer 200.1.1.1 as-number 65009
[SwitchA-bgp] peer 200.1.2.1 as-number 65009
# Inject route 8.0.0.0/8 to BGP routing table.
[SwitchA-bgp] network 8.0.0.0 255.0.0.0
[SwitchA-bgp] quit
# Configure Switch B.
<SwitchB> system-view
[SwitchB] bgp 65009
[SwitchB-bgp] router-id 2.2.2.2
[SwitchB-bgp] peer 200.1.1.2 as-number 65008
[SwitchB-bgp] peer 9.1.1.2 as-number 65009
[SwitchB-bgp] network 9.1.1.0 255.255.255.0
[SwitchB-bgp] quit
# Configure Switch C.
<SwitchC> system-view
[SwitchC] bgp 65009
[SwitchC-bgp] router-id 3.3.3.3
[SwitchC-bgp] peer 200.1.2.2 as-number 65008
[SwitchC-bgp] peer 9.1.1.1 as-number 65009
[SwitchC-bgp] network 9.1.1.0 255.255.255.0
[SwitchC-bgp] quit
# Display the routing table on Switch A.
[SwitchA] display bgp routing-table
Total Number of Routes: 3
BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history,
Origin : i - IGP, e - EGP, ? - incomplete
Network
*>
8.0.0.0
*>
9.1.1.0/24
*
From the above output, you can find two valid routes to destination 9.1.1.0/24 are available: the route
with next hop 200.1.1.1 is marked with a greater-than sign (>), indicating it is the best route; the route
with next hop 200.1.2.1 is marked with an asterisk (*), indicating it is a valid route, but not the best.
3)
Configure loading balancing
# Configure Switch A.
[SwitchA] bgp 65008
[SwitchA-bgp] balance 2
[SwitchA-bgp] quit
# Display the routing table on Switch A.
i - internal, s - suppressed, S - Stale
NextHop
MED
0.0.0.0
0
200.1.1.1
0
200.1.2.1
0
1-50
LocPrf
PrefVal Path/Ogn
0
i
0
65009i
0
65009i

Advertisement

Chapters

Table of Contents
loading

Table of Contents