CiscoCCNPEnterprise NetworkingIntermediate26 min read

What Is IBGP vs EBGP in Networking?

Also known as: IBGP vs EBGP, BGP session types, BGP internal external, Cisco BGP tutorial, ENCOR BGP questions

Reviewed byJohnson Ajibi· Senior Network & Security Engineer · MSc IT Security
On This Page

Quick Definition

EBGP is used when two routers belonging to different companies or networks (called autonomous systems) talk to each other to share routing information. IBGP is used when routers within the same company or network talk to each other to share the routes they learned from outside. Think of EBGP as international communication between countries and IBGP as domestic communication within one country.

Must Know for Exams

The ENCOR 350-401 exam (Implementing and Operating Cisco Enterprise Network Core Technologies) includes BGP fundamentals as a key objective under the domain of Layer 3 technologies. The exam blueprint clearly states that candidates must understand BGP features, including the differences between EBGP and IBGP, BGP path selection, and basic BGP configuration.

In the exam, you will not be asked to configure a full BGP network from scratch in a simulation, but you will encounter multiple-choice questions and scenario-based questions that test your conceptual understanding. For example, you might be asked: "Which type of BGP session is used between routers in different autonomous systems?" or "What is a key difference between EBGP and IBGP regarding the NEXT_HOP attribute?" The exam expects you to know that EBGP changes the next-hop attribute to the IP address of the EBGP peer, while IBGP does not change the next-hop attribute by default.

Another typical exam objective is understanding BGP synchronization. Although BGP synchronization (old Cisco IOS rule that IBGP routes must also be present in the IGP) is not required in modern networks and is disabled by default, the exam may test your knowledge of why it existed and why it is not needed anymore. The ENCOR exam also covers BGP path selection criteria in detail. You must know that the highest weight (locally significant), highest LOCAL_PREF, locally originated routes, shortest AS_PATH, and lowest MED are among the steps. The exam may ask you to order these steps or determine which route will be preferred in a given scenario.

Additionally, the CCNP Enterprise certification also includes the ENARSI exam (300-410) which goes deeper into BGP, including advanced features like route reflectors, confederations, and BGP communities. But for ENCOR, the focus is on foundational understanding. The exam expects you to know that IBGP requires a full mesh of TCP connections (or route reflectors) because of the split horizon rule, while EBGP does not have that restriction.

Finally, the exam may test troubleshooting scenarios. For instance, you might see a question where an IBGP session is not forming. The answer could involve checking that the BGP router ID is reachable via the IGP, or that the TTL is set correctly for multihop sessions. Understanding the default behavior of TTL (1 for EBGP, 255 for IBGP) is a common trick question.

Simple Meaning

Imagine you live in a neighborhood where each house is its own small country. These houses need to send mail to each other, but they don't know how to get the mail to the right house. In this neighborhood, the post offices of each house talk to each other using a special system. This system has two flavors. The first flavor is called EBGP, which stands for External Border Gateway Protocol. When the post office of one house talks to the post office of another house, they use EBGP. They share information like "I can send mail to house A, house B, and house C." This is like a translator talking between two different countries. The second flavor is called IBGP, which stands for Internal Border Gateway Protocol. Inside one house, there might be many smaller post office branches. These branches need to share the same information, so they talk to each other using IBGP. They say "Hey, I heard from the main post office that we can reach house X, so now you know too."

Now let us make this more concrete. In the real internet, an autonomous system (AS) is like a big organization or a company that owns a bunch of routers. For example, Google has its own AS, and your internet service provider (ISP) like Comcast or AT&T has its own AS. When Google wants to tell your ISP how to reach Google's servers, they use EBGP. This is because Google and your ISP are different autonomous systems. But inside Google's own network, all the routers need to know the same routes. Google uses IBGP to share those routes among all its internal routers.

Why do we need both? Because the rules are different. EBGP has features that prevent loops and help networks trust each other. IBGP has a special rule: it does not advertise routes learned from one IBGP neighbor to another IBGP neighbor. This means if you have five routers inside one company doing IBGP, they all must connect to each other in a full mesh or use a route reflector to share routes. EBGP does not have this restriction. EBGP also uses a different time-to-live (TTL) value by default: EBGP sets TTL to 1, meaning it only talks to directly connected neighbors, while IBGP sets TTL to 255, so it can talk to routers multiple hops away inside the network.

Full Technical Definition

BGP version 4 (RFC 4271) is the standard exterior gateway protocol used for inter-domain routing on the internet. It operates over TCP port 179 and is divided into two session types based on the relationship between the peers: External BGP (EBGP) and Internal BGP (IBGP).

An EBGP session is established between routers that belong to different autonomous systems. The most common configuration is a direct, physically connected link between the two peers. By default, EBGP sets the Time-to-Live (TTL) in the IP header to 1, which prevents the session from being established over multiple hops unless explicitly configured with the ebgp-multihop command. EBGP is designed to be resilience and loop-free. It achieves this using the AS_PATH attribute. When a router advertises a route via EBGP, it prepends its own autonomous system number (ASN) to the AS_PATH list. If a router receives a route update that already contains its own ASN in the AS_PATH, it discards the update to prevent routing loops. EBGP also implements route validation: the NEXT_HOP attribute must be reachable via an IGP (like OSPF or EIGRP) or a static route before the route is installed in the routing table. EBGP neighbors are typically configured with a password (MD5 authentication) for security.

An IBGP session is established between routers within the same autonomous system. Unlike EBGP, IBGP peers do not need to be directly connected physically. The TTL is set to 255 by default, allowing the session to traverse intermediate routers. This is crucial because inside a large enterprise network, routers may be multiple hops apart. The key distinguishing rule of IBGP is that a router will not advertise a route learned from one IBGP peer to another IBGP peer (the split horizon rule). This rule exists to prevent routing loops within the AS because IBGP updates do not modify the AS_PATH attribute (they do not prepend the local ASN). Because of this rule, to ensure all routers in the AS have complete routing information, IBGP requires a full mesh of TCP connections between all routers that speak IBGP. In a network with n routers, this means n(n-1)/2 sessions. To scale, network engineers use route reflectors or confederations. Route reflectors allow certain routers to advertise routes to other IBGP peers, reducing the number of sessions.

Both EBGP and IBGP carry the same path attributes (like LOCAL_PREF, MED, AS_PATH, NEXT_HOP), but they behave differently with respect to these attributes. For example, the LOCAL_PREF attribute is only propagated within the AS, not across EBGP links. The MULTI_EXIT_DISC (MED) attribute is exchanged between ASes via EBGP. Understanding these behaviors is critical for BGP path selection, which influences how traffic enters and exits a network.

Real-Life Example

Think of a large office building that houses three different companies on different floors. The building has a main lobby with a reception desk. Each company on each floor has its own internal mailroom.

EBGP is like the conversation between the reception desk (which represents the border of the building) and the external postal trucks that arrive from the city. The postal truck is from a different company (the city post office). The receptionist tells the truck driver: "This building can accept packages for floors 1, 2, and 3." The truck driver says: "I can deliver packages from the city to this building." They communicate using a shared set of rules (EBGP). The receptionist checks the truck driver's ID to ensure they are from a legitimate source (ASN validation). The truck driver cannot deliver packages to the internal mailrooms directly because those are inside the building.

IBGP is like the conversation between the internal mailrooms of each company on different floors. The mailroom on floor 1 knows that the receptionist said the building can accept packages from the city. The mailroom on floor 1 needs to tell the mailroom on floor 2: "Hey, we can receive packages from the city, so if you get packages for the city, send them to me." But the mailroom on floor 1 cannot simply tell floor 2's mailroom and then have floor 2 tell floor 3, because IBGP does not allow that (split horizon). Instead, floor 1 must tell floor 2 directly, and floor 1 must also tell floor 3 directly, and floor 2 must tell floor 3 directly. That is the full mesh requirement.

If a new company moves into floor 4, a new mailroom is created. That new mailroom must establish a direct communication channel (IBGP session) with all the other mailrooms (floor 1, 2, and 3). This becomes messy quickly. To solve this, the building can hire a mailroom manager (a route reflector). The manager talks to all mailrooms. Each mailroom only talks to the manager. The manager then redistributes the information to everyone else. This is how route reflection helps scale IBGP in large networks.

Why This Term Matters

Understanding the difference between IBGP and EBGP is critical for anyone designing, managing, or troubleshooting enterprise and service provider networks. BGP is the protocol that powers the internet, and almost every large organization connects to the internet or to partners using BGP. Misconfiguring the type of BGP session can cause routing black holes, suboptimal traffic flows, or even complete loss of connectivity.

