H3C LS-3100-52P-OVS-H3 Operation Manual - page 713
1-50
[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, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 8.0.0.0 0.0.0.0 0 0 i
*> 9.1.1.0/24 200.1.1.1 0 0 65009i
*> 200.1.2.1 0 0 65009i
From the above output, you can find two valid routes to the destination 9.1.1.0/24 are available, and
both of them are marked with a greater-than sign (>), indicating they are the best routes.
BGP Community Configuration
Network requirements
As shown in the following figure, Switch B establishes eBGP connections with Switch A and C.
Configure No_Export community attribute on Switch A to make routes from AS 10 not advertised by AS
20 to any other AS.
Figure 1-23 Network diagram for BGP community configuration
Configuration procedure
1) Configure IP addresses for interfaces (omitted)
2) Configure
eBGP
# Configure Switch A.
[SwitchA] bgp 10
[SwitchA-bgp] router-id 1.1.1.1
[SwitchA-bgp] peer 200.1.2.2 as-number 20
[SwitchA-bgp] network 9.1.1.0 255.255.255.0
[SwitchA-bgp] quit
# Configure Switch B.