Verifying the configuration, Bgp route reflector configuration example, Network requirements – H3C Technologies H3C S5560 Series Switches User Manual

Page 302

Advertising
background image

286

[SwitchA-route-policy-comm_policy-0] quit

# Apply the routing policy.

[SwitchA] bgp 10

[SwitchA-bgp] address-family ipv4 unicast

[SwitchA-bgp-ipv4] peer 200.1.2.2 route-policy comm_policy export

[SwitchA-bgp-ipv4] peer 200.1.2.2 advertise-community

Verifying the configuration

# Display the routing table on Switch B.

[SwitchB] display bgp routing-table ipv4 9.1.1.0

BGP local router ID: 2.2.2.2

Local AS number: 20

Paths: 1 available, 1 best

BGP routing table information of 9.1.1.0/24:

From : 200.1.2.1 (1.1.1.1)

Relay nexthop : 200.1.2.1

Original nexthop: 200.1.2.1

OutLabel : NULL

Community : No-Export

AS-path : 10

Origin : igp

Attribute value : pref-val 0

State : valid, external, best,

# Display advertisement information for the route 9.1.1.0 on Switch B.

[SwitchB] display bgp routing-table ipv4 9.1.1.0 advertise-info

BGP local router ID: 2.2.2.2

Local AS number: 20

Paths: 1 best

BGP routing table information of 9.1.1.0/24:

Not advertised to any peers yet

# Display the BGP routing table on Switch C.

[SwitchC] display bgp routing-table ipv4

Total number of routes: 0

The output shows BGP has not learned any route.

BGP route reflector configuration example

Network requirements

As shown in

Figure 68

, all switches run BGP. Run EBGP between Switch A and Switch B, and run IBGP

between Switch C and Switch B, and between Switch C and Switch D.

Advertising
This manual is related to the following products: