<｜begin▁of▁sentence｜>
### Instruction:
What is the purpose of the BGP local preference attribute?
### Response:
The local preference attribute is used to prefer certain paths external to an AS. A path with a higher local preference is preferred. It is the second criteria in the BGP best path selection after weight.
<|EOT|>
