Bgp Community Configuration - HP 4800G Series Configuration Manual

24/48 port
Table of Contents

Advertisement

[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,
Network
*>
8.0.0.0
*>
9.1.1.0/24
*>
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> system-view
[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.
h - history,
i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
NextHop
0.0.0.0
200.1.1.1
200.1.2.1
MED
LocPrf
0
0
0
1-51
PrefVal Path/Ogn
0
i
0
65009i
0
65009i

Advertisement

Chapters

Table of Contents
loading

Table of Contents