4. Perform either of the following operations to configure the BGP device to filter the
routes received from all its peers or peer groups:
– To filter routes based on a specified ACL, run the filter-policy { acl-number | acl-
name acl-name } import command.
– To filter routes based on an IP prefix list, run the filter-policy ip-prefix ip-prefix-
name import command.
NOTE
If an ACL has been referenced in the filter-policy command but no VPN instance is specified
in any ACL rule, BGP will filter routes including public network routes and private network
routes in all address families. If a VPN instance is specified in an ACL rule, only the data traffic
from the VPN instance will be filtered, and no routes of this VPN instance will be filtered.
l Configure a BGP device to receive routes from a specific peer or peer group.
You can configure a BGP device to filter received routes. Perform the following steps on
a BGP switch:
1. Run:
system-view
The system view is displayed.
2. Run:
bgp as-number
The BGP view is displayed.
3. Run:
ipv4-family unicast
The IPv4 unicast address family view is displayed.
4. Perform any of the following configurations to configure the BGP device to filter the
routes received from a specific peer or peer group:
– To filter routes based on an ACL, run the peer { ipv4-address | group-name }
filter-policy { acl-number | acl-name acl-name } import command.
– To filter routes based on an IP prefix list, run the peer { ipv4-address | group-
name } ip-prefix ip-prefix-nameimport command.
– To filter routes based on an AS_Path filter, run the peer { ipv4-address | group-
name } as-path-filter { as-path-filter-number | as-path-filter-name } import
command.
– To filter routes based on a route-policy, run the peer { ipv4-address | group-
name } route-policy route-policy-name import command.
A peer group and its members can use different import policies when receiving routes.
This means that each member in a peer group can select its own policy to filter received
routes.
----End
7.6.4 Configuring BGP Soft Reset
BGP soft reset allows the system to refresh a BGP routing table dynamically without tearing
down any BGP connection if routing policies are changed.
S6700 Series Ethernet Switches
Configuration Guide - IP Routing 7 BGP Configuration
Issue 01 (2012-03-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
402