R0106-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V7)
306
BGP community configuration example
Network requirements
As shown in Figure 69, Router B establishes EBGP connections to 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 69 Network diagram
Configuration procedure
1. Configure IP addresses for interfaces. (Details not shown.)
2. Configure EBGP connections:
# Configure Router A.
<RouterA> system-view
[RouterA] bgp 10
[RouterA-bgp] router-id 1.1.1.1
[RouterA-bgp] peer 200.1.2.2 as-number 20
[RouterA-bgp] address-family ipv4 unicast
[RouterA-bgp-ipv4] peer 200.1.2.2 enable
[RouterA-bgp-ipv4] network 9.1.1.0 255.255.255.0
[RouterA-bgp-ipv4] quit
[RouterA-bgp] quit
# Configure Router B.
<RouterB> system-view
[RouterB] bgp 20
[RouterB-bgp] router-id 2.2.2.2
[RouterB-bgp] peer 200.1.2.1 as-number 10
[RouterB-bgp] peer 200.1.3.2 as-number 30
[RouterB-bgp] address-family ipv4 unicast
[RouterB-bgp-ipv4] peer 200.1.2.1 enable
[RouterB-bgp-ipv4] peer 200.1.3.2 enable
[RouterB-bgp-ipv4] quit
[RouterB-bgp] quit
# Configure Router C.
<RouterC> system-view
[RouterC] bgp 30