11.1.3 Lab - Implement MP-BGP - ITExamAnswers
11.1.3 Lab - Implement MP-BGP - ITExamAnswers
Instructor Note: Red font color or gray highlights indicate text that appears in the instructor copy only.
Addressing Table
Device Interface IPv4 Address IPv6 Address IPv6 Link-Local
R1
S0/1/0 10.1.3.1/25 2001:db8:acad:1013::1/64 fe80::1:2
R1
S0/1/1 10.1.3.129/25 2001:db8:acad:1014::1/64 fe80::1:3
R1
Loopback0 192.168.1.1/27 2001:db8:acad:1000::1/64 fe80::1:4
R1
Loopback1 192.168.1.65/26 2001:db8:acad:1001::1/64 fe80::1:5
R2 G0/0/0 10.1.2.2/24 2001:db8:acad:1012::2/64 fe80::2:1
R2
G0/0/1 10.2.3.2/24 2001:db8:acad:1023::2/64 fe80::2:2
R2
Loopback0 192.168.2.1/27 2001:db8:acad:2000::1/64 fe80::2:3
R2
Loopback1 192.168.2.65/26 2001:db8:acad:2001::1/64 fe80::2:4
R3 G0/0/0 10.2.3.3/24 2001:db8:acad:1023::3/64 fe80::3:1
R3
S0/1/0 10.1.3.3/25 2001:db8:acad:1013::3/64 fe80::3:2
R3
S0/1/1 10.1.3.130/25 2001:db8:acad:1014::3/64 fe80::3:3
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 22 www.netacad.com
Lab - Implement MP-BGP
R3
Loopback0 192.168.3.1/27 2001:db8:acad:3000::1/64 fe80::3:4
R3
Loopback1 192.168.3.65/26 2001:db8:acad:3001::1/64 fe80::3:5
Objectives
Part 1: Build the Network and Configure Basic Device Settings and Interface Addressing
Part 2: Configure MP-BGP on all Routers
Part 3: Verify MP-BGP
Part 4: Configure and Verify IPv6 Summarization
Background / Scenario
In this lab, you will configure MP-BGP, BGP for IPv4 and IPv6 using address families.
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: Make sure 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 (Choice of operating system with a terminal emulation program installed)
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
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 22 www.netacad.com
Lab - Implement MP-BGP
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
ipv6 address FE80::1:4 link-local
ipv6 address 2001:DB8:ACAD:1000::1/64
no shut
interface Loopback1
ip address 192.168.1.65 255.255.255.192
ipv6 address FE80::1:5 link-local
ipv6 address 2001:DB8:ACAD:1001::1/64
no shut
interface GigabitEthernet0/0/0
ip address 10.1.2.1 255.255.255.0
ipv6 address FE80::1:1 link-local
ipv6 address 2001:DB8:ACAD:1012::1/64
no shut
interface Serial0/1/0
ip address 10.1.3.1 255.255.255.128
ipv6 address FE80::1:2 link-local
ipv6 address 2001:DB8:ACAD:1013::1/64
no shut
interface Serial0/1/1
ip address 10.1.3.129 255.255.255.128
ipv6 address FE80::1:3 link-local
ipv6 address 2001:DB8:ACAD:1014::1/64
no shut
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
ipv6 address FE80::2:3 link-local
ipv6 address 2001:DB8:ACAD:2000::1/64
no shut
interface Loopback1
ip address 192.168.2.65 255.255.255.192
ipv6 address FE80::2:4 link-local
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 22 www.netacad.com
Lab - Implement MP-BGP
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 22 www.netacad.com
Lab - Implement MP-BGP
Step 2: Implement eBGP and neighbor relationships on R2 for IPv4 and IPv6.
a. Enable IPv6 routing.
Open configuration window
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 22 www.netacad.com
Lab - Implement MP-BGP
d. Based on the topology diagram, configure all the designated IPv6 neighbors for R1.
R2(config-router)# neighbor 2001:db8:acad:1012::1 remote-as 1000
R2(config-router)# neighbor 2001:db8:acad:1023::3 remote-as 300
e. Enter address family configuration mode for IPv4 and activate each of the IPv4 neighbors.
R2(config-router)# address-family ipv4 unicast
R2(config-router-af)# neighbor 10.1.2.1 activate
R2(config-router-af)# neighbor 10.2.3.3 activate
R2(config-router-af)# exit
f. Enter address family configuration mode for IPv6 and activate each of the IPv6 neighbors.
R2(config-router)# address-family ipv6 unicast
R2(config-router-af)# neighbor 2001:db8:acad:1012::1 activate
R2(config-router-af)# neighbor 2001:db8:acad:1023::3 activate
R2(config-router-af)# exit
Close configuration window
Step 3: Implement eBGP and neighbor relationships on R3 for IPv4 and IPv6.
a. Enable IPv6 routing.
Open configuration window
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 22 www.netacad.com
Lab - Implement MP-BGP
Note: Notice that the networks between the routers are not being advertised in eBGP. Typically, only the
prefixes of the AS need to be advertised in eBGP. eBGP neighbors are typically directly connected and
therefore will be able to form an adjacency. There is typically no need to advertise and inject the directly
connected prefixes into the BGP routing table.
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 22 www.netacad.com
Lab - Implement MP-BGP
Established
How often are BGP keepalives sent?
Type your answers here.
Every 60 seconds
How many seconds will a BGP session remain open if no further keepalive messages are received?
Type your answers here.
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 22 www.netacad.com
Lab - Implement MP-BGP
What is the difference between the "local AS number" and the "AS" number displayed in the list of BGP
neighbors?
Type your answers here.
The local AS is the AS that this router belongs to. The AS in the list of BGP neighbors is the AS of the remote
neighbor.
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 22 www.netacad.com
Lab - Implement MP-BGP
IPv4 networks in its IPv4 BGP table. Each network is valid “*” and has one path which is the best path “>”.
Amongst other information, the next hop IPv4 address and the AS path are included.
R2# show bgp ipv4 unicast
BGP table version is 11, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 10 of 22 www.netacad.com
Lab - Implement MP-BGP
0 1000 300 i
*> 2001:DB8:ACAD:1023::3
0 0 300 i
* 2001:DB8:ACAD:3001::/64
2001:DB8:ACAD:1012::1
0 1000 300 i
*> 2001:DB8:ACAD:1023::3
0 0 300 i
Questions:
In the first output show bgp ipv4 unicast, why is 10.1.2.1 the preferred next hop address for 192.168.1.0
instead of 10.2.3.3?
Type your answers here.
Given that prior BGP path selection attributes are equal, this next hop is only one AS away, whereas
10.2.3.3 is two AS hops.
Why do some entries in the show bgp ipv6 unicast output include a next hop address of "::"?
Type your answers here.
This is unspecified address and indicates that the local router is generating the prefix for the BGP table.
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 11 of 22 www.netacad.com
Lab - Implement MP-BGP
Refresh Epoch 1
1000
2001:DB8:ACAD:1012::1 (FE80::1:1) from 2001:DB8:ACAD:1012::1 (1.1.1.1)
Origin IGP, metric 0, localpref 100, valid, external, best
rx pathid: 0, tx pathid: 0x0
Question:
Why does the output for the show bgp ipv6 unicast command include the link-local address following
the global unicast address?
Type your answers here.
This is the link-local address of the router that sent the BGP update. Link-local addresses are used to
send BGP messages.
b. Use the show bgp ipv4 unicast neighbors ipv4-prefix advertised-routes command on R2 to display
IPv4 routes advertised to a specific neighbor.
R2# show bgp ipv4 unicast neighbors 10.1.2.1 advertised-routes
BGP table version is 11, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
t secondary path, L long-lived-stale,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 12 of 22 www.netacad.com
Lab - Implement MP-BGP
*> 2001:DB8:ACAD:2000::/64
:: 0 32768 i
*> 2001:DB8:ACAD:2001::/64
:: 0 32768 i
*> 2001:DB8:ACAD:3000::/64
2001:DB8:ACAD:1023::3
0 0 300 i
*> 2001:DB8:ACAD:3001::/64
2001:DB8:ACAD:1023::3
0 0 300 i
Why do some entries in the show bgp ipv4 unicast neighbors output include a next hop address of
0.0.0.0 and the show bgp ipv6 unicast neighbors output includes a next hop address of "::"?
Type your answers here.
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 13 of 22 www.netacad.com
Lab - Implement MP-BGP
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 14 of 22 www.netacad.com
Lab - Implement MP-BGP
B 2001:DB8:ACAD:3000::/64 [20/0]
via FE80::3:1, GigabitEthernet0/0/1
B 2001:DB8:ACAD:3001::/64 [20/0]
via FE80::3:1, GigabitEthernet0/0/1
If R1's 2001:db8:acad:1000::/64 network went down, what would be the effect, if any, on the routing
tables of R2 and R3? Explain.
Type your answers here.
There would be no effect because the summary route will still be valid and advertised as long as at least
one subnet within the summary route is still reachable. In this case, as long as 2001:db8:acad:1001::/64
is still reachable, this aggregated route will still be advertised.
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
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 15 of 22 www.netacad.com
Lab - Implement MP-BGP
Router R1
R1# show running-config
Building configuration...
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 16 of 22 www.netacad.com
Lab - Implement MP-BGP
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 17 of 22 www.netacad.com
Lab - Implement MP-BGP
control-plane
!
line con 0
exec-timeout 0 0
logging synchronous
transport input none
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
end
Router R2
R2# show running-config
Building configuration...
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 18 of 22 www.netacad.com
Lab - Implement MP-BGP
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 19 of 22 www.netacad.com
Lab - Implement MP-BGP
line con 0
exec-timeout 0 0
logging synchronous
transport input none
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
!
end
Router R3
R3#show running-config
Building configuration...
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 20 of 22 www.netacad.com
Lab - Implement MP-BGP
!
interface Loopback1
ip address 192.168.3.65 255.255.255.192
ipv6 address FE80::3:5 link-local
ipv6 address 2001:DB8:ACAD:3001::1/64
!
interface GigabitEthernet0/0/0
ip address 10.2.3.3 255.255.255.0
negotiation auto
ipv6 address FE80::3:1 link-local
ipv6 address 2001:DB8:ACAD:1023::3/64
!
interface GigabitEthernet0/0/1
no ip address
negotiation auto
!
interface Serial0/1/0
ip address 10.1.3.3 255.255.255.128
ipv6 address FE80::3:2 link-local
ipv6 address 2001:DB8:ACAD:1013::3/64
!
interface Serial0/1/1
ip address 10.1.3.130 255.255.255.128
ipv6 address FE80::3:3 link-local
ipv6 address 2001:DB8:ACAD:1014::3/64
!
router bgp 300
bgp router-id 3.3.3.3
bgp log-neighbor-changes
neighbor 10.1.3.1 remote-as 1000
neighbor 10.1.3.129 remote-as 1000
neighbor 10.2.3.2 remote-as 500
neighbor 2001:DB8:ACAD:1013::1 remote-as 1000
neighbor 2001:DB8:ACAD:1014::1 remote-as 1000
neighbor 2001:DB8:ACAD:1023::2 remote-as 500
!
address-family ipv4
network 192.168.3.0 mask 255.255.255.224
network 192.168.3.64 mask 255.255.255.192
neighbor 10.1.3.1 activate
neighbor 10.1.3.129 activate
neighbor 10.2.3.2 activate
no neighbor 2001:DB8:ACAD:1013::1 activate
no neighbor 2001:DB8:ACAD:1014::1 activate
no neighbor 2001:DB8:ACAD:1023::2 activate
exit-address-family
!
address-family ipv6
network 2001:DB8:ACAD:3000::/64
network 2001:DB8:ACAD:3001::/64
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 21 of 22 www.netacad.com
Lab - Implement MP-BGP
2020 - 2021 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 22 of 22 www.netacad.com