220
1.
filter-policy import
2.
peer filter-policy import
3.
peer as-path-acl import
4.
peer prefix-list import
5.
peer route-policy import
Only routes passing all the configured policies can be received.
To configure BGP route reception filtering policies (IPv4 unicast/multicast address family):
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP IPv4 unicast
address family view,
BGP-VPN IPv4 unicast
address family view, or
BGP IPv4 multicast
address family view.
•
Enter BGP IPv4 unicast address family
view:
a.
bgp
as-number
b.
address-family ipv4
[
unicast
]
•
Enter BGP-VPN IPv4 unicast address
family view:
a.
bgp
as-number
b.
ip vpn-instance
vpn-instance-name
c.
address-family ipv4
[
unicast
]
•
Enter BGP IPv4 multicast address family
view:
a.
bgp
as-number
b.
address-family ipv4 multicast
N/A
3.
Configure BGP route
reception filtering
policies.
•
Reference an ACL or IP prefix list to filter
BGP routes received from all peers:
filter-policy
{
acl-number
|
prefix-list
prefix-list-name
}
import
•
Reference a routing policy to filter BGP
routes received from a peer or peer
group:
peer
{
group-name
|
ip-address
}
route-policy
route-policy-name
import
•
Reference an ACL to filter BGP routes
received from a peer or peer group:
peer
{
group-name
|
ip-address
}
filter-policy
acl-number
import
•
Reference an AS path list to filter BGP
routes received from a peer or peer
group:
peer
{
group-name
|
ip-address
}
as-path-acl
as-path-acl-number
import
•
Reference an IPv4 prefix list to filter BGP
routes received from a peer or peer
group:
peer
{
group-name
|
ip-address
}
prefix-list
prefix-list-name
import
Use at least one method.
By default, no route reception
filtering is configured.
To configure BGP route reception filtering policies (IPv6 unicast/multicast address family):