Mise en avant de la commande "bgpctl show rib detail" qui est très importante
This commit is contained in:
parent
d85cd8a2ab
commit
074c462ee0
|
@ -53,6 +53,20 @@ On vérifie la configuration et si c'est ok, on reload :
|
||||||
# bgpd -n && bgpctl reload
|
# bgpd -n && bgpctl reload
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
Pour examiner le routage vers une adresse IP :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
# bgpctl show rib detail 192.0.2.42
|
||||||
|
|
||||||
|
BGP routing table entry for 192.0.2.0/24
|
||||||
|
65002 43100 1234
|
||||||
|
Nexthop 192.0.34.1 (via 192.0.34.1) from AS 65002 peer 1 (192.0.35.254)
|
||||||
|
Origin IGP, metric 0, localpref 100, external, valid, best
|
||||||
|
Last update: 06:04:53 ago
|
||||||
|
Communities: 65002:6600
|
||||||
|
~~~
|
||||||
|
|
||||||
|
|
||||||
## Exemple de configuration « pour jouer »
|
## Exemple de configuration « pour jouer »
|
||||||
|
|
||||||
Prenons 2 machines, que l'on définit comme étant 2 routeurs pour 2 opérateurs différents, annonçant chacun un préfixe (ou bloc d'adresses).
|
Prenons 2 machines, que l'on définit comme étant 2 routeurs pour 2 opérateurs différents, annonçant chacun un préfixe (ou bloc d'adresses).
|
||||||
|
@ -232,9 +246,9 @@ RIB using 373M of memory
|
||||||
### Voir le détail concernant le routage vers une IP
|
### Voir le détail concernant le routage vers une IP
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
# bgpctl show rib detail 1.2.3.4
|
# bgpctl show rib detail 192.0.2.42
|
||||||
|
|
||||||
BGP routing table entry for 1.2.0.0/19
|
BGP routing table entry for 192.0.2.0/24
|
||||||
65002 43100 1234
|
65002 43100 1234
|
||||||
Nexthop 192.0.34.1 (via 192.0.34.1) from AS 65002 peer 1 (192.0.35.254)
|
Nexthop 192.0.34.1 (via 192.0.34.1) from AS 65002 peer 1 (192.0.35.254)
|
||||||
Origin IGP, metric 0, localpref 100, external, valid, best
|
Origin IGP, metric 0, localpref 100, external, valid, best
|
||||||
|
|
Loading…
Reference in a new issue