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

Function

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

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

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

Format

peer peerIpv4Addr preferred-value preferredvalue

undo peer peerIpv4Addr preferred-value

Parameters

Parameter Description Value
peerIpv4Addr

Specifies the IP address of an MBGP peer.

The address is in dotted decimal notation.

preferredvalue

Specifies the preferred value of the routes that a BGP device learns from its peer.

The value is 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.
<HUAWEI> system-view
[~HUAWEI] bgp 109
[*HUAWEI-bgp] peer 10.108.1.1 as-number 100
[*HUAWEI-bgp] ipv4-family multicast
[*HUAWEI-bgp-af-multicast] peer 10.108.1.1 enable
[*HUAWEI-bgp-af-multicast] peer 10.108.1.1 preferred-value 50
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >