Hi,
You can apply local preference in the following ways:
1.- Use a route-map with the set local-preference command. You can use the
route-map on incoming updates from all neighbors or on outgoing updates to
internal neighbors (not recommended).
2.- Use the bgp default local-preference command to change the default local
preference value that is applied to all updates that come from external
neighbors or that originate locally.
also plese check out the following video
http://anetworkerblog.com/2009/03/03/basic-bgp-part-2/
They explain greatly how to configure this parameter :)
Thanks!
2009/6/10 Alex H. Ryu <r.hyunseog_at_ieee.org>
> Also, that's only allowing 172.168.10.0/24.
>
> You should add something like this in addition to your configuration to
> allow others.
>
> route-map LOCAL permit 99
> !
>
> This will set default behavior to allow - "permit" everything since no
> match statement is specified.
>
>
> As a result, if we read your config, it is following.
>
> When this router receive 172.168.10.1/24 - actually 172.168.10.0/24 is
> much better -, it is allowed and set local-preference to 200.
> Then deny everything.
>
> So if you add above, "Then" will be changed to "Then allow everything
> with default values such as local preference 100".
>
>
> Alex
>
>
>
> Cisco Fanatic wrote:
> > Ok, something like
> > !
> > router bgp 1
> > neighbor 10.10.10.1 route-map LOCAL in
> > !
> > route-map LOCAL permit 10
> > match ip address prefix-list LP
> > set local-preference 200
> > !
> > ip prefix-list LP permit 172.168.10.1/24
> > !
> >
> > Where the Local-Prefence will set only for 172 routes? Right?
> >
> >
> >
> >
> >> Date: Wed, 10 Jun 2009 09:47:18 -0600
> >> Subject: Re: BGP Local Preference
> >> From: bbartik_at_ipexpert.com
> >> To: ebay_products_at_hotmail.com
> >> CC: ccielab_at_groupstudy.com
> >>
> >> Yuri,
> >>
> >> You could use the prefix-list in a route-map, matching the list then
> >>
> > setting
> >
> >> the preference.
> >>
> >> On Wed, Jun 10, 2009 at 9:24 AM, Cisco Fanatic
> >>
> > <ebay_products_at_hotmail.com>wrote:
> >
> >>> All,
> >>>
> >>>
> >>>
> >>> How can you change LP via using Prefix-List? I know of 2 methods to
> >>>
> > change
> >
> >>> Local Preference. I don't have access to my home routers .. Is there a
> >>>
> > way
> >
> >>> to
> >>> change it via using Prefix-List?
> >>>
> >>>
> >>> - bgp default local-preference
> >>> - or, route-map (set local-preference x)
> >>>
> >>> -Yuri
> >>> _________________________________________________________________
> >>> Windows Live SkyDrive : Get 25 GB of free online storage.
> >>>
> http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009
> >>>
> >>>
> >>> Blogs and organic groups at http://www.ccie.net
> >>>
> >>> _______________________________________________________________________
> >>> Subscription information may be found at:
> >>> http://www.groupstudy.com/list/CCIELab.html
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >> --
> >> Bryan Bartik
> >> CCIE #23707 (R&S), CCNP
> >> Sr. Support Engineer - IPexpert, Inc.
> >> URL: http://www.IPexpert.com
> >>
> >>
> >> Blogs and organic groups at http://www.ccie.net
> >>
> >> _______________________________________________________________________
> >> Subscription information may be found at:
> >> http://www.groupstudy.com/list/CCIELab.html
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >
> > _________________________________________________________________
> > Lauren found her dream laptop. Find the PC that s right for you.
> > http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
> >
> >
> > Blogs and organic groups at http://www.ccie.net
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>
>
>
>
>
-- Victor Cappuccio CCIE R/S# 20657 CCSI# 30452 www.anetworkerblog.com www.linkedin.com/in/vcappuccio Blogs and organic groups at http://www.ccie.netReceived on Wed Jun 10 2009 - 22:00:50 ART
This archive was generated by hypermail 2.2.0 : Wed Jul 01 2009 - 20:02:37 ART