To force BGP to run the decision process on routes already received, you must
use the
clear ip bgp
command to perform an inbound soft clear or hard clear
of the current BGP session.
■
Use the
no
version to restore the default value, 100.
■
See bgp default local-preference.
Using a Route Map to Set the Local Preference
When you use a route map to set the local preference you have more flexibility in
selecting routes for which you can set a local preference based on many criteria,
including AS. In the previous section, all updates received by router SanJose were
set to a local preference of 200.
Using a route map, you can specifically assign a local preference for routes from AS
17 that pass through AS 293.
The following commands configure router SanJose.
host2(config-router)#
router bgp 873
host2(config-router)#
neighbor 10.2.2.3 remote-as 873
host2(config-router)#
neighbor 10.5.5.1 remote-as 17
host2(config-router)#
neighbor 10.5.5.1 route-map 10 in
host2(config-router)#
exit
host2(config)#
ip as-path access-list 1 permit ^17 293$
host2(config)#
route-map 10 permit 10
host2(config-route-map)#
match as-path 1
host2(config-route-map)#
set local-preference 200
host2(config-route-map)#
exit
host2(config)#
route-map 10 permit 20
Router SanJose sets the local-pref attributes to 200 for routes originating in AS 293
and passing last through AS 17. All other routes are accepted (as defined in instance
20 of the route map 10), but their local preference remains at the default value of
100, indicating a less-preferred path.
Understanding the Origin Attribute
BGP uses the origin attribute to describe how a route was learned at the origin—the
point where the route was injected into BGP. The origin of the route can be one of
three values:
■
IGP—Indicates that the route was learned by means of an IGP and, therefore, is
internal to the originating AS. All routes advertised by the
network
command
have an origin of IGP.
■
EGP—Indicates that the route was learned by means of an EGP.
■
Incomplete—Indicates that the origin of the route is unknown—that is, learned
from something other than IGP or EGP. All routes advertised by the
redistribute
command—such as static routes—have an origin of Incomplete. An origin of
Incomplete occurs when a route is redistributed into BGP.
Selecting the Best Path
■
117
Chapter 1: Configuring BGP Routing
Содержание JUNOSE
Страница 6: ...vi...
Страница 8: ...viii JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 24: ...xxiv Table of Contents JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 37: ...Part 1 Border Gateway Protocol Configuring BGP Routing on page 3 Border Gateway Protocol 1...
Страница 38: ...2 Border Gateway Protocol JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 234: ...198 Monitoring BGP JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 236: ...200 Multiprotocol Layer Switching JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 298: ...262 Point to Multipoint LSPs Configuration JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 346: ...310 Example Traffic Class Configuration for Differentiated Services JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 535: ...There is no no version See undebug ip mbgp Monitoring BGP MPLS VPNs 499 Chapter 5 Configuring BGP MPLS Applications...
Страница 536: ...500 Monitoring BGP MPLS VPNs JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 538: ...502 Layer 2 Services Over MPLS JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 592: ...556 Multiple ATM Virtual Circuits over a Single Pseudowire Example JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 604: ...568 Virtual Private LAN Service JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 618: ...582 VPLS References JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 642: ...606 VPLS Configuration Example with LDP Signaling JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 674: ...638 Virtual Private Wire Service JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 718: ...682 Monitoring MPLS Forwarding Table for VPWS JUNOSe 11 0 x BGP and MPLS Configuration Guide...
Страница 719: ...Part 6 Index Index on page 685 Index 683...
Страница 720: ...684 Index JUNOSe 11 0 x BGP and MPLS Configuration Guide...