A route-policy is used to filter routes.
A route-policy is used to match routes or route attributes, and to change route attributes when the matching rules are met.
Perform the following steps on the router that is configured as an MBGP peer:
This configuration is optional.
The system view is displayed.
The BGP view is displayed.
The BGP-IPv4 multicast address family view is displayed.
A route-policy is configured to filter MBGP routes. Routes exchanged between the device and its remote MBGP peer can thus be controlled.
group-name: specifies an MBGP peer group.
peer-address: specifies the IP address of the remote MBGP peer.
route-policy-name: specifies the name of a route-policy.
import: filters routes received from a specified remote MBGP peer. Only the routes that pass the filtering will be permitted.
export: filters routes sent to a specified remote MBGP peer. Only the routes that pass the filtering will be sent.
The configuration is committed.