BGP (Border Gateway Protocol) is the backbone of the internet, enabling networks to communicate and exchange routing information. It allows routers to determine the best path for forwarding data between different networks, known as Autonomous Systems (ASes).
There are two types of BGP:
In this lesson, we’ll configure iBGP between two routers in the same Autonomous System (AS). Using AS 2350, Router0 will advertise the networks 50.50.50.0/24 and 70.70.0.0/16, and Router1 will receive these routes through the iBGP session and install them into its routing table.

Assign IP addresses to interfaces:
Configure iBGP:
Router0# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router0(config)# router bgp 2350 Router0(config-router)# neighbor 192.168.86.40 remote-as 2350Router0 is running BGP in AS 2350. It establishes an iBGP peering with the neighbor at 192.168.86.40 and advertises two networks—50.50.50.0/24 and 70.70.0.0/16—into the BGP domain.
Router0(config-router)# network 50.50.50.0 255.255.255.0
Router0(config-router)# network 70.70.70.0 255.255.0.0
Router0(config-router)# exit
Router0(config)# end
Router0#
Assign IP addresses to interfaces:
Configure iBGP:
Router1# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router1(config)# router bgp 2350
Router1(config-router)# neighbor 192.168.86.45 remote-as 2350
Router1(config-router)# exit
Router1(config)# end
Router1#
Router1 is running BGP in AS 2350 and is set up to form an iBGP peering with the router at 192.168.86.45. Unlike Router0, it does not advertise any networks into BGP here—its only role is to establish the iBGP session.
📝 Note:
This configuration assumes that synchronization and auto-summary are disabled.
If the BGP session is established but routes are not behaving as expected, add the following commands under the BGP configuration on both routers:
See if you can advertise Loopback1 from both devices.
Verify your configuration using the following commands:
We will dig deeper into BGP verification in the next lesson.
The lab is available for download from this link. (minimum requirement: version 2.5)