Bgp community configuration example, Network requirements – H3C Technologies H3C SR8800 User Manual

Page 263

Advertising
background image

247

*> 8.1.1.0/24 0.0.0.0 0 0 i

*> 9.1.1.0/24 3.1.1.1 0 0 65009i

* 3.1.2.1 0 0 65009i

{

From the output, you can find 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 it is the best route; the route with next

hop 3.1.2.1 is marked with only an asterisk (*), indicating it is a valid route, but not the best.

{

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 outbound interface GE4/1/2.

3.

Configure load balancing:
Since Router A has two routes to reach AS 65009, configuring load balancing over the two BGP
routes on Router A can improve link utilization.
# Configure Router A.

[RouterA] bgp 65008

[RouterA-bgp] balance 2

[RouterA-bgp] quit

4.

Verify the configuration:
# Display the BGP routing table on Router A.

[RouterA] display bgp routing-table

Total Number of Routes: 3

BGP Local router ID is 1.1.1.1

Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped,

h - history, i - internal, s - suppressed, S - Stale

Origin : i - IGP, e - EGP, ? - incomplete

Network NextHop MED LocPrf PrefVal Path/Ogn

*> 8.1.1.0/24 0.0.0.0 0 0 i

*> 9.1.1.0/24 3.1.1.1 0 0 65009i

*> 3.1.2.1 0 0 65009i

{

From the above output information, you can find two valid routes to the destination 9.1.1.0/24,

and both of them are marked with a greater-than sign (>), indicating they are the best routes.

{

By using the display ip routing-table command, you can find two routes to 9.1.1.0/24: one with
next hop 3.1.1.1 and outbound interface GE4/1/2, the other with next hop 3.1.2.1 and

outbound interface GE4/1/1.

BGP community configuration example

Network requirements

As shown in

Figure 93

, Router B establishes EBGP connections with Router A and Router C. Configure

No_Export community attribute on Router A to make routes from AS 10 not advertised by AS 20 to any

other AS.

Advertising