This 42 project is a simple implementation of BGP (Border Gateway Protocol) that allows you to simulate the routing of packets between autonomous systems (AS). The goal is to understand how BGP works and how it can be used to route packets between different networks.
The project is divided into three parts:
- Part 1: Creation of the host and router containers with an image of FRRouting and learning how GNS3 works.
- Part 2: Creation of the AS configuration files (VXLAN, bridge, etc...), and learning how to configure BGP in FRRouting.
- Part 3: Creation of the final topology, setup of route reflectors, hnowing what is the method of
BGP-EVPN-VXLAN
, configuration withvtysh
and adding a third host to the topology.
We will need A LOT OF DOCUMENTATION to understand what we are supposed to do, so we will try to explain everything in the Glozzzaire.md file.
Maybe I abused a bit, but we wanted to be sure that we understood everything. It's very complicated to understand BGP, normally a formation is required to understand it.
As you can see in the walktrhough in the part 2, we create an image of FRRouting, but you can use Quagga or GNU Zebra, but FRRouting may be more up to date and have more features and it's a fork of Quagga (and Quagga a fork of GNU Zebra). So we recommend using FRRouting, but you can use Quagga or GNU Zebra or another Internet routing protocol suite.
If you use FRRouting, you can see we build an image of it for Debian. Previously we build an image of FRRouting for Alpine but we have noticed that is not working properly with some commands (ipconfig
, vtysh
, etc...). Because Alpine has a deprecated version of Busybox
. And we switched to Debian because it is more stable and has a better support for FRRouting. So we recommend using Debian as the base image for FRRouting.
- P1 : Creation of the host and router containers with an image of FRRouting and learning how GNS3 works.
- P2 : Creation of the AS configuration files (VXLAN, bridge, etc...), and learning how to configure BGP in FRRouting.
- P3 : Creation of the final topology, setup of route reflectors, knowing what is the method of
BGP-EVPN-VXLAN
, configuration withvtysh
and adding a third host to the topology.
jbettini |
Noah (noalexan) |
Nimpô (mayoub) |