In the previous lesson, R4 resolved the next-hop issue and installed 192.168.1.0/24.
Now, you need to connect the second customer in AS 65003 and test end-to-end connectivity across your provider network.Connecting Customer 2
Start on R5 in AS 65003.
Configure eBGP toward R4 and advertise its local LAN 192.168.2.0/24:
Figure 1 – Full topology with interfaces
R5# configure terminal R5(config)# router bgp 65003 R5(config-router)# bgp router-id 5.5.5.5 R5(config-router)# neighbor 10.0.45.1 remote-as 65002 R5(config-router)# network 192.168.2.0 mask 255.255.255.0 R5(config-router)# endNow, configure R4 to accept the eBGP session and set itself as the next hop toward R2:
R4# configure terminal R4(config)# router bgp 65002 R4(config-router)# neighbor 10.0.45.2 remote-as 65003 %BGP-5-ADJCHANGE: neighbor 10.0.45.2 Up R4(config-router)# neighbor 2.2.2.2 next-hop-self R4(config-router)# endVerify the BGP table on R2:
R2# show ip bgp <output omitted> Network Next Hop Metric LocPrf Weight Path *> 192.168.1.0 10.0.12.1 0 0 65001 i *>i 192.168.2.0 4.4.4.4 0 100 0 65003 iR2 and R4 both hold routes for both customers.
Edge configuration is complete.Answer the question below
Which address is the next hop for 192.168.2.0/24 on R2?
End-to-End Traffic Failure
Test traffic forwarding from PC1 (192.168.1.0/24) toward PC2 (192.168.2.0/24):

Figure 2 – The packet is dropped on R3
C:\>ping 192.168.2.10 Pinging 192.168.2.10 with 32 bytes of data: Request timed out. Request timed out. Request timed out. Request timed out. Ping statistics for 192.168.2.10: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),The ping fails.
The packet leaves R1, crosses R2, and reaches R3. Then, R3 drops it.
The BGP Black Hole
Check the routing table on R3:

Figure 3 – R3 has no BGP route
R3# show ip route 192.168.2.0 % Network not in tableR3 runs OSPF, so it knows every internal loopback and transit link.
However, R3 does not run BGP.>The iBGP session between R2 and R4 travels through R3 as standard TCP traffic.
R3 routes the TCP control packets, but because it lacks BGP customer routes, it drops incoming customer data packets.R3 is a BGP Black Hole.
To fix this issue, you must bring R3 into the iBGP topology.Answer the question below
Which provider router has no BGP route?
To eliminate the black hole, R3 must learn customer prefixes by joining the iBGP topology.
Configuring Core iBGP Sessions
Set up neighbor relationships between R3 and both edge routers.

Figure 4 – iBGP sessions R2–R3 and R3–R4
First, open the session to R3 on R2:
R2# configure terminal R2(config)# router bgp 65002 R2(config-router)# neighbor 3.3.3.3 remote-as 65002 R2(config-router)# neighbor 3.3.3.3 update-source loopback0 R2(config-router)# neighbor 3.3.3.3 next-hop-self R2(config-router)# endNext, configure R3 toward both edge routers (R2 and R4):
R3# configure terminal R3(config)# router bgp 65002 R3(config-router)# bgp router-id 3.3.3.3 R3(config-router)# neighbor 2.2.2.2 remote-as 65002 %BGP-5-ADJCHANGE: neighbor 2.2.2.2 Up R3(config-router)# neighbor 2.2.2.2 update-source loopback0 R3(config-router)# neighbor 4.4.4.4 remote-as 65002 R3(config-router)# neighbor 4.4.4.4 update-source loopback0 R3(config-router)# endFinally, complete the peering on R4 toward R3:
R4# configure terminal R4(config)# router bgp 65002 R4(config-router)# neighbor 3.3.3.3 remote-as 65002 %BGP-5-ADJCHANGE: neighbor 3.3.3.3 Up R4(config-router)# neighbor 3.3.3.3 update-source loopback0 R4(config-router)# neighbor 3.3.3.3 next-hop-self R4(config-router)# endVerify neighbor status on R3:
R3# show bgp ipv4 unicast summary <output omitted> Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 2.2.2.2 4 65002 6 5 3 0 0 00:01:02 1 4.4.4.4 4 65002 6 5 3 0 0 00:00:48 1Both sessions are active.
R3 received 192.168.1.0/24 from R2 and 192.168.2.0/24 from R4.
Answer the question below
How many prefixes does R3 receive from each neighbor?
BGP Table on R3
Each edge sends R3 the one customer it learned over eBGP.
Follow 192.168.2.0/24 from R5 into the core.
Figure 5 – 192.168.2.0/24 reaches R3
R3# show ip bgp <output omitted> Network Next Hop Metric LocPrf Weight Path *>i 192.168.1.0 2.2.2.2 0 100 0 65001 i *>i 192.168.2.0 4.4.4.4 0 100 0 65003 iR3 now has both customers, each with a next hop it can resolve through OSPF.
The iBGP Split-Horizon Rule
Check if R3 relays 192.168.2.0/24 to R2:

Figure 6 – R3 does not re-advertise to R2
R3# show ip bgp 192.168.2.0 BGP routing table entry for 192.168.2.0/24, version 3 Paths: (1 available, best #1, table default) Not advertised to any peer 65003 4.4.4.4 (metric 2) from 4.4.4.4 (4.4.4.4) Origin IGP, metric 0, localpref 100, valid, internal, bestLook at the status line: Not advertised to any peer.
R3 learned 192.168.2.0/24 from R4 over iBGP.
By design, a router never re-advertises an iBGP-learned route to another iBGP peer.Because the AS-Path attribute does not change inside an Autonomous System, BGP cannot use it to detect internal loops.
To prevent routing loops, iBGP strictly blocks route relaying between internal peers.Answer the question below
Which peer type never relays a route to another peer of the same type?
Because the iBGP split-horizon rule prevents R3 from relaying routes, every router inside AS 65002 must peer directly with every other internal router.
This design is an iBGP Full Mesh.
Full Mesh Session Architecture
AS 65002 contains 3 routers (R2, R3, R4). A full mesh requires 3 total iBGP sessions:
R2 to R4 (built in the previous lesson)
R2 to R3 (built in Part 2)
R3 to R4 (built in Part 2)

Figure 7 – iBGP full mesh
Check the BGP summary table on R2:
R2# show bgp ipv4 unicast summary <output omitted> Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 3.3.3.3 4 65002 8 9 5 0 0 00:03:10 0 4.4.4.4 4 65002 22 21 5 0 0 00:15:40 1 10.0.12.1 4 65001 35 34 5 0 0 00:28:12 1R2 maintains 1 eBGP session and 2 iBGP sessions.
R3 sends 0 prefixes to R2 because it has no local routes of its own and cannot relay routes learned from R4.Answer the question below
How many prefixes does R3 send to R2?
Routing Table Convergence
Inspect the BGP routes installed on R3:

Figure 8 – Both customers installed on R3, one iBGP hop away
R3# show ip route bgp <output omitted> Gateway of last resort is not set B 192.168.1.0/24 [200/0] via 2.2.2.2, 00:03:05 B 192.168.2.0/24 [200/0] via 4.4.4.4, 00:02:50Both customer prefixes are now installed on R3, pointing directly at the edge router that learned them.
Final Verification
Re-run the ping test from PC1 to PC2:

Figure 9 – The packet reaches 192.168.2.0/24
C:\>ping 192.168.2.10 Pinging 192.168.2.10 with 32 bytes of data: Reply from 192.168.2.10: bytes=32 time=12ms TTL=123 Reply from 192.168.2.10: bytes=32 time=10ms TTL=123 Reply from 192.168.2.10: bytes=32 time=11ms TTL=123 Reply from 192.168.2.10: bytes=32 time=10ms TTL=123 Ping statistics for 192.168.2.10: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 10ms, Maximum = 12ms, Average = 10msThe ping succeeds.
Every transit router in the core holds full BGP reachability, resolving the black hole completely.
Answer the question below
What is the name of the design where every iBGP router peers with every other one?
Answer the question below
If R3 adds an eBGP customer advertising 192.168.3.0/24, what PfxRcd does R2 show for 3.3.3.3?