In real IT work, when you configure BGP on a router that is at the edge of your network (often called a border router), you will use EBGP to connect to your internet service provider or to a partner organization. This is where you negotiate which IP address ranges (prefixes) your organization will advertise to the world and which prefixes you will accept from others. The EBGP session is the gateway between your internal network and the outside world. If you set up this session incorrectly, such as forgetting to filter routes, you could accidentally advertise private IP addresses or accept routes from untrusted sources, leading to security vulnerabilities or network instability.

Inside your organization, you use IBGP to distribute the routes learned from the internet to all other routers. This ensures that a router in a remote office knows how to send traffic to the internet through the correct border router. Without IBGP, each internal router would need to have a default route pointing to the border router, which is less flexible and can cause asymmetric routing issues. IBGP also allows you to influence traffic flows using path attributes like LOCAL_PREF and MED, which gives administrators control over which internet link is preferred for outgoing or incoming traffic.

In cybersecurity contexts, BGP hijacking attacks exploit EBGP trust relationships. Attackers can advertise illegitimate routes via EBGP, causing traffic to be redirected. Understanding IBGP and EBGP helps network engineers implement security measures like prefix filtering, route authentication, and Resource Public Key Infrastructure (RPKI) to protect the network.

For certification candidates, especially for the Cisco CCNP Enterprise certification (ENCOR 350-401), this topic is core. The exam specifically tests your ability to distinguish between EBGP and IBGP, configure both, and troubleshoot common issues like next-hop reachability and BGP table inconsistencies.

How It Appears in Exam Questions

In certification exams, IBGP and EBGP appear in several question formats. The most common is the direct knowledge check: "What is the difference between IBGP and EBGP?" or "Which statement about IBGP is true?" These questions often have one clearly correct answer and three distractors that play on common misconceptions. For example, a distractor might say "IBGP requires directly connected neighbors" which is false because IBGP can work over multiple hops.

Scenario-based questions are also frequent. A typical scenario presents a network diagram with three routers: R1 (AS 100), R2 (AS 200), and R3 (AS 200). R1 and R2 are connected via a serial link. R2 and R3 are also connected. The question might ask: "Which BGP sessions should be configured to ensure all routers have full routing information, assuming no route reflectors are used?" The correct answer would require an EBGP session between R1 and R2, and an IBGP session between R2 and R3. But a distractor might suggest an EBGP session between R1 and R3, which would work but is not the best practice.

Configuration-based questions may ask you to identify the error in a BGP configuration. For example, the show run output might show neighbor 10.0.0.2 remote-as 100 for a session between two routers that are actually in different ASes. The question would ask: "Why is the BGP session not established?" The answer: the remote-as is the same as the local AS, but they are in different ASes, so it should be EBGP.

