11.1.2 Lab - Implement eBGP For IPv4
11.1.2 Lab - Implement eBGP For IPv4
Topology
Addressing Table
Device Interface IPv4 Address
R1 G0/0/0 10.1.2.1/24
R1
S0/1/0 10.1.3.1/25
R1
S0/1/1 10.1.3.129/25
R1
Loopback0 192.168.1.1/27
R1
Loopback1 192.168.1.65/26
R2 G0/0/0 10.1.2.2/24
R2
G0/0/1 10.2.3.2/24
R2
Loopback0 192.168.2.1/27
R2
Loopback1 192.168.2.65/26
R3 G0/0/0 10.2.3.3/24
R3
S0/1/0 10.1.3.3/25
R3
S0/1/1 10.1.3.130/25
R3
Loopback0 192.168.3.1/27
R3
Loopback1 192.168.3.65/26
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 4221 with Cisco IOS XE Release 16.9.4 (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.
Instructor Note: Refer to the Instructor Lab Manual for the procedures to initialize and reload devices.
Required Resources
3 Routers (Cisco 4221 with Cisco IOS XE Release 16.9.4 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
interface Loopback0
ip address 192.168.1.1 255.255.255.224
no shut
exit
interface Loopback1
ip address 192.168.1.65 255.255.255.192
no shut
exit
interface GigabitEthernet0/0/0
ip address 10.1.2.1 255.255.255.0
no shut
exit
interface Serial0/1/0
ip address 10.1.3.1 255.255.255.128
no shut
exit
interface Serial0/1/1
ip address 10.1.3.129 255.255.255.128
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 192.168.2.1 255.255.255.224
no shut
exit
interface Loopback1
ip address 192.168.2.65 255.255.255.192
no shut
exit
interface GigabitEthernet0/0/0
ip address 10.1.2.2 255.255.255.0
no shut
exit
interface GigabitEthernet0/0/1
ip address 10.2.3.2 255.255.255.0
no shut
exit
Router R3
hostname R3
no ip domain lookup
line con 0
logging sync
exec-time 0 0
exit
interface Loopback0
ip address 192.168.3.1 255.255.255.224
no shut
exit
interface Loopback1
ip address 192.168.3.65 255.255.255.192
no shut
exit
interface GigabitEthernet0/0/0
ip address 10.2.3.3 255.255.255.0
negotiation auto
no shut
exit
interface Serial0/1/0
ip address 10.1.3.3 255.255.255.128
no shut
exit
interface Serial0/1/1
ip address 10.1.3.130 255.255.255.128
no shut
exit
b. Save the running configuration to startup-config.
Close configuration window
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 10.1.2.1, remote AS 1000, external link
BGP version 4, remote router ID 1.1.1.1
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>
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 5 5
Keepalives: 2 3
Route Refresh: 0 0
Total: 10 11
<output omitted>
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 9 5
Keepalives: 1082 1088
Route Refresh: 0 0
Total: 1096 1096
Do log neighbor state changes (via global configuration)
Default minimum time between advertisement runs is 30 seconds
<output omitted>
Questions:
How many neighbors does R2 have and what are their router IDs?
2 neighbors: 1.1.1.1 và 3.3.3.3
Two neighbors: 1.1.1.1 and 3.3.3.3
What is the BGP state of both neighbors?
Đã được thiết lập
established
What are the keepalive and hold time value for both neighbors?
Keepalive is 60 seconds, hold time is180 seconds
Close configuration window
Part 4: Configure and Verify Route Summarization with Atomic Aggregate and AS-Set
c. Verify that R3 is now receiving the non-summarized prefixes 192.168.1.0/27 and 192.168.1.64/26.
R3# show ip route 192.168.1.0
Routing entry for 192.168.1.0/24, 2 known subnets
Variably subnetted with 2 masks
B 192.168.1.0/27 [20/0] via 10.2.3.2, 00:01:26
B 192.168.1.64/26 [20/0] via 10.2.3.2, 00:01:26
d. On R2, summarize the prefixes 192.168.1.0/27 and 192.168.1.64/26 received from R1 as 192.168.1.0/24.
R2(config)# router bgp 500
R2(config-router)# aggregate-address 192.168.1.0 255.255.255.0 summary-only
Close configuration window
Note: To find out how the router is configured, look at the interfaces to identify the type of router and how many interfaces
the router has. There is no way to effectively list all the combinations of configurations for each router class. This table
includes identifiers for the possible combinations of Ethernet and Serial interfaces in the device. The table does not
include any other type of interface, even though a specific router may contain one. An example of this might be an ISDN
BRI interface. The string in parenthesis is the legal abbreviation that can be used in Cisco IOS commands to represent
the interface.
End of document
Router R1
R1# show running-config
Building configuration...
Router R2
R2# show running-config
Building configuration...