le 11-05-2023 02:25 AM
Hello,
I have set up BGP with two AS, see image below.I 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.
thank you in advance for your feedback
Baptiste
Résolu ! Accéder à la solution.
11-05-2023 02:38 AM - modifié 11-05-2023 02:57 AM
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
11-05-2023 02:38 AM - modifié 11-05-2023 02:57 AM
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
11-05-2023 02:45 AM - modifié 11-05-2023 02:54 AM
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
le 11-05-2023 02:52 AM
You can see LP'
What excatly your Q?
le 11-05-2023 03:16 AM
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.
le 11-05-2023 03:22 AM
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.
11-05-2023 02:44 AM - modifié 11-05-2023 02:49 AM
hello @Baptiste ,
from your C1_B, the output you show us is #sh ip bgp neighbor 213.111.0.2 routes (or received-routes)?
11-05-2023 02:54 AM - modifié 11-05-2023 02:56 AM
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." ?
11-05-2023 03:13 AM - modifié 11-05-2023 03:17 AM
in the router configuration
but I as your colleague reminded me the local preference is not displayed in eBGP.
le 11-05-2023 03:19 AM
Yes @Baptiste , @MHM Cisco World is right.
11-05-2023 03:27 AM - modifié 11-05-2023 03:28 AM
a
Découvrez et enregistrez vos notes préférées. Revenez pour trouver les réponses d'experts, des guides étape par étape, des sujets récents et bien plus encore.
Êtes-vous nouveau ici? Commencez par ces conseils. Comment utiliser la communauté Guide pour les nouveaux membres
Parcourez les liens directs de la Communauté et profitez de contenus personnalisés en français