261
[RouterA-bgp] address-family ipv4 unicast
[RouterA-bgp-ipv4] balance 2
[RouterA-bgp-ipv4] quit
[RouterA-bgp] quit
Verifying the configuration
# Display the BGP routing table on Router A.
[RouterA] display bgp routing-table ipv4
Total number of routes: 3
BGP local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped, h - history,
s - suppressed, S - Stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Network NextHop MED LocPrf PrefVal Path/Ogn
* > 8.1.1.0/24 8.1.1.1 0 0 i
* >e 9.1.1.0/24 3.1.1.1 0 0 65009i
* >e 3.1.2.1 0 0 65009i
• The output shows that there are two valid routes to the destination 9.1.1.0/24, and both of them are
the best routes.
• By using the display ip routing-table command, you can find there are two routes to 9.1.1.0/24.
One has next hop 3.1.1.1 and outbound interface Ethernet 1/2, and the other has next hop 3.1.2.1
and outbound interface Ethernet 1/3.
BGP community configuration example
Network requirements
As shown in Figure 66, Router B establishes EBGP connections with Router A and Router C. Configure
NO_EXPORT community attribute on Router A so that AS 20 does not advertise routes received from AS
10 to any other AS.
Figure 66 Network diagram