BGP Configuration Examples 405
# Apply the routing policy.
[SwitchA] bgp 10
[SwitchA-bgp] peer 200.1.2.2 route-policy comm_policy export
[SwitchA-bgp] peer 200.1.2.2 advertise-community
# Display the routing table on Switch B.
[SwitchB] display bgp routing-table 9.1.1.0
BGP local router ID : 2.2.2.2
Local AS number : 20
Paths: 1 available, 1 best
BGP routing table entry information of 9.1.1.0/24:
From : 200.1.2.1 (1.1.1.1)
Original nexthop: 200.1.2.1
Community : No-Export
AS-path : 10
Origin : igp
Attribute value : MED 0, pref-val 0, pre 255
State : valid, external, best,
Not advertised to any peers yet
The route 9.1.1.0/24 is not available in the routing table of Switch C.
BGP Route Reflector
Configuration
Network requirements
In the following figure, all switches run BGP.
■ Between Switch A and Switch B is an EBGP connection, between Switch C and
Switch B, and between Switch C and Switch D are IBGP connections.
■ Switch C is a route reflector with clients Switch B and D.
■ Switch D can learn route 1.0.0.0/8 from Switch C.
Network diagram
Figure 134 Network diagram for BGP route reflector configuration
Configuration procedure
1 Configure IP addresses for interfaces (omitted)
2 Configure BGP connections
Vlan-int200
192.1.1.1/24
Switch A
AS 100
Vlan-int200
192.1.1.2/24
lan-int100
1.1.1.1/8
Vlan-int300
193.1.1.2/24
Vlan-int400
194.1.1.2/24
Vlan-int400
194 .1.1 .1/ 24
Vlan-int300
193 .1 .1.1/ 24
Switch C
Switch B
Switch D
AS 200
Route
Reflector