peer rpd-policy export enable

Function

The peer rpd-policy export enable command enables the RPD export route-policy function in an address family.

The undo peer rpd-policy export enable command disables the RPD export route-policy function.

By default, the RPD export route-policy function is disabled.

Format

peer ipv4-address rpd-policy export enable

undo peer ipv4-address rpd-policy export enable

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a peer.

The value is an IPv4 address, in dotted decimal notation.

Views

BGP-IPv4 unicast address family view, BGP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

To enable the RPD export route-policy function in an address family, run the peer rpd-policy export enable command. With the function, after the controller delivers an RPD route to the local device, the local device generates a dynamic route-policy based on the route and uses the policy as an export route-policy to filter and modify the routes advertised to the peer specified in the command.

Prerequisites

A BGP peer has been configured using the peer as-number command.

Example

# Configure a BGP peer in the BGP view and enable the RPD export route-policy function in the BGP-IPv4 unicast address family view so that the generated RPD route-policy is applied to the routes advertised to the peer.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 10.1.1.2 as-number 100
[*HUAWEI-bgp] ipv4-family unicast
[*HUAWEI-bgp-af-ipv4] peer 10.1.1.2 rpd-policy export enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >