HP HPE FlexNetwork 7500 series Configuration Manual page 342

Table of Contents

Advertisement

[SwitchC-bgp-default-ipv4] peer 2.2.2.2 enable
[SwitchC-bgp-default-ipv4] network 9.1.1.0 24
[SwitchC-bgp-default-ipv4] quit
[SwitchC-bgp-default] quit
[SwitchC] ip route-static 2.2.2.2 32 9.1.1.1
# Display the BGP routing table on Switch A.
[SwitchA] display bgp routing-table ipv4
Total number of routes: 3
BGP local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - dampened, h - history,
Network
* >
8.1.1.0/24
* >e 9.1.1.0/24
*
e
The output shows two valid routes to destination 9.1.1.0/24. The route with next hop 3.1.1.1
is marked with a greater-than sign (>), indicating that it is the optimal route (because the ID
of Switch B is smaller). The route with next hop 3.1.2.1 is marked with an asterisk (*),
indicating that it is a valid route, but not the optimal route.
By using the display ip routing-table command, you can find only one route to 9.1.1.0/24
with next hop 3.1.1.1 and output interface VLAN-interface 200.
3.
Configure loading balancing:
Because Switch A has two routes to reach AS 65009, configuring load balancing over the two
BGP routes on Switch A can improve link usage.
# Configure Switch A.
[SwitchA] bgp 65008
[SwitchA-bgp-default] address-family ipv4 unicast
[SwitchA-bgp-default-ipv4] balance 2
[SwitchA-bgp-default-ipv4] quit
[SwitchA-bgp-default] quit
Verifying the configuration
# Display the BGP routing table on Switch A.
[SwitchA] display bgp routing-table ipv4
Total number of routes: 3
BGP local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - dampened, h - history,
Network
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
NextHop
8.1.1.1
3.1.1.1
3.1.2.1
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
NextHop
MED
LocPrf
0
0
0
MED
LocPrf
330
PrefVal Path/Ogn
32768
i
0
65009i
0
65009i
PrefVal Path/Ogn

Advertisement

Table of Contents
loading

Table of Contents