After the policy for advertising routes is configured, only the routes that match the policy can be added to the local BGP4+ routing table and advertised to BGP4+ peers.
Before configuring the advertisement 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
Based on the export policy
filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } export [ protocol [ process-id ] ]
Based on the routing policy
peer { ipv4-address | ipv6-address | group-name } route-policy route-policy-name export
Based on the ACL
peer { ipv4-address | ipv6-address | group-name } filter-policy acl6-number export
Based on the AS_Path list
peer { ipv4-address | ipv6-address | group-name } as-path-filter { as-path-filter-number | as-path-filter-name } export
Based on the prefix list
peer { ipv4-address | ipv6-address | group-name } ipv6-prefix ipv6-prefix-name export
The commands in step 4 are not arranged in order.
Members in the peer group S can use different outbound routing refreshing policies with the home group, that is, each peer can select its own policy when advertising routes.