H3C S7500E Series Ethernet Switches Operation Manual
Operation Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches Chapter 5 BGP Configuration
5-25
To do… Use the command… Remarks
Enter system view
system-view
—
Enter BGP view
bgp as-number
—
Configure the filtering of
outgoing redistributed
routes
filter-policy { acl-number
| ip-prefix
ip-prefix-name } export
[ direct | isis process-id |
ospf process-id | rip
process-id | | static ]
Reference a routing policy
to filter routes to a
peer/peer group
peer { group-name |
ip-address } route-policy
route-policy-name export
Reference an ACL to filer
routes to a peer/peer
group
peer { group-name |
ip-address } filter-policy
acl-number export
Reference an AS path
ACL to filter routing
information to a peer/peer
group
peer { group-name |
ip-address } as-path-acl
as-path-acl-number
export
Reference an IP prefix list
to filer routing information
to a peer/peer group
peer { group-name |
ip-address } ip-prefix
ip-prefix-name export
Required to choose any;
Not configured by default;
You can configure a
filtering policy as needed;
If several filtering policies
are configured, they are
applied in the following
sequence:
z filter-policy export
z peer filter-policy
export
z peer as-path-acl
export
z peer ip-prefix export
z peer route-policy
export
Only routes pass the first
policy, can they go to the
next, and only routes
passing all the configured
policies, can they be
advertised.
5.4.6 Configuring BGP Route Reception Filtering Policies
Follow these steps to configure BGP route reception filtering policies:
To do… Use the command… Remarks
Enter system view
system-view
—
Enter BGP view
bgp as-number
—
Filter incoming routes with
an ACL or IP prefix list
filter-policy { acl-number
| ip-prefix
ip-prefix-name } import
Reference a routing policy
to filter routes from a
peer/peer group
peer { group-name |
ip-address } route-policy
policy-name import
Reference an ACL to filter
routing information from a
peer/peer group
peer { group-name |
ip-address } filter-policy
acl-number import
Required to choose any;
No route reception
filtering is configured by
default;
You can configure a
filtering policy as needed;
If several filtering policies
are configured, they are
applied in the following