← Back to list

Configuration of E-BGP and I-BGP on Routers

The goal of this Demo lab is to configure e-bgp and i-bgp on routers in different and the same autonomous numbers. The lab covers…

Francis · 2025-03-05 09:34 · 0 claps · 3.3 min read paywalled
#bgp #ebgp #ospf #asn1 #interfaces
Open on Medium ↗
Wiki topics: AGT · AI Agents

Configuration of E-BGP and I-BGP on Routers

The goal of this Demo lab is to configure e-bgp and i-bgp on routers in different and the same autonomous numbers. The lab covers technologies; especially, OSPF, BGP and few others.

Network Topology

The network topology is given the diagram below|:

Network Topology of e-bgp and i-bgp

Network Topology of e-bgp and i-bgp

Method of Procedure in the Implementation of the Network Project

Configuration of the R1

R1#config t R1(config)#int g1/0 R1(config-if)#ip address 14.0.0.1 255.255.255.252 R1(config-if)#no shut R1(config-if)#! R1(config-if)#int g2/0 R1(config-if)#ip address 12.0.0.1 255.255.255.252 R1(config-if)#no shut R1(config-if)#! R1(config-if)#int g3/0 R1(config-if)#ip address 13.0.0.1 255.255.255.252 R1(config-if)#no shut R1(config-if)#! R1(config-if)#int lo0 R1(config-if)#ip address 1.1.1.1 255.255.255.255 R1(config-if)#! R1(config-if)#exit R1(config)#! R1(config)#router ospf 1 R1(config-router)#router-id 10.10.10.10 R1(config-router)#network 14.0.0.0 0.0.0.3 area 0 R1(config-router)#network 12.0.0.0 0.0.0.3 area 0 R1(config-router)#network 13.0.0.0 0.0.0.3 area 0 R1(config-router)#network 1.1.1.1 0.0.0.0 area 0 R1(config-router)#! R1(config-router)#router bgp 6500 R1(config-router)#neighbor 14.0.0.2 remote-as 6501 R1(config-router)#neighbor 2.2.2.2 remote-as 6500 R1(config-router)#neighbor 2.2.2.2 update-source lo0 R1(config-router)#neighbor 2.2.2.2 next-hop-self R1(config-router)#neighbor 3.3.3.3 remote-as 6500 R1(config-router)#neighbor 3.3.3.3 update-source lo0 R1(config-router)#neighbor 3.3.3.3 next-hop-self R1(config-router)#network 1.1.1.1 mask 255.255.255.255

Configuration of the R2

R2#config t R2(config)#int g1/0 R2(config-if)#ip address 23.0.0.1 255.255.255.252 R2(config-if)#no shut R2(config-if)#! R2(config-if)#int g2/0 R2(config-if)#ip address 12.0.0.2 255.255.255.252 R2(config-if)#no shut R2(config-if)#! R2(config-if)#int lo0 R2(config-if)#ip address 2.2.2.2 255.255.255.255 R2(config-if)#! R2(config-if)#exit R2(config)#! R2(config)#router ospf 1 R2(config-router)#router-id 20.20.20.20 R2(config-router)#network 23.0.0.0 0.0.0.3 area 0 R2(config-router)#network 12.0.0.0 0.0.0.3 area 0 R2(config-router)#network 2.2.2.2 0.0.0.0 area 0 R2(config-router)#! R2(config-router)#router bgp 6500 R2(config-router)#neighbor 1.1.1.1 remote-as 6500 R2(config-router)#neighbor 1.1.1.1 update-source lo0 R2(config-router)#neighbor 3.3.3.3 remote-as 6500 R2(config-router)#neighbor 3.3.3.3 update-source lo0 R2(config-router)#network 2.2.2.2 mask 255.255.255.255

Configuration of the R3

R3#config t R3(config)#int g1/0 R3(config-if)#ip address 23.0.0.2 255.255.255.252 R3(config-if)#no shut R3(config-if)#! R3(config-if)#int g3/0 R3(config-if)#ip address 13.0.0.2 255.255.255.252 R3(config-if)#no shut R3(config-if)#! R3(config-if)#int lo0 R3(config-if)#ip address 3.3.3.3 255.255.255.255 R3(config-if)#! R3(config-if)#exit R3(config)#! R3(config)#router ospf 1 R3(config-router)#router-id 30.30.30.30 R3(config-router)#network 23.0.0.0 0.0.0.3 area 0 R3(config-router)#network 13.0.0.0 0.0.0.3 area 0 R3(config-router)#network 3.3.3.3 0.0.0.0 area 0 R3(config-router)#! R3(config-router)#router bgp 6500 R3(config-router)#neighbor 1.1.1.1 remote-as 6500 R3(config-router)#neighbor 1.1.1.1 update-source lo0 R3(config-router)#neighbor 2.2.2.2 remote-as 6500 R3(config-router)#neighbor 2.2.2.2 update-source lo0 R3(config-router)#network 3.3.3.3 mask 255.255.255.255

Configuration of the R4

R4#config t R4(config)#int g1/0 R4(config-if)#ip address 14.0.0.2 255.255.255.252 R4(config-if)#no shut R4(config-if)#! R4(config-if)#int g2/0 R4(config-if)#ip address 45.0.0.1 255.255.255.252 R4(config-if)#no shut R4(config-if)#! R4(config-if)#int lo0 R4(config-if)#ip address 4.4.4.4 255.255.255.255 R4(config-if)#! R4(config-if)#exit R4(config)#! R4(config)#router ospf 2 R4(config-router)#router-id 40.40.40.40 R4(config-router)#network 45.0.0.0 0.0.0.3 area 1 R4(config-router)#network 4.4.4.4 0.0.0.0 area 1 R4(config-router)#! R4(config-router)#router bgp 6501 R4(config-router)#neighbor 14.0.0.1 remote-as 6500 R4(config-router)#neighbor 5.5.5.5 remote-as 6501 R4(config-router)#neighbor 5.5.5.5 update-source lo0 R4(config-router)#neighbor 5.5.5.5 next-hop-self R4(config-router)#network 4.4.4.4 mask 255.255.255.255

Configuration of the R5

R5#config t R5(config)#int g2/0 R5(config-if)#ip address 45.0.0.2 255.255.255.252 R5(config-if)#no shut R5(config-if)#! R5(config-if)#int lo0 R5(config-if)#ip address 5.5.5.5 255.255.255.255 R5(config-if)#! R5(config-if)#exit R5(config)#! R5(config)#router ospf 2 R5(config-router)#router-id 50.50.50.50 R5(config-router)#network 45.0.0.0 0.0.0.3 area 1 R5(config-router)#network 5.5.5.5 0.0.0.0 area 1 R5(config-router)#! R5(config-router)#router bgp 6501 R5(config-router)#neighbor 4.4.4.4 remote-as 6501 R5(config-router)#neighbor 4.4.4.4 update-source lo0 R5(config-router)#network 5.5.5.5 mask 255.255.255.255

Verification and Testing of End-to-End Connectivity

R1

ping from R1 to the destination IP: 4.4.4.4 sourcing traffic from the loopback ip:1.1.1.1 comes clean

ping from R1 to the destination ip: 5.5.5.5 sourcing traffic from the loopback ip:1.1.1.1 comes clean

trace the path of the traffic sourcing from 1.1.1.1 to the destination IP:5.5.5.5 terminates at the IP:45.0.0.2

State of the ebgp and ibgp Sessions between R1 and R4;R1 and R2; R1 and R3:

The ebgp and ibgp sessions are up and running


메타데이터
post_id
24dc70d8bf74
slug
configuration-of-e-bgp-and-i-bgp-on-routers-24dc70d8bf74
url
https://medium.com/@akwarifrancis/configuration-of-e-bgp-and-i-bgp-on-routers-24dc70d8bf74
canonical_url
https://medium.com/@akwarifrancis/configuration-of-e-bgp-and-i-bgp-on-routers-24dc70d8bf74
author_url
https://medium.com/@akwarifrancis
status
ok
fetched_at
2026-07-20 18:49:13