peer route-policy export (BGP-VPNv4 address family view) (IPv6)

Function

The peer route-policy export command specifies a route-policy for filtering routes to be advertised to a peer.

The undo peer route-policy export command deletes a specified route-policy.

By default, no route-policy is configured for the routes to be advertised to a specified BGP peer.

Format

peer ipv6-address route-policy route-policy-name export [ ignore-bit-error ]

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

Parameters

Parameter Description Value
ipv6-address

Specifies the IPv6 address of a peer.

The address is in the format of X:X:X:X:X:X:X:X.

route-policy-name

Name of the route policy.

The value is a string of 1 to 200 case-sensitive characters, spaces not supported.

export

Applies a route-policy to routes to be advertised to a peer.

-

ignore-bit-error

Ignores bit error detection results when applying the route-policy.

-

Views

BGP-VPNv4 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 export command is used to apply a Route-Policy to a peer so that the routes advertised to the peer can be controlled. To be specific, only the necessary routes are advertised to the peer. In this manner, route management is implemented, the scale of the routing table is reduced, and fewer network resources are consumed.

In a bit-error-triggered protection switching scenario, if you want to use the local preference or MED attribute specified in the export routing policy no matter whether bit errors occur, run the peer route-policy export ignore-bit-error command.

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 advertised to a peer group.
<HUAWEI> system-view
[~HUAWEI] route-policy test-policy permit node 10
[*HUAWEI-route-policy] quit
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 2001:DB8:1::1 as-number 100
[*HUAWEI-bgp] ipv4-family vpnv4
[*HUAWEI-bgp-af-vpnv4] peer 2001:DB8:1::1 enable
[*HUAWEI-bgp-af-vpnv4] peer 2001:DB8:1::1 route-policy test-policy export
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >