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.
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. |