Local Preference Attribute - Zte ZXR10 GER User Manual

Excellent router
Table of Contents

Advertisement

ZXR10 GER (V2.6.03) General Excellent Router User Manual Volume-I
Introduction
Purpose
Prerequisite
Steps
240
Confidential and Proprietary Information of ZTE CORPORATION
ZXR10_R1(config)#router bgp 100
ZXR10_R1(config-router)#no synchronization
ZXR10_R1(config-router)#neighbor 182.17.1.2 remote-as 100
ZXR10_R1(config-router)#neighbor 182.17.20.1 remote-as 200
ZXR10_R1(config-router)#neighbor 182.17.20.1 route-map MAP1
out
ZXR10_R1(config)#route-map MAP1 permit 10
ZXR10_R1(config-route-map)#match as-path 1
ZXR10_R1(config)#ip as-path access-list 1 permit ^$
In the above configuration, the operation is based on the AS
path access list so that R1 only advertises network originated on
AS100 to AS200. Thus, the network 192.18.10.0/24 is filtered.

Local Preference Attribute

The attribute value of local preference is used to determine
routes among IBGP peers inside an AS.
When two IBGP routers in an AS simultaneously learn routes to
the same destination externally, the routers will compare the
attribute values of the local preference. A route with a higher
value takes the precedence. By default, the attribute value of
the local preference is 100.
Refer
to
below
configuration on ZTE ZXR10 GER.
Router Command Line Interface has been accessed.
BGP is running on a network.
1. To configure local preference attribute, use bgp default
local-preference <value> command in BGP route mode as
shown in Table 293.
T
2 9 3 B
- D
A B L E
G P
E F A U L T
Command Format
bgp default local-
preference
<value>
Result: This allows to compare the route MEDs of the
neighbors in different AS .
As shown in Figure 99 , R3 and R4 learn routes to destination
170.10.0.0 simultaneously. Since the local preference value
configured for R4 is greater than that for R3, the R4 egress
will be used in precedence from inside AS256 to the
destination.
procedure
for
local
L
P
O C A L
R E F E R E N C E
Command
Mode
Route
preference
attribute
Command Function
This allows to compare
the route MEDs of the
neighbors in different AS

Advertisement

Table of Contents
loading

Table of Contents