True what Terry said.

The first option is a very easy option to set the weight on ALL  
prefixes received from that neighbor. The route-map method is used if  
you want to be more specific and apply filtering to what prefixes you  
would like to alter.

Remember that weight is only local to the IOS router and not  
propagated anywhere. If you want to change the preference of a route I  
would always advice to use local-preference, since this is propagated  
within the AS (iBGP) and makes sure possible other routers prefer the  
same path, unless the question specifically asks for weight of course.

-- 
Regards,

Rick Mur
CCIE2 #21946 (R&S / Service Provider)
Sr. Support Engineer – IPexpert, Inc.
URL: http://www.IPexpert.com

On 15 aug 2009, at 14:41, Terry Vinson wrote:

> Hello Ahmed,
>
> Based on what I understand both methods are correct.  If the outcome  
> is
> to set the Weight metric on all routes from that neighbor to a  
> specific
> number.  If the task was to set everything related to that neighbor  
> to a
> specif weight I would use the first.  I would use the route-map if I  
> had
> to alter the weight of a one or more (but not all) routes associated
> with a neighbor.  This would require an access-list or prefix list  
> aswell.
>
> Hope that helps.
> Terry
>
> If this post is incorrect please correct me.
>
>
> Ahmed Haji Munye wrote:
>>
>>
>> Hi
>>
>> Which of the two options below are correct to use when configuring
>> weight ?
>>
>> Option 1
>>
>> R2(config-if)#router bgp 2
>> R2(config-router)#neighbor 24.24.24.4 weight 200
>>
>> or
>>
>> Optiion 2
>>
>> R2(config)#route-map LOOP_WEIGHT
>> R2(config-route-map)#set weight 150
>> R2(config-route-map)#exit
>> R2(config)#router bgp
>> R2(config-router)#neighbor 24.24.24.4 route-map LOOP-WEIGHT in
>>
>>
>>
>> ------------------------------------------------------------------------
>> Låna pengar utan säkerhet.
>> Sök och jämför lån hos Kelkoo.
>> <http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014 
>> >
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> For more information regarding industry leading CCIE Lab training,  
>> please visit www.ipexpert.com
>>
>
> _______________________________________________
> For more information regarding industry leading CCIE Lab training,  
> please visit www.ipexpert.com

_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit 
www.ipexpert.com

Reply via email to