peer capability-advertise orf ip-prefix (BGP-IPv4 unicast address family view) (group)

Function

The peer capability-advertise orf ip-prefix command configures a BGP device to advertise the prefix-based ORF capability to its peer group.

The undo peer capability-advertise orf ip-prefix command cancels the configuration.

By default, a BGP device is not configured to advertise the prefix-based ORF capability to its peer group.

Format

peer group-name capability-advertise orf ip-prefix { both | receive | send }

peer group-name capability-advertise orf non-standard-compatible ip-prefix { both | receive | send }

undo peer group-name capability-advertise orf ip-prefix { both | receive | send }

undo peer group-name capability-advertise orf non-standard-compatible ip-prefix { both | receive | send }

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.

both

Indicates that a peer group is allowed to send and receive ORF packets.

-

receive

Indicates that a peer group is allowed only to receive ORF packets.

-

send

Indicates that a peer group is allowed only to send ORF packets.

-

non-standard-compatible

Indicates that ORF supported by Huawei devices is compatible with that supported by a non-Huawei device.

-

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

ORF enables a BGP device to send to its BGP peer a set of routing policies that can be used by its peer to filter out unwanted routes during route advertisement.

Precautions

If a peer is specified when the peer capability-advertise orf command is run, a peer group is specified when the peer route-filter command is run, and then the peer is added to the peer group, the peer cannot inherit the configuration of the peer route-filter command from the peer group.

Example

# Configure a BGP device to advertise the prefix-based ORF capability to its peer group.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] group test external
[*HUAWEI-bgp] peer test capability-advertise orf ip-prefix both
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >