The peer route-policy export command specifies a route-policy for filtering routes to be advertised to a peer group.
The undo peer route-policy export command deletes a specified route-policy.
By default, no route-policy is configured for the routes to be advertised to a specified BGP peer group.
Parameter | Description | Value |
---|---|---|
group-name |
Specifies the name of an MBGP peer group. |
The value is a string of 1 to 47 case-sensitive characters, spaces not supported. |
route-policy-name |
The name is a string of 1 to 200 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
The value is a string of 1 to 200 case-sensitive characters, spaces not supported. |
Usage Scenario
After a route-policy is created, the peer route-policy export command is used to apply a Route-Policy to a peer group so that the routes advertised to a peer group can be controlled. To be specific, only the necessary routes are advertised to the peer group. In this manner, route management is implemented, the scale of the routing table is reduced, and fewer network resources are consumed.
Prerequisites
If the command specifies a route-policy that does not exist, use the route-policy command to create the route-policy.
Configuration Impact
If the peer route-policy command is run for a peer group, all the members of the peer group inherit the configuration.
<HUAWEI> system-view [~HUAWEI] route-policy test-policy permit node 10 [*HUAWEI-route-policy] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] group test internal [*HUAWEI-bgp] ipv4-family multicast [*HUAWEI-bgp-af-multicast] peer test enable [*HUAWEI-bgp-af-multicast] peer test route-policy test-policy export