The peer ipv6-prefix export command configures a policy based on an IPv6 prefix list for filtering BGP routes to be advertised to a specified peer.
The undo peer ipv6-prefix export 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 |
---|---|---|
ipv4-address |
Specifies the IPv4 address of a peer. |
It is in dotted decimal notation. |
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. |
export |
Applies a filtering policy to the routes to be advertised to a peer. |
- |
Usage Scenario
The peer ipv6-prefix export command can be used to configure a route filtering policy that is based on an IPv6 prefix list for filtering BGP routes to be advertised to 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 advertised to other peers based on the IPv6 prefix list. Only the routes that pass the filtering of the IPv6 prefix list can be advertised.Precautions
The peer ipv6-prefix export command is mutually exclusive with the peer route-filter export commands.
<HUAWEI> system-view [~HUAWEI] ip ipv6-prefix list1 permit 2001:DB8:1::1 8 greater-equal 17 less-equal 18 [*HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv6-family [*HUAWEI-vpn-instance-vpn1-af-ipv6] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpna-af-ipv6] quit [*HUAWEI-vpn-instance-vpna] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] vpn-instance vpna [*HUAWEI-bgp-vpna] peer 10.1.1.1 as-number 100 [*HUAWEI-bgp-vpna] quit [*HUAWEI-bgp] ipv6-family vpn-instance vpna [*HUAWEI-bgp-6-vpna] peer 10.1.1.1 enable [*HUAWEI-bgp-6-vpna] peer 10.1.1.1 ipv6-prefix list1 export