Montez un peering BGP entre deux routeurs virtuels et échangez des routes.
objectifs d’apprentissage
- Configurer BGP minimal.
- Échanger un préfixe.
- Observer la table BGP.
prérequis
- Deux VM ou namespaces.
- FRRouting ou BIRD installé.
notions clés
- ASN.
- neighbor.
- route reflector (aperçu).
démonstration guidée
étape 1
FRRouting: config minimal de peering (concept).
vtysh -c 'conf t' -c 'router bgp 65001' -c 'neighbor 192.0.2.2 remote-as 65002' -c 'address-family ipv4 unicast' -c 'network 198.51.100.0/24' -c 'end' || true
vtysh -c 'show ip bgp summary' || true
étape 2
Annoncer un préfixe et vérifier la réception côté pair.
vtysh -c 'show ip bgp' 2>/dev/null | sed -n '1,30p' || true
exercice
Ajoutez un route reflector et trois clients; vérifiez les routes iBGP.
correction
Schéma iBGP (concept).
- RR ASN 65000, clients 65000
- Neighbors iBGP full-mesh remplacé par RR
quiz éclair
- Quel identifiant s’échange au démarrage d’une session BGP ?
- a) ASN local et distant
- b) Route distinguisher
- c) TTL minimum