How to configure BGP - jwells24/Tech-Journal GitHub Wiki

How to Configure BGP on a Router

  • BGP is a routing protocol designed to be used between organizations, from one router to another far away. When configuring BGP, you are configuring it on each router that you want to communicate with each other. Below is an example of a BGP configuration. In the example below, our AS number is 5132. Remember, the AS number is the identifier of the organization in the BGP realm.

bgp

  • On the first line, we access the BGP interface on the router by stating router bgp, plus our given AS number. Next, we have to identify our neighbors, which are directly connected BGP enabled routers. Each neighbor is a directly connected BGP router, and we input the IP address of the port that our router is connected to on the neighboring router, as well as the neighbors given AS number.

  • Lastly, we input the networks that our organization is responsible for. This includes all networks in our organization, along with networks connecting routers. Keep in mind, a network can only be a part of ONE AS number, so you choose where each network lies. Don't advertise the same network on multiple BGP interfaces. After you have completed this, ensure your interfaces and connections are set, and you are done with BGP.