Only the routes that match the policy for receiving routes can be received by BGP4+ peers and added to the routing table.
Before configuring the receiving policy of BGP4+ routing information, you need to configure the following filters according to the adopted policy:
Access Control List (ACL)
IP address prefix list
Routing policy
AS path filtering list
The routing policy, ACL, AS path filtering list, or IP address prefix list can be used to filter the routing information advertised to the peer. Select the filtering policy as required.
bgp as-number
ipv6-family unicast
Filter received global routing information:
filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } import
Filter the routing information received by the specified peer:
peer { ipv4-address | ipv6-address | group-name } route-policy policy-name import
Perform ACL-based filtering:
peer { ipv4-address | ipv6-address | group-name } filter-policy acl-number import
Perform AS path list-based filtering:
peer { ipv4-address | ipv6-address | group-name } as-path-filter { as-path-filter-number | as-path-filter-name } import
Perform IP address prefix list-based filtering:
peer { ipv4-address | ipv6-address | group-name } ipv6-prefix ipv6-prefix-name import
The commands in step 4 are not arranged in order.
Routes received by BGP are filtered. Only routes that meet certain conditions can be received by BGP and added to the routing table.
Members in the peer group can use different inbound routing policies with the home group, that is, each peer can select its own policy when receiving routes.