peer ipv6-prefix import (BGP-IPv6 unicast address family view) (group)

Function

The peer ipv6-prefix import command configures a policy based on an IPv6 prefix list for filtering BGP routes received from a specified peer group.

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 group.

Format

peer group-name ipv6-prefix ipv6-prefix-name import

undo peer group-name ipv6-prefix [ ipv6-prefix-name ] import

Parameters

Parameter Description Value
group-name

Specifies the name of a peer group.

The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

ipv6-prefix ipv6-prefix-name

Indicates the filtering policy that is based on the IPv6 prefix list of the peer group.

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 group.

-

Views

BGP-IPv6 unicast address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

The peer ipv6-prefix command can be used to configure a route filtering policy that is based on an IPv6 prefix list to filter routes 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 group, 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 group, the peers in the peer group 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.

Example

# Configure a route filtering policy based on an IPv6 prefix list.
<HUAWEI> system-view
[~HUAWEI] ip ipv6-prefix list1 permit 10.0.192.0 8 greater-equal 17 less-equal 18
[*HUAWEI] bgp 100
[*HUAWEI-bgp] peer 10.1.1.2 as-number 200
[*HUAWEI-bgp] ipv6-family unicast
[*HUAWEI-bgp-af-ipv6] peer 10.1.1.2 ipv6-prefix list1 import
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >