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

Function

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

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.

Format

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

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

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

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

Parameters

Parameter Description Value
peerIpv6Addr

Specifies the IPv6 address of a BGP peer.

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

both

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

-

receive

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

-

send

Indicates that a peer 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

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 or peer group.
HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 2001:DB8:1::1 as-number 100
[*HUAWEI-bgp] ipv4-family unicast
[*HUAWEI-bgp-af-ipv4] peer 2001:DB8:1::1 enable
[*HUAWEI-bgp-af-ipv4] peer 2001:DB8:1::1 capability-advertise orf ip-prefix both
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >