BGP Packet Tracer Lab - Zacham17/my-tech-journal GitHub Wiki
Border Gateway Protocol(BGP) is a routing protocol where information is shared between autonomous systems. On a Cisco router, the following command syntaxes can be used for BGP configuration:
- To enter BGP configuration, use the syntax
(config)#router bgp <AS_NUMBER_for_Router>
- While in BGP Configuration, neighbor devices can be configured using the syntax,
(router-config)#neighbor <IP_OF_PEER> remote-as <NEIGHBOR_AS_NUMBER>
- To configure which networks the device you are configuring is in charge of, use the syntax:
(router-config)#network <NETWORK IP> mask <NETMASK>
In this lab, I configured BGP in a packet tracer network. I configured network interfaces of each router accordingly. An image of the network can be seen below.
I configured each router in this lab to use BGP. I used the following guidelines to determine which routers would be in charge of which networks:
- 192.168.1.0/30 is in AS 1010
- 192.168.3.0/30 and 192.168.4.0/30 are in AS 2054
- On the BTV Router, I configured a static route to send all outgoing traffic to the Vermont ISP router using the command,
(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.1
- I also sent the default route to other routers in the area, using the following commands:
(config)#router ospf 1
(router-config)#default-information originate
- I configured BGP on the BTV router, in accordance with the packet tracer file, using the following commands:
(config)#router bgp 3033
(router-config)#neighbor 192.168.2.1 remote-as 1010
(router-config)#network 192.168.10.0 mask 255.255.255.0
(router-config)#network 172.16.0.0 mask 255.255.255.252
- I also advertised all of the Foster 202 Co routes using the command
(router-config)#redistribute ospf 1
- I configured BGP on the Vermont ISP router, in accordance with the packet tracer file, using the following commands:
(config)#router bgp 1010
(router-config)#neighbor 192.168.1.2 remote-as 2054
(router-config)#neighbor 192.168.2.2 remote-as 3033
(router-config)#network 192.168.1.0 mask 255.255.255.252
(router-config)#network 192.168.2.0 mask 255.255.255.252
- I configured BGP on the Pacific ISP router, in accordance with the packet tracer file, using the following commands:
(config)#router bgp 2054
(router-config)#neighbor 192.168.1.1 remote-as 1010
(router-config)#neighbor 192.168.3.2 remote-as 34908
(router-config)#neighbor 192.168.4.2 remote-as 5132
(router-config)#network 192.168.3.0 mask 255.255.255.252
(router-config)#network 192.168.4.0 mask 255.255.255.252
- I configured BGP on the Partner Company router, in accordance with the packet tracer file, using the following commands:
(config)#router bgp 34908
(router-config)#neighbor 192.168.3.1 remote-as 2054
(router-config)#network 10.15.6.0 mask 255.255.255.0
- I configured BGP on the Customer Company router, in accordance with the packet tracer file, using the following commands:
(config)#router bgp 5132
(router-config)#neighbor 192.168.4.1 remote-as 2054
(router-config)#network 10.200.24.0 mask 255.255.255.0