H3C Technologies H3C S12500 Series Switches User Manual

Page 231

Advertising
background image

215

For information about configuring an ACL, see ACL and QoS Configuration Guide.
For information about configuring an IP prefix list, routing policy, and AS path list, see "Configuring
routing policies
."

Configuring BGP route distribution filtering policies

You can use the following methods to configure BGP route distribution filtering policies:

Use ACL or IP prefix list to filter routing information advertised to all peers.

Use routing policy, ACL, AS path list, or IP prefix list to filter routing information advertised to the
specified peer or peer group.

You can configure a filtering policy as needed. If several filtering policies are configured, they are

applied in the following sequence:

1.

filter-policy export

2.

peer filter-policy export

3.

peer as-path-acl export

4.

peer ip-prefix export

5.

peer route-policy export

Only routes passing the first policy can go to the next, and only routes passing all the configured policies

can be advertised.
To configure BGP route distribution filtering policies:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter BGP view or BGP-VPN

instance view.

Enter BGP view:
bgp as-number

Enter BGP-VPN instance view:

a.

bgp as-number

b.

ipv4-family vpn-instance
vpn-instance-name

Use either method.

Advertising