Path Attributes : Local Preference

bgp-path-attribute-local-preference-ipcisco-

BGP Path Attributes – Local Preference

In BGP Path selection algorithm, if your device is a different vendor product (not Cisco), the first BGP Path Attribute that is taken into account during path selection is Local Preference attribute.

Local Preference is not a vendor specific BGP Path Attribute like all the BGP path attributes except Weight attribute.

Local Preference attribute is used to choose external BGP paths. Different edge routers has different Local Preferences to an external destination. These values are sent between IBGP (Interior BGP) neighbours and according to these values, the AS (Autonomous System) exit point is determined. Local Preference is applied to the inbound interface and shows the best outbound interface towards another AS. In other words, here, Local Preference shows the exit point of your AS towards another AS.

The default value of Local Preference is 100. And always the highest Local Preferece is choosen as a Best BGP path.

Think about the previous Weight attribute. Weight attribute was configured as local to that router. But Local Preference attribute is not like this. Different routers has different Local Preference values for that destination. And these Local Preference values are shared withing the AS (Autonomous System).

Local Preference attribute is a Well-known and Discretionary BGP Path Attribute. As we mentined before, this means, it is supported by every BGP implementation (well-known) and every BGP router recognize it, but optionally present in the BGP update packet (discretionary).

BGP Local Preference value can be assigned to a router in two ways:

• By BGP default local-preference command
• By Route Maps

Let’s give an example for each of these BGP Local Preference assign ways. As a reference topology, we will use the below basic topology:

bgp path attribute, local preference
 

BGP Path Attribute, Local Preference

RouterA(config)# router bgp 10
RouterA(config-router)# neighbour 10.10.10.1 remote-as 10
RouterA(config-router)# neighbour 20.20.20.20 remote-as 20
RouterA(config-router)# bgp default local-preference 180
RouterB(config)# router bgp 10
RouterB(config-router)# neighbour 10.10.10.2 remote-as 10
RouterB(config-router)# neighbour 30.30.30.30 remote-as 30
RouterB(config-router)# bgp default local-preference 150

We're Sorry!

Full Access is for only IPCisco Crew...

With IPCisco Membership, You Can Access:

• All Certification Courses (Cisco, Juniper, Nokia and Huawei),
• Thousands of Questions (Lesson Quizes and Special Quiz Section),
• Carieer Consultancy, CV/Resume Check, Career Advice Meeting,
• Cheat Sheets, Job Interview Trainings, Network Tools,
You will be Member of a Big IPCisco Community,
You will Learn Network Lessons with Always,
New And Different Learning Styles!
We are waiting for you!

Lesson tags: BGP, routing, path attributes, Local Preference
Back to: CCIE > BGP

Comments are closed.




CCIE