Troubleshooting questions are another important pattern. A common issue is that an IBGP route is not appearing in the routing table. The correct analysis involves checking the NEXT_HOP attribute. If the next-hop IP (the IP of the EBGP peer) is not reachable via an IGP route, the IBGP route will not be installed. The exam might ask: "Why is router R2 not seeing the BGP route from R1?" The answer: the next hop (R1's serial interface IP) is not in the routing table of R2 via OSPF or EIGRP.

Finally, advanced questions may combine BGP with other protocols. For example, a question might describe a scenario where IBGP is used with OSPF as the IGP, and ask about route redistribution or administrative distance. The exam tests your ability to see how BGP interacts with IGPs.

Study encor

Test your understanding with exam-style practice questions.

Practise

Example Scenario

Your company has two offices: one in New York (AS 65001) and one in London (AS 65002). Both offices need to talk to each other over the internet using BGP.

Scenario: The New York office has a single router called NY-R1. The London office has a single router called LD-R1. They are connected via a point-to-point link across a private WAN. Both routers are configured to run BGP.

If they are in different autonomous systems (AS 65001 and AS 65002), the BGP session between them is an EBGP session. NY-R1 will advertise its local network (say 192.168.1.0/24) to LD-R1 via EBGP. LD-R1 will advertise its local network (say 10.10.10.0/24) to NY-R1 via EBGP. Both routers will see the routes in their BGP table. However, NY-R1 will not automatically install the route for 10.10.10.0/24 into its routing table unless the next hop (the IP address of LD-R1's interface) is reachable. In a simple point-to-point link, this is usually fine because the connected route is present.

Now, imagine the New York office gets a second router called NY-R2, which is also in AS 65001. NY-R1 learns the route to London via EBGP (10.10.10.0/24). NY-R1 now needs to share this route with NY-R2 so that NY-R2 can also send traffic to London. Since NY-R1 and NY-R2 are in the same AS, they must use IBGP. NY-R1 establishes an IBGP session with NY-R2. NY-R1 sends the BGP route to NY-R2. But wait: there is a catch. The next-hop attribute for that route is still set to the IP address of LD-R1 (the EBGP peer). NY-R2 must be able to reach LD-R1's IP address via its routing table (for example, via a static route or an IGP like OSPF). If NY-R2 does not have a route to LD-R1's interface IP, the route for 10.10.10.0/24 will be in the BGP table of NY-R2 but will not be installed in the routing table. This is a classic real-world mistake.

To fix this, you can either ensure that NY-R2 has a route to LD-R1 via an IGP, or you can configure next-hop-self on the IBGP session from NY-R1 to NY-R2. The command "neighbor x.x.x.x next-hop-self" tells NY-R1 to change the next-hop attribute to its own IP address when advertising routes to NY-R2. This solves the reachability problem. This scenario shows exactly how EBGP and IBGP interact in a multi-router network.

Common Mistakes

Thinking that IBGP requires directly connected neighbors just like EBGP does.

EBGP uses a TTL of 1 by default, which restricts peers to directly connected interfaces. IBGP uses a TTL of 255, so it can work across multiple router hops. IBGP only requires TCP reachability between peers, not physical adjacency.

Remember that IBGP peers can be anywhere in the network as long as they have IP connectivity (via an IGP or static route). Always use the neighbor <ip> remote-as <same-as> command without worrying about direct links.

Forgetting to configure next-hop-self on IBGP sessions when the EBGP next hop is not reachable via the IGP.

If the IGP does not carry the external next-hop IP, the IBGP router will not install the route because the next hop is unreachable. This results in missing routes in the routing table, even though the BGP table has them.

Configure the command neighbor <ip> next-hop-self under the IBGP neighbor configuration on the border router. This ensures the next hop is the border router's own IP, which is reachable via the IGP.

Believing that IBGP automatically advertises routes learned from one IBGP peer to another IBGP peer, similar to how OSPF works.

IBGP has a split-horizon rule: routes learned from an IBGP peer are not advertised to another IBGP peer. This prevents routing loops because IBGP does not modify the AS_PATH. If you need to propagate routes among IBGP peers, you must use a route reflector or a full mesh.

Understand that IBGP requires either a full mesh of sessions (every router talks to every other router) or deployment of route reflectors to overcome the split-horizon restriction.

Assuming that EBGP and IBGP use the same administrative distance by default.

In Cisco IOS, EBGP routes have an administrative distance of 20, while IBGP routes have an administrative distance of 200. This means that if a router learns the same route from both EBGP and an IGP like OSPF (AD 110), the EBGP route is preferred over the OSPF route, but the IBGP route is less preferred than the OSPF route.

Memorize the default administrative distances: EBGP is 20, IBGP is 200. This is crucial for understanding route selection when a router learns a prefix from multiple sources.

Configuring an EBGP session with the same AS number on both ends by mistake.

If both routers are configured with the same AS number, the BGP session will not establish because BGP expects the remote AS to be different from the local AS for EBGP. The session will remain in an idle state or active state, and a log message will indicate a peer with the same AS number.

Always double-check the AS numbers on both routers. Use the show ip bgp summary command to verify that the neighbor state is established. If it is not, check the AS numbers.

Exam Trap — Don't Get Fooled

The exam may present a scenario where two routers are configured with EBGP, but the EBGP session is not forming because the routers are not directly connected. The trap is that the candidate thinks EBGP always requires a directly connected link, but the real issue could be that the TTL is set to 1 by default. Always read the topology carefully.

If two routers in different ASes are separated by one or more intermediate routers, the EBGP session is still possible if you configure the ebgp-multihop command. Do not assume that a non-directly-connected BGP session is always IBGP. Look at the AS numbers first: if they are different, it is EBGP regardless of the physical topology.

Commonly Confused With

IBGP vs EBGPvsOSPF vs BGP

OSPF is an Interior Gateway Protocol (IGP) used within a single autonomous system to calculate the best path based on link state. BGP is an Exterior Gateway Protocol (EGP) used between autonomous systems, relies on path vector logic, and uses attributes like AS_PATH. OSPF does not have session types like IBGP and EBGP; it just has areas.

If you want to route traffic inside your company campus, use OSPF. If you want to exchange routes with your internet service provider, use EBGP. If you want to distribute those ISP routes inside your company, use IBGP.

IBGP vs EBGPvsEIGRP vs BGP

EIGRP is a Cisco-proprietary advanced distance vector protocol used as an IGP. It supports unequal-cost load balancing and uses a composite metric. BGP is a path-vector protocol standardized by IETF, used for inter-AS routing, and uses policy-based path selection. EIGRP has no concept of EBGP/IBGP because it operates only within one AS.

In a Cisco-only network, you might use EIGRP to route between branch offices inside your organization. But when you connect to the internet, you still need BGP to talk to the ISP, and you will use IBGP to distribute the internet routes into your EIGRP network.

IBGP vs EBGPvsRoute Redistribution vs BGP Sessions

Route redistribution is the process of importing routes from one routing protocol into another (e.g., OSPF into BGP). This is different from using IBGP or EBGP sessions, which are direct BGP peerings between routers. Redistribution uses the redistribute command, while BGP sessions use the neighbor command.

You do not redistribute routes into BGP to create a BGP session. You create a BGP session (EBGP or IBGP) by configuring a neighbor relationship. Redistribution is used to inject IGP routes into the BGP table (e.g., to advertise internal networks to an ISP via EBGP).

Step-by-Step Breakdown

1

Define the Autonomous System

An autonomous system (AS) is a single organization or network administered by one entity, identified by a unique ASN (1-65535). EBGP is used between two different ASes. IBGP is used within the same AS. This is the most fundamental step: look at the AS numbers to decide which type of session is needed.

2

Establish TCP Reachability

Both EBGP and IBGP run over TCP port 179. Before a BGP session can form, the two routers must be able to reach each other's IP address via IP routing. For EBGP, this is often a directly connected link, but with ebgp-multihop it can be indirect. For IBGP, the routers must have a route to each other via the IGP or a static route.

3

Configure the BGP Neighbor Relationship

Use the command 'router bgp <ASN>' to enter BGP configuration mode. Then use 'neighbor <IP> remote-as <ASN>'. For EBGP, the remote-as is different from the local AS. For IBGP, the remote-as is the same as the local AS. This single command determines the session type.

4

Understand the Split-Horizon Rule for IBGP

Once the session is up, IBGP enforces a rule that routes learned from one IBGP peer cannot be advertised to another IBGP peer. This is to prevent loops. To propagate routes across multiple IBGP routers, you must either create a full mesh of IBGP sessions or use route reflectors. EBGP does not have this restriction.

5

Handle the Next-Hop Attribute

In EBGP, the router sets the next-hop attribute to its own IP address when advertising routes to an EBGP peer. When those routes are passed to IBGP peers, the next-hop remains the same (the external router's IP). If IBGP peers cannot route to that external IP, the route is not installed. The command 'neighbor <IP> next-hop-self' on the IBGP session changes the next hop to the local router's IP, fixing this issue.

6

Verify the BGP Session and Routes

Use 'show ip bgp summary' to check that the session state is 'established'. Use 'show ip bgp' to see the BGP table. Use 'show ip route bgp' to see which BGP routes are installed in the routing table. Compare the two tables to diagnose issues like next-hop unreachability or administrative distance problems.

Practical Mini-Lesson

In practice, configuring IBGP and EBGP correctly is a foundational skill for any network engineer working with BGP. Let us walk through a real-world implementation step by step.

You have an enterprise network with two border routers (BR1 and BR2) connected to two different ISPs (ISP-A and ISP-B). Your internal network has an IGP (OSPF) running between all internal routers. The goal is to have all internal routers (including BR1 and BR2) know how to reach internet destinations, and to control which ISP is used for outgoing traffic.

First, you configure EBGP on BR1 towards ISP-A. On BR1, you enter 'router bgp 65001' (assuming your AS is 65001). Then you add 'neighbor 10.0.0.1 remote-as 65100' (ISP-A's AS). Similarly, on BR2, you configure 'neighbor 10.0.0.5 remote-as 65200' for ISP-B. These are EBGP sessions. Both border routers receive a full internet routing table from their respective ISPs.

Now, you need to distribute these internet routes to all internal routers inside AS 65001. You could redistribute the BGP routes into OSPF, but that is not recommended because OSPF cannot handle the large number of routes (over 900,000 routes). Instead, you run IBGP on every internal router. This means you configure 'router bgp 65001' on each internal router and add 'neighbor BR1 (or BR2) remote-as 65001' as an IBGP neighbor. You also need IBGP between BR1 and BR2 so they can exchange the routes they learned from their respective ISPs.

However, there is a challenge. The internal routers in the core of the network may not have a route to the EBGP next hops (10.0.0.1 or 10.0.0.5) via OSPF because those are external IPs. On BR1 and BR2, you configure 'neighbor <internal-router-IP> next-hop-self' so that when they advertise internet routes to internal routers, the next hop is set to the border router's own IP (which is reachable via OSPF). This ensures the internal routers install the routes.

Another practical consideration is redundancy and path selection. You want traffic from internal routers to prefer ISP-A for certain prefixes. You can set a higher LOCAL_PREF on BR1 for the routes learned from ISP-A. Because LOCAL_PREF is propagated within the AS via IBGP, all internal routers will prefer those routes and send traffic to BR1. If BR1 fails, the routes from ISP-B become active.

What can go wrong? A common problem is that the IBGP session between BR1 and an internal router fails because of a missing route between them. If the IGP does not have a route to the internal router's loopback (commonly used for IBGP), the TCP connection cannot be established. The fix is to ensure the IGP is covering the loopback IP of all IBGP peers. Another issue is BGP table not being synchronized with the IGP, but this is disabled by default in modern IOS versions.

This practical scenario connects to broader IT concepts like high availability (multiple ISPs), traffic engineering (using BGP attributes), and security (filtering which routes are accepted from ISPs). As a network professional, mastering IBGP and EBGP allows you to design resilient, policy-driven networks that give your organization control over how it connects to the internet.

Memory Tip

EBGP is External, so it is the 'gateway' to the outside world: it uses TTL 1 (one hop), changes AS_PATH, and prefers routes with AD 20. IBGP is Internal, so it stays 'inside' the AS: it uses TTL 255 (many hops), does not modify AS_PATH, and must be fully meshed.

Covered in These Exams

Related Glossary Terms

Frequently Asked Questions

Can you run IBGP without an IGP?

Yes, you can use static routes to provide reachability between IBGP peers, but using an IGP like OSPF or EIGRP is much more scalable and dynamic. Without an IGP, you would need to configure static routes for every IBGP peer's IP address.

What is the default administrative distance of EBGP and IBGP on Cisco routers?

EBGP routes have a default administrative distance of 20. IBGP routes have a default administrative distance of 200. This means EBGP routes are more trustworthy than OSPF (110) or EIGRP (90), but IBGP routes are less trustworthy than most IGPs.

Do I need a full mesh for IBGP if I have only two routers in the AS?

No. With only two routers, one IBGP session is sufficient. The full mesh requirement applies only when you have three or more IBGP speakers, because of the split horizon rule.

Why does EBGP use TTL=1 by default?

The default TTL of 1 for EBGP is a security measure. It ensures that EBGP sessions can only be established with directly connected neighbors. This prevents potential attacks from remote routers pretending to be EBGP peers.

Can I use the same AS number for multiple IBGP sessions?

Yes. IBGP sessions use the same AS number on both ends. That is what makes them internal. You must use the same local AS number for all routers within your organization when configuring IBGP.

What happens if I forget to configure next-hop-self on an IBGP session?

If the EBGP next hop is not reachable via the IGP, the IBGP router will not install the BGP route in its routing table. The route appears in the BGP table but not in the IP routing table. You must ensure next-hop reachability, either by injecting the next hop into the IGP or by using next-hop-self.

Is BGP always used on the internet?

Yes, BGP is the only protocol used between autonomous systems on the global internet. Internet service providers and large organizations all use EBGP to exchange routing information. IBGP is used inside those organizations to distribute internet routes.

Summary

IBGP and EBGP are two sides of the same coin in BGP routing, differentiated primarily by the autonomous system relationship between the peers. EBGP operates between different ASes, typically on directly connected links, using a TTL of 1, and is responsible for inter-domain routing on the internet. IBGP operates within a single AS, uses a TTL of 255 for multihop sessions, and is used to distribute external routes internally.

The split-horizon rule in IBGP requires either a full mesh of sessions or route reflectors to ensure all routers receive the same routing information. Understanding these differences is not just theoretical: it directly influences how you design redundant, secure, and policy-driven networks. For certification exams like Cisco ENCOR, mastering the behavior of next-hop handling, TTL defaults, administrative distance, and the need for route reflectors is critical.

Common mistakes include assuming IBGP requires direct connections, forgetting next-hop-self, and misconfiguring AS numbers. By recognizing these traps, you can confidently tackle BGP questions and apply this knowledge in real network engineering roles.