peer preferred-value (BGP-IPv4 multicast address family view) (group)

Function

The peer preferred-value command sets a preferred value for the routes that an MBGP device learns from its peer group.

The undo peer preferred-value command deletes the preferred value set for the routes that an MBGP device learns from its peer group.

By default, the preferred values of the routes that an MBGP device learns from an MBGP peer are 0.

Format

peer peerGroupName preferred-value preferredvalue

undo peer peerGroupName preferred-value

Parameters

Parameter Description Value
peerGroupName

Specifies the name of an MBGP peer group.

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

preferredvalue

Specifies the preferred value of the routes that an MBGP device learns from its peer.

The value can be an integer ranging from 0 to 65535.

Views

BGP-IPv4 multicast address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

After the peer preferred-value command is run, all the routes learned from the specified peer are assigned a preferred value. A route with the highest preferred value will be selected as the optimal route to a specified network if there are multiple routes to that network.

Example

# Set a preferred value for the routes that an MBGP device learns from a specified peer group.
<HUAWEI> system-view
[~HUAWEI] bgp 109
[*HUAWEI-bgp] peer test as-number 100
[*HUAWEI-bgp] ipv4-family multicast
[*HUAWEI-bgp-af-multicast] peer test enable
[*HUAWEI-bgp-af-multicast] peer test preferred-value 50
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >