[Xorp-users] Local-preference
Atanu Ghosh
atanu@ICSI.Berkeley.EDU
Mon, 19 Dec 2005 01:56:52 -0800
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