User Manual

BGP Configuration Examples
222 Enterasys X-Pedition User Reference Manual
Local Preference Examples
There are two methods of specifying the local preference with the bgp set peer-group command:
Setting the local-pref option. This option can only be used for the internal, routing, and IGP
group types and is not designed to be sent outside of the AS.
Setting the set-pref option, which allows GateD to set the local preference to reflect GateD’s
own internal preference for the route, as given by the global protocol preference value. Note that
in this case, local preference is a function of the GateD preference and set-pref options.
Figure 17 shows a BGP configuration that uses the BGP local preference attribute in a sample BGP
configuration with two autonomous systems. All traffic exits Autonomous System 64901 through
the link between router X-Pedition13 and router X-Pedition11. This is accomplished by
configuring a higher local preference on router X-Pedition13 than on router X-Pedition12. Because
local preference is exchanged between the routers within the AS, all traffic from AS 64901 is sent
to X-Pedition13 as the exit point.