annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 
cancel
589
Visites
3
Compliment
10
Réponses

Local preference not displayed

Baptiste
Spotlight
Spotlight

Hello, 

I have set up BGP with two AS, see image below.Doc_RPKI.pngI have also set up the locals preferences but I don't know why but they are not all displayed.

 

sh bgp
BGP table version is 14, local router ID is 192.168.102.118
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, 
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, 
              x best-external, a additional-path, c RIB-compressed, 
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network               Next Hop            Metric      LocPrf     Weight     Path
V* i 192.168.1.0      192.168.1.1             0          200                0      i
V*>                          0.0.0.0                     0                          32768    i
N*>  192.168.2.0     213.111.0.2             0                                0     40002 i

however the route 192.168.2.0 has been learned in BGP so the local preference should be displayed.

image.png

thank you in advance for your feedback

Baptiste

 

1 SOLUTION APPROUVÉE

Solutions approuvées

LP is not advertise via ebgp' it only advertise via ibgp.

The show ip bgp not show LP if it value is defualt' you need

Show ip bgp x.x.x.x

Voir la solution dans l'envoi d'origine

10 RÉPONSES 10

LP is not advertise via ebgp' it only advertise via ibgp.

The show ip bgp not show LP if it value is defualt' you need

Show ip bgp x.x.x.x

the 192.168.1.0 route comes from IGP but the 192.168.2.0 comes from eGP because it is the other ace.

 

sh ip bgp 192.168.2.0
BGP routing table entry for 192.168.2.0/24, version 12
Paths: (1 available, best #1, table default)
  Advertised to update-groups:
     2         
  Refresh Epoch 1
  40002
    213.111.0.2 from 213.111.0.2 (200.0.2.1)
      Origin IGP, metric 0, localpref 100, valid, external, best
      path 1344E5C4 RPKI State not found
      rx pathid: 0, tx pathid: 0x0

sh ip bgp 192.168.1.0
BGP routing table entry for 192.168.1.0/24, version 4
Paths: (2 available, best #2, table default)
  Advertised to update-groups:
     2          4         
  Refresh Epoch 3
  Local
    192.168.1.1 from 192.168.1.1 (100.0.4.1)
      Origin IGP, metric 0, localpref 200, valid, internal
      path 1344E570 RPKI State valid
      rx pathid: 0, tx pathid: 0
  Refresh Epoch 1
  Local
    0.0.0.0 from 0.0.0.0 (192.168.102.118)
      Origin IGP, metric 0, localpref 100, weight 32768, valid, sourced, local, best
      path 1344E618 RPKI State valid
      rx pathid: 0, tx pathid: 0x0

 

You can see LP' 

What excatly your Q?

@MHM Cisco World

My question was why the local preference is not displayed at route 192.168.2.0? But as you told me before the local preference is only displayed for routes learned in IBGP.

Excatly' it only appear for ibgp' 

And if show ip bgp dont view LP that not meaning that it value is N/A' you can see it via show ip bgp x.x.x.x

The LP is one of best path bgp selection criteria so it must have vaule to compare.

M02@rt37
VIP
VIP

hello @Baptiste ,

from your C1_B, the output you show us is #sh ip bgp neighbor 213.111.0.2 routes (or received-routes)?

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

M02@rt37
VIP
VIP

@Baptiste  

Where have you configured the LP when you say "I have also set up the locals preferences but I don't know why but they are not all displayed." ?

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

in the router configuration

Baptiste_0-1683799962020.png

but I as your colleague reminded me the local preference is not displayed in eBGP.

 

Yes @Baptiste @MHM Cisco World is right.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Baptiste
Spotlight
Spotlight

a