The peer route-policy import command specifies a route-policy for filtering routes received from a peer.
The undo peer route-policy import command deletes a specified route-policy.
By default, no route-policy is configured for filtering routes received from a peer.
Parameter | Description | Value |
---|---|---|
ipv6-address |
IPv6 peer address. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
route-policy-name |
Specifies the name of a route-policy. |
The value is a string of 1 to 200 case-sensitive characters, spaces not supported. |
import |
Applies a route-policy to routes to be imported from a peer. |
- |
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.
The peer route-policy command is mutually exclusive with the peer route-filter commands. Binding a route-policy after a BGP peer relationship is established may cause peer flapping.<HUAWEI> system-view [~HUAWEI] route-policy rp permit node 1 [*HUAWEI-route-policy] commit [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 2001:DB8:1::1 as-number 100 [*HUAWEI-bgp] ipv6-family sr-policy [*HUAWEI-bgp-af-ipv6-srpolicy] peer 2001:DB8:1::1 enable [*HUAWEI-bgp-af-ipv6-srpolicy] peer 2001:DB8:1::1 route-policy rp import