431
Dest 40::/32,
via FE80::7D58:0:CA03:1, cost 1, tag 0, A, 3 Sec
Applying a routing policy to filter received BGP routes
Network requirements
•
All the switches in Figure 119 run BGP. Switch C establishes eBGP connections with other
switches.
•
Configure a routing policy on Switch D to reject routes from AS 200.
Figure 119
Routing policy configuration to filter received BGP routes
Switch B
AS 200
Vlan-int200
1.1.2.1/24
Switch D
Switch C
AS 400
Switch A
AS 100
Vlan-int100
1.1.1.1/24
Vlan-int300
1.1.3.1/24
AS 300
Vlan-int100
1.1.1.2/24
Vlan-int200
1.1.2.2/24
Vlan-int300
1.1.3.2/24
Configuration procedure
1.
Configure IP addresses for the interfaces (details not shown).
2.
Configure BGP.
a.
Configure Switch A.
<SwitchA> system-view
[SwitchA] bgp 100
[SwitchA-bgp] router-id 1.1.1.1
[SwitchA-bgp] peer 1.1.1.2 as-number 300
b.
Configure Switch B.
<SwitchB> system-view
[SwitchB] bgp 200
[SwitchB-bgp] router-id 2.2.2.2
[SwitchB-bgp] peer 1.1.2.2 as-number 300
c.
Configure Switch C.
<SwitchC> system-view
Summary of Contents for S9500E Series
Page 435: ...435 ...