[j-nsp] L2VPN/170/-101

Phill Jolliffe phill.jolliffe at gmail.com
Sun Dec 19 21:08:53 EST 2010


This can be seen on BGP routes in general. I remembered some wierdness
with respect to 1 complements and google turned up the following.

https://www.juniper.net/techpubs/software/junos/junos91/swcmdref-protocols/show-route-detail.html


In order to use common comparison routines, JUNOS software stores the
1's complement of the LocalPref value in the Preference2 field. For
example, if the LocalPref value for Route 1 is 100, the Preference2
value is -101. If the LocalPref value for Route 2 is 155, the
Preference2 value is -156. Route 2 is preferred because it has a
higher LocalPref value and a lower Preference2 value.


More information about the juniper-nsp mailing list