Download Describes the advantages of and how to configure the internal BGP local preference. The local preference indicates the degree of preference for one route over another route. .PDF
7610727 Downloads
3.15 MB .pdf
[edit policy-options policy-statement send-direct term 1] [email protected]# set from protocol direct [email protected]# set then accept 5. 0: 11 destinations, 18 routes (11 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 12. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide. For example, compared to other paths, one path might be less expensive to use, might have higher bandwidth, or might be more stable. Configuring Device R3 Step-by-Step Procedure The following example requires you to navigate various levels in the configuration hierarchy. From operational mode, enter the show route protocol bgp command. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration. • Checking the Active Path From Device R1 to Device R4 on page 12 • Altering the Local Preference to Change the Path Selection on page 13 • Rechecking the Active Path From Device R1 to Device R4 on page 13 Checking the Active Path From Device R1 to Device R4 Purpose Action Verify that the active path from Device R1 to Device R4 goes through Device R2. 5 Configuring the BGP Local Preference interface lo0. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration. [email protected]# show interfaces fe-1/2/0 { unit 7 { family inet { address 24. 21/24 [edit interfaces fe-1/2/1 unit 4] [email protected]# set family inet address 24. Configuring Device R2 Step-by-Step Procedure The following example requires you to navigate various levels in the configuration hierarchy. The LOCAL_PREF path attribute is always advertised to IBGP peers and to neighboring confederations. The following example shows how to override the default behavior with an explicit setting for the local preference. 3/24 [edit interfaces fe-1/2/1 unit 6] [email protected]# set family inet address 34. 4/24; } } } fe-1/2/1 { unit 8 { family inet { address 34. Local preference is used to specify route preference in situations where multiple routes are available from the router to another autonomous system. 1/32 set protocols bgp group external type external set protocols bgp group external export send-direct set protocols bgp group external peer-as 123 set protocols bgp group external neighbor 34. Configuration CLI Quick Configuration Device R1 2 • Configuring Device R1 on page 4 • Configuring Device R2 on page 6 • Configuring Device R3 on page 8 • Configuring Device R4 on page 10 To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level