peer route-policy import (BGP-IPv6 MVPN address family view)

Function

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.

Format

peer ipv4-address route-policy route-policy-name import

peer ipv6-address route-policy route-policy-name import

undo peer ipv4-address route-policy route-policy-name import

undo peer ipv6-address route-policy route-policy-name import

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a peer.

The address is in dotted decimal notation.

route-policy-name

Specifies the name of a route-policy.

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.

ipv6-address

Specifies the address of the IPv6 peer to be displayed.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

BGP-IPv6 MVPN address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

After a route-policy is created, the peer route-policy import command is used to apply a Route-Policy to a peer so that the routes received from the peer can be controlled. To be specific, only the necessary routes are received from the peer. 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.

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.

Example

# Apply a route-policy named test-policy to the routes received from a peer.
<HUAWEI> system-view
[~HUAWEI] route-policy test-policy permit node 10
[*HUAWEI-route-policy] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] peer 10.1.1.1 as-number 10
[*HUAWEI-bgp] ipv6-family mvpn
[*HUAWEI-bgp-af-mvpnv6] peer 10.1.1.1 enable
[*HUAWEI-bgp-af-mvpnv6] peer 10.1.1.1 route-policy test-policy import
<HUAWEI> system-view
[~HUAWEI] route-policy test-policy permit node 10
[*HUAWEI-route-policy] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] peer 1::1 as-number 10
[*HUAWEI-bgp] ipv6-family mvpn
[*HUAWEI-bgp-af-mvpnv6] peer 1::1 enable
[*HUAWEI-bgp-af-mvpnv6] peer 1::1 route-policy test-policy import
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >