preference (BGP-IPv4 multicast address family view)

Function

The preference command sets protocol preferences for EBGP routes, IBGP routes, and local routes.

The undo preference command restores the default setting.

By default, the protocol preferences of EBGP routes, IBGP routes, and local routes are all 255.

Format

preference { external-preference internal-preference local-preference | route-policy route-policy-name }

preference route-filter route-filter-name

undo preference

Parameters

Parameter Description Value
external-preference

Specifies the protocol preference of an EBGP route. An EBGP route is the optimal route learned from a peer outside the local AS.

The value is an integer ranging from 1 to 255.

internal-preference

Specifies the protocol preference of an IBGP route. An IBGP route is a route learned from a peer inside the local AS.

The value is an integer ranging from 1 to 255.

local-preference

Specifies the protocol preference of a local MBGP route.

The value is an integer ranging from 1 to 255.

route-policy route-policy-name

Specifies the name of a route-policy.

The name is a string of 1 to 200 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

route-filter route-filter-name

Specifies the name of a route-filter.

The value is a string of 1 to 200 case-sensitive characters, spaces not supported. If parameters are included in the referenced route-filter, specify values for them in the format of (var1, var2, ...var8) behind the route-filter name. A maximum of eight parameters can be specified, and each value ranges from 1 to 200 characters.

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

Users can run this command to change the priorities of external routes, internal routes, and local routes.

Example

# Set the protocol preferences of IBGP routes to be higher than that of routes learned from an IGP.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family multicast
[*HUAWEI-bgp-af-multicast] preference 2 2 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >