Network Routing Lab - Implement EBGP for IPv4
Network Routing Lab - Implement EBGP for IPv4
Topology
Addressing Table
Device Interface IPv4 Address
R1 G0/0/0 [Link]/24
R1
S0/1/0 [Link]/25
R1
S0/1/1 [Link]/25
R1
Loopback0 [Link]/27
R1
Loopback1 [Link]/26
R2 G0/0/0 [Link]/24
R2
G0/0/1 [Link]/24
R2
Loopback0 [Link]/27
R2
Loopback1 [Link]/26
R3 G0/0/0 [Link]/24
R3
S0/1/0 [Link]/25
R3
S0/1/1 [Link]/25
R3
Loopback0 [Link]/27
R3
Loopback1 [Link]/26
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 18
-
Lab - Implement eBGP for IPv4
Objectives
Part 1: Build the Network and Configure Basic Device Settings and Interface Addressing
Part 2: Configure and Verify eBGP for IPv4 on all Routers
Part 3: Configure and Verify Route Summarization and Atomic Aggregate
Part 4: Configure and Verify Route Summarization with Atomic Aggregate and AS-Set
Part 5: Configure and Verify the Advertising of a Default Route
Background / Scenario
In this lab you will configure eBGP for IPv4.
Note: This lab is an exercise in developing, deploying, and verifying various path manipulation tools for BGP,
and does not reflect networking best practices.
Note: The routers used with CCNP hands-on labs are Cisco 8300L with Cisco IOS XE Release 17.12.05c
(universalk9 image). Other routers and Cisco IOS versions can be used. Depending on the model and Cisco
IOS version, the commands available and the output produced might vary from what is shown in the labs.
Note: Ensure that the routers and switches have been erased and have no startup configurations. If you are
unsure contact your instructor.
Required Resources
• 3 Routers (Cisco Catalyst 8200L with Cisco IOS XE Release 17.12.05c universal image or comparable)
• 1 PC (Windows with a terminal emulation program, such as Tera Term)
• Console cables to configure the Cisco IOS devices via the console ports
• Ethernet and serial cables as shown in the topology
Instructions
Part 1: Build the Network and Configure Basic Device Settings and Interface
Addressing
In Part 1, you will set up the network topology and configure basic settings and interface addressing on
routers.
Router R1
hostname R1
no ip domain lookup
line con 0
logging sync
exec-time 0 0
exit
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 18
-
Lab - Implement eBGP for IPv4
interface Loopback0
ip address [Link] [Link]
no shut
exit
interface Loopback1
ip address [Link] [Link]
no shut
exit
interface GigabitEthernet0/0/0
ip address [Link] [Link]
no shut
exit
interface Serial0/1/0
ip address [Link] [Link]
no shut
exit
interface Serial0/1/1
ip address [Link] [Link]
no shut
exit
Router R2
hostname R2
no ip domain lookup
line con 0
logging sync
exec-time 0 0
exit
interface Loopback0
ip address [Link] [Link]
no shut
exit
interface Loopback1
ip address [Link] [Link]
no shut
exit
interface GigabitEthernet0/0/0
ip address [Link] [Link]
no shut
exit
interface GigabitEthernet0/0/1
ip address [Link] [Link]
no shut
exit
Router R3
hostname R3
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 18
-
Lab - Implement eBGP for IPv4
no ip domain lookup
line con 0
logging sync
exec-time 0 0
exit
interface Loopback0
ip address [Link] [Link]
no shut
exit
interface Loopback1
ip address [Link] [Link]
no shut
exit
interface GigabitEthernet0/0/0
ip address [Link] [Link]
negotiation auto
no shut
exit
interface Serial0/1/0
ip address [Link] [Link]
no shut
exit
interface Serial0/1/1
ip address [Link] [Link]
no shut
exit
b. Save the running configuration to startup-config.
Close configuration window
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 18
-
Lab - Implement eBGP for IPv4
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 18
-
Lab - Implement eBGP for IPv4
b. This can be further verified by examining the BGP neighbor adjacencies on R2. Notice the BGP state
between R2 and R1 is established, while the BGP state between R2 and R3 is idle.
R2# show ip bgp neighbors
BGP neighbor is [Link], remote AS 1000, external link
BGP version 4, remote router ID [Link]
BGP state = Established, up for 00:35:34
Last read 00:00:28, last write 00:00:35, hold time is 180, keepalive interval is 60
seconds
Neighbor sessions:
1 active, is not multisession capable (disabled)
<output omitted>
c. The interfaces on R3 need to be activated in IPv4 AF configuration mode. The neighbor activate
command in IPv4 AF configuration mode is required to enable the exchange of BGP information between
neighbors. This will enable R3 to form an established neighbor adjacency with both R1 and R2.
Additionally, because bgp default ipv4-unicast is disabled, network commands must be configured in
IPv4 AF configuration mode.
R3(config-router)# address-family ipv4
R3(config-router-af)# neighbor [Link] activate
R3(config-router-af)# neighbor [Link] activate
R3(config-router-af)# neighbor [Link] activate
R3(config-router-af)# network [Link] mask [Link]
R3(config-router-af)# network [Link] mask [Link]
d. Verify that all BGP speakers are receiving prefixes from their neighbors. The prefixes from R3 are
highlighted in the routing tables of R1 and R2.
Note: The prefixes in the lab are for example purposes only. Most service providers do not accept
prefixes larger than /24 for IPv4 (/25 through /32).
R1# show ip route bgp | begin Gateway
Gateway of last resort is not set
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 18
-
Lab - Implement eBGP for IPv4
e. Verify that the BGP state between R2 and R3 has now been established.
R2# show ip bgp neighbors | begin BGP neighbor is [Link]
BGP neighbor is [Link], remote AS 300, external link
BGP version 4, remote router ID [Link]
BGP state = Established, up for 00:12:16
Last read 00:00:37, last write 00:00:52, hold time is 180, keepalive interval is 60
seconds
Last update received: 00:02:29
Neighbor sessions:
1 active, is not multisession capable (disabled)
<output omitted>
Close configuration window
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 18
-
Lab - Implement eBGP for IPv4
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 18
-
Lab - Implement eBGP for IPv4
What is the address of the preferred next hop router to reach the [Link]/27 network? Explain.
Type your answers here.
How can you verify that [Link] is the next hop router used to reach [Link]/27?
Type your answers here.
b. Use the show ip bgp ip-prefix command to display all the paths for a specific route and the BGP path
attributes for that route.
R2# show ip bgp [Link]
BGP routing table entry for [Link]/27, version 14
Paths: (2 available, best #2, table default)
Advertised to update-groups:
1
Refresh Epoch 2
300 1000
[Link] from [Link] ([Link])
Origin IGP, localpref 100, valid, external
rx pathid: 0, tx pathid: 0
Updated on Sep 23 2025 03:57:40 UTC
Refresh Epoch 1
1000
[Link] from [Link] ([Link])
Origin IGP, metric 0, localpref 100, valid, external, best
rx pathid: 0, tx pathid: 0x0
Updated on Sep 23 2025 02:24:24 UTC
Question:
What is the IPv4 address of the next hop router with the best path?
Type your answers here.
c. Examine the BGP neighbor relationships on R2 using the show ip bgp neighbors command.
R2# show ip bgp neighbors
BGP neighbor is [Link], remote AS 1000, external link
BGP version 4, remote router ID [Link]
BGP state = Established, up for 01:45:22
Last read 00:00:45, last write 00:00:06, hold time is 180, keepalive interval is 60
seconds
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 18
-
Lab - Implement eBGP for IPv4
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 3 3
Keepalives: 116 118
Route Refresh: 0 0
Total: 120 122
<output omitted>
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 5 4
Keepalives: 17 16
Route Refresh: 0 0
Total: 25 23
Do log neighbor state changes (via global configuration)
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 10 of 18
-
Lab - Implement eBGP for IPv4
How many neighbors does R2 have and what are their router IDs?
Type your answers here.
What are the keepalive and hold time value for both neighbors?
Type your answers here.
d. To further verify the state of the BGP session, enter the show ip bgp summary command.
For example, the BGP router ID for R2 is [Link] and the local AS number is 500. The BGP table is now
at version 7, and when the table is updated, this number will increase.
In the table, R2 has two established sessions with the neighbors, [Link] (R1 G0/0/0) in AS 1000 and
[Link] (R3 G0/0/0) in AS 300.
R1# show ip bgp summary
BGP router identifier [Link], local AS number 1000
BGP table version is 7, main routing table version 7
6 network entries using 1488 bytes of memory
14 path entries using 1904 bytes of memory
5/3 BGP path/bestpath attribute entries using 1480 bytes of memory
4 BGP AS-PATH entries using 128 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 5000 total bytes of memory
BGP activity 7/1 prefixes, 15/1 paths, scan interval 60 secs
6 networks peaked at 02:22:06 Sep 23 2025 UTC (00:12:29.428 ago)
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 11 of 18
-
Lab - Implement eBGP for IPv4
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 12 of 18
-
Lab - Implement eBGP for IPv4
Why do R1 and R3 contain an entry with a next hop address of Null0? What is the result of having this
Null0 route in the routing table?
Type your answers here.
b. Examine the BGP table on router R2 to verify the route summarization. When a prefix has the default
classful mask, the subnet mask is not displayed. Both [Link] and [Link] prefixes have a /24
prefix length which would be the default mask for a Class C address.
R2# show ip bgp
BGP table version is 69, local router ID is [Link]
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
<output omitted>
c. Examine the BGP table on routers R2 and R3 and verify that each router is receiving the summary route
from the other router.
R1# show ip bgp
BGP table version is 69, local router ID is [Link]
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 13 of 18
-
Lab - Implement eBGP for IPv4
Why do two of the entries have the status code of "s"? Specifically, this is the result of what command or
option that was configured on these two routers?
Type your answers here.
d. Examine the explicit [Link] prefix entry in R2's BGP table. The route's NLRI information indicates
that the route was aggregated in AS 1000 by router with the RID [Link].
R2# show ip bgp [Link]
BGP routing table entry for [Link]/24, version 45
Paths: (2 available, best #2, table default)
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 14 of 18
-
Lab - Implement eBGP for IPv4
Advertised to update-groups:
1
Refresh Epoch 2
300 1000, (aggregated by 1000 [Link])
[Link] from [Link] ([Link])
Origin IGP, localpref 100, valid, external, atomic-aggregate
rx pathid: 0, tx pathid: 0
Updated on Sep 23 2025 04:14:33 UTC
Refresh Epoch 1
1000, (aggregated by 1000 [Link])
[Link] from [Link] ([Link])
Origin IGP, metric 0, localpref 100, valid, external, atomic-aggregate, best
rx pathid: 0, tx pathid: 0x0
Updated on Sep 23 2025 04:14:03 UTC
Close configuration window
Part 4: Configure and Verify Route Summarization with Atomic Aggregate and
AS-Set
Step 1: Configure route summarization using atomic aggregate and AS-Set.
a. Shut down both serial interfaces on R1. This will create a single path from R1 (AS 1000) to R2 (AS 500)
to R3 (AS 300).
Open configuration window
d. On R2, summarize the prefixes [Link]/27 and [Link]/26 received from R1 as [Link]/24.
R2(config)# router bgp 500
R2(config-router)# aggregate-address [Link] [Link] summary-only
Close configuration window
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 15 of 18
-
Lab - Implement eBGP for IPv4
b. Examine R3's BGP table. Notice that the AS path only includes the AS that summarized the route, AS
500, router R2.
R3# show ip bgp
<output omitted>
c. Issue the show ip bgp summary command. The BGP session between R1 and R3 is in the idle state
and is not attempting to form a connection. The output confirms that serial link between R1 and R3 are
down because the serial interfaces on R1 were shut down in a previous step in this activity.
R3# show ip bgp summary
BGP router identifier [Link], local AS number 300
BGP table version is 26, main routing table version 26
6 network entries using 1488 bytes of memory
6 path entries using 816 bytes of memory
4/4 BGP path/bestpath attribute entries using 1184 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 3512 total bytes of memory
BGP activity 11/5 prefixes, 21/15 paths, scan interval 60 secs
8 networks peaked at 19:51:01 Sep 23 2025 UTC (00:12:45.846 ago)
d. On R2, remove the current route aggregation for the [Link]/24 prefix and configure it again, this
time using the as-set option.
R2(config)# router bgp 500
R2(config-router)# no aggregate-address [Link] [Link] summary-
only
R2(config-router)# aggregate-address [Link] [Link] as-set
summary-only
e. Verify that R3 is receiving the aggregated prefix [Link]/24.
R3# show ip route bgp | begin Gateway
Gateway of last resort is not set
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 16 of 18
-
Lab - Implement eBGP for IPv4
f. Examine R3's BGP table again. Notice that the entry for [Link] this time includes the entire AS path.
The output from the show ip bgp [Link] command displays both AS numbers and identifies that R2
([Link]) aggregated the route.
R3# show ip bgp
<output omitted>
Network Next Hop Metric LocPrf Weight Path
*> [Link] [Link] 0 0 500 {1000} i
*> [Link]/27 [Link] 0 0 500 i
*> [Link]/26 [Link] 0 0 500 i
s> [Link]/27 [Link] 0 32768 i
*> [Link] [Link] 32768 i
s> [Link]/26 [Link] 0 32768 i
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 17 of 18
-
Lab - Implement eBGP for IPv4
b. Examine R1's BGP table to verify that it has received a default route.
R1# show ip bgp
<output omitted>
© 2019 - 2026 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 18 of 18