beautypg.com

Network requirements, Configuration procedure – H3C Technologies H3C S7500E Series Switches User Manual

Page 373

background image

12-16

Applying a Route Policy to Filter Received BGP Routes

Network requirements

As shown in the following figure:

z

All the switches run BGP. Switch C establishes eBGP connections with other switches.

z

Configure a route policy on Switch D to reject routes from AS 200.

Figure 12-3 Route policy configuration to filter received BGP routes

Swtich B

AS 200

Vlan-int200

1.1.2.1/24

Swtich D

Swtich C

AS 400

Swtich 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 (omitted).

2) Configure

BGP.

# Configure Switch A.

system-view

[SwitchA] bgp 100

[SwitchA-bgp] router-id 1.1.1.1

[SwitchA-bgp] peer 1.1.1.2 as-number 300

# Configure Switch B.

system-view

[SwitchB] bgp 200

[SwitchB-bgp] router-id 2.2.2.2

[SwitchB-bgp] peer 1.1.2.2 as-number 300

# Configure Switch C.

system-view

[SwitchC] bgp 300

[SwitchC-bgp] router-id 3.3.3.3

[SwitchC-bgp] peer 1.1.1.1 as-number 100

[SwitchC-bgp] peer 1.1.2.1 as-number 200

[SwitchC-bgp] peer 1.1.3.2 as-number 400

# Configure Switch D.

system-view

[SwitchD] bgp 400

[SwitchD-bgp] router-id 4.4.4.4