The peer ipv6-prefix import command configures a policy based on an IPv6 prefix list for filtering BGP routes received from a specified peer.
The undo peer ipv6-prefix import command cancels this configuration.
By default, no route filtering policy based on an IP address prefix list is configured for a peer.
Parameter | Description | Value |
---|---|---|
ipv6-address |
Specifies the IPv6 address of a peer. |
The prefix is in the format of X:X:X:X:X:X:X:X. |
ipv6-prefix ipv6-prefix-name |
Indicates the filtering policy that is based on the IPv6 prefix list of the peer. |
The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
import |
Applies a filtering policy to the routes received from a peer. |
- |
Usage Scenario
The peer ipv6-prefix import command can be used to configure a route filtering policy that is based on an IPv6 prefix list for filtering BGP routes to be received from a specified peer, implementing route control.
Prerequisites
If the peer ipv6-prefix command specifies an IPv6 prefix list that does not exist for a peer, use the ip ipv6-prefix command to create an IPv6 prefix list.
Configuration Impact
If an IPv6 prefix list is specified for a peer group, all the members of the peer group inherit the configuration.
After an IPv6 prefix list is specified for a peer, the peer filter the routes to be received from other peers based on the IPv6 prefix list. Only the routes that pass the filtering of the IPv6 prefix list can be received.Precautions
The peer ipv6-prefix import command is mutually exclusive with the peer route-filter import commands.
<HUAWEI> system-view [~HUAWEI] ip ipv6-prefix list1 permit 2001:DB8:1::1 8 greater-equal 17 less-equal 18 [*HUAWEI] bgp 100 [*HUAWEI-bgp] peer 2001:DB8:1::1 as-number 100 [*HUAWEI-bgp] ipv6-family unicast [*HUAWEI-bgp-af-ipv6] peer 2001:DB8:1::1 enable [*HUAWEI-bgp-af-ipv6] peer 2001:DB8:1::1 ipv6-prefix list1 import