[Xorp-users] Local-preference

'Kristian Larsson' kristian@juniks.net
Mon, 19 Dec 2005 17:35:11 +0100


On Mon, Dec 19, 2005 at 08:19:25AM -0700, Mike Horn wrote:
> Hi Atanu,
> 
> Just for additional clarification, this example will fail if entered via the
> command line due to XORP bug 347 (BGP export policy requires "protocol").
> But I'm assuming it works if configured as part of a configuration file.
This was configured from CLI. Although the policy
probably does not work it never complained when I
commited.
I would also like a 'weight' attribute, much like
on cisco so that it's possible to have a prefernce
value local to the router.

> Also, XORP bug 288 ("show bgp routes" commands) requests that the additional
> BGP prefix details, like Local Pref are provided with the "detail" option.
> I will add a list of the specific attributes that should be displayed,
> please verify after I update it (Kristian I'm adding you as a CC to the bug,
> I hope that's ok).
That's ok! Thanks! :)

   Kristian.

> -----Original Message-----
> From: xorp-users-admin@xorp.org [mailto:xorp-users-admin@xorp.org] On Behalf
> Of Atanu Ghosh
> Sent: Monday, December 19, 2005 2:57 AM
> To: Kristian Larsson; xorp-users@xorp.org
> Subject: Re: [Xorp-users] Local-preference 
> 
> Hi,
> 
> You can use the to clause to select a neighbour:
> 
> policy {
>     policy-statement localpref {
> 	term localpref {
> 	   to {
> 		neighbour: 10.0.0.1
> 	   }
> 	   then {
> 		localpref: 120
> 	   }
> 	}
>     }
> }
> 
> To apply this policy to BGP:
> 
> protocols {
>     bgp {
> 	export: "localpref"
> ...
> 
> There is currently no way to discover the local-pref value that was
> associated with an incoming route.
> 
> One way of verifying that the policy has been correctly applied is to trace
> all the outgoing update messages.
> 
> protocol {
>     bgp {
> 	traceoptions {
> 	    flag {
> 		message-out
> 	    }
> 	}
> ...
> 
>       Atanu.
>  
> >>>>> "Kristian" == Kristian Larsson <kristian@juniks.net> writes:
> 
>     Kristian> This should be real simple.. how do I see the
>     Kristian> local-preference of a route?
> 
>     Kristian> I've tried looking at
>     Kristian> show bgp routes ipv6 unicast
>     Kristian> show bgp routes ipv6 unicast detail (which looks
>     Kristian> exactly the same as non-detailed)
> 
>     Kristian> show route table ipv6 unicast final
>     Kristian> show route table ipv6 unicast ebgp 
> 
>     Kristian> and nowhere is localpref to find. There is a
>     Kristian> metric attribute but is it the one I'm looking
>     Kristian> for?
> 
>     Kristian> And am I correct when I beleive that
>     Kristian> policy policy-statement test {
>     Kristian> term one {
>     Kristian> then {
>     Kristian> localpref: 120; 
>     Kristian> }
>     Kristian> }
>     Kristian> }
>     Kristian> }
>     Kristian> Will set the local preference to 120?
> 
>     Kristian> And is this only applicable at the
>     Kristian> protocols bgp
>     Kristian> level? Is it not possible to set per neighbor?
> 
>     Kristian> Regards,
>     Kristian> Kristian
>     Kristian> _______________________________________________
>     Kristian> Xorp-users mailing list
>     Kristian> Xorp-users@xorp.org
>     Kristian> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
> _______________________________________________
> Xorp-users mailing list
> Xorp-users@xorp.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
> 
> 
> _______________________________________________
> Xorp-users mailing list
> Xorp-users@xorp.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users