Step
3.
Configure BGP route
distribution filtering
policies.
Configuring BGP route reception filtering policies
Only routes permitted by the configured filtering policies can be installed into the local BGP routing table.
The members of a peer group can have different route reception filtering policies from the peer group.
To configure BGP route reception filtering policies:
Step
1.
Enter system view.
2.
Enter BGP view.
Command
•
Configure the filtering of
redistributed routes:
filter-policy { acl-number | ip-prefix
ip-prefix-name } export [ direct |
ospf process-id | rip process-id |
static ]
•
Reference a routing policy to filter
advertisements to a peer or peer
group:
peer { group-name | ip-address }
route-policy route-policy-name
export
•
Reference an ACL to filter
advertisements to a peer or peer
group:
peer { group-name | ip-address }
filter-policy acl-number export
•
Reference an AS path list to filter
routing information sent to a peer or
peer group:
peer { group-name | ip-address }
as-path-acl as-path-acl-number
export
•
Reference an IP prefix list to filter
routing information sent to a peer or
peer group:
peer { group-name | ip-address }
ip-prefix ip-prefix-name export
Command
system-view
bgp as-number
138
Remarks
Configure at least one command.
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:
4.
filter-policy export
5.
peer filter-policy export
6.
peer as-path-acl export
7.
peer ip-prefix export
8.
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.
Remarks
N/A
N/A