Chapter 7 Lab 7-1, Configuring BGP With Default Routing: Topology
Chapter 7 Lab 7-1, Configuring BGP With Default Routing: Topology
Chapter 7 Lab 7-1, Configuring BGP With Default Routing: Topology
Chapter 7 Lab 7-1, Configuring BGP with Default Routing Instructor Version
Topology
Objectives
Configure BGP to exchange routing information with two ISPs.
Background
The International Travel Agency (ITA) relies extensively on the Internet for sales. For this reason, the ITA has decided
to create a multihomed ISP connectivity solution and contracted with two ISPs for Internet connectivity with fault
tolerance. Because the ITA is connecting to two different service providers, you must configure BGP, which runs
between the ITA boundary router and the two ISP routers.
Note: This lab uses Cisco 1941 routers with Cisco IOS Release 15.4 with IP Base. The switches are Cisco WS-
C2960-24TT-L with Fast Ethernet interfaces, therefore the router will use routing metrics associated with a 100 Mb/s
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 15
CCNPv7 ROUTE Lab 7-1, Configuring BGP with Default Routing
interface. Depending on the router or switch model and Cisco IOS Software version, the commands available and
output produced might vary from what is shown in this lab.
Required Resources
3 routers (Cisco IOS Release 15.2 or comparable)
Serial and Ethernet cables
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 15
CCNPv7 ROUTE Lab 7-1, Configuring BGP with Default Routing
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 15
CCNPv7 ROUTE Lab 7-1, Configuring BGP with Default Routing
foreach address {
10.0.0.1
10.0.0.2
10.1.1.1
172.16.0.1
172.16.0.2
172.16.1.1
192.168.0.1
192.168.1.1
} {
ping $address }
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 15
CCNPv7 ROUTE Lab 7-1, Configuring BGP with Default Routing
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 15
CCNPv7 ROUTE Lab 7-1, Configuring BGP with Default Routing
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 5 1
Keepalives: 15 17
Route Refresh: 0 0
Total: 21 19
Default minimum time between advertisement runs is 30 seconds
<output omitted>
Based on the output of this command, what is the BGP state between this router and ISP2?
_______________________________________________________________________________
_______________________________________________________________________________
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 15
CCNPv7 ROUTE Lab 7-1, Configuring BGP with Default Routing
The traceroute 10.1.1.1 fails because ISP1 does not have a route to the source IPv4 address of the traceroute,
172.16.0.1. It is common in BGP networks not to advertise the links between providers in BGP. A traceroute using
the source IPv4 address of ISP2’ Lo0 interface is successful, showing that ITA is a transit router for this network.
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 15
CCNPv7 ROUTE Lab 7-1, Configuring BGP with Default Routing
c. Apply this access list as a route filter using the distribute-list keyword with the BGP neighbor statement.
ITA(config)# router bgp 100
ITA(config-router)# neighbor 10.0.0.1 distribute-list 1 out
ITA(config-router)# neighbor 172.16.0.1 distribute-list 1 out
d. Check the routing table for ISP2 again. The route to 10.1.1.0, ISP1, should still be in the table.
ISP2# show ip route
<output omitted>
e. Return to ITA and issue the clear ip bgp * command. Wait until the routers reach the established state, which
might take several seconds, and then recheck the ISP2 routing table. The route to ISP1, network 10.1.1.0, should
no longer be in the routing table for ISP2, and the route to ISP2, network 172.16.1.0, should not be in the routing
table for ISP1.
ITA# clear ip bgp *
ITA#
*Sep 8 16:47:25.179: %BGP-5-ADJCHANGE: neighbor 10.0.0.1 Down User reset
*Sep 8 16:47:25.179: %BGP_SESSION-5-ADJCHANGE: neighbor 10.0.0.1 IPv4 Unicast
topology base removed from session User reset
*Sep 8 16:47:25.179: %BGP-5-ADJCHANGE: neighbor 172.16.0.1 Down User reset
*Sep 8 16:47:25.179: %BGP_SESSION-5-ADJCHANGE: neighbor 172.16.0.1 IPv4 Unicast
topology base removed from session User reset
*Sep 8 16:47:25.815: %BGP-5-ADJCHANGE: neighbor 10.0.0.1 Up
*Sep 8 16:47:25.819: %BGP-5-ADJCHANGE
ITA#: neighbor 172.16.0.1 Up
ITA#
Note: The clear ip bgp * command is disruptive because it completely resets all BGP adjacencies. This is
acceptable in a lab environment but could be problematic in a production network. Instead, if only a change of
inbound/outbound routing policies is to be performed, it is sufficient to issue the clear ip bgp * in or clear ip bgp *
out commands. These commands perform only a new BGP database synchronization without the disruptive
effects of a complete BGP adjacency reset. All current Cisco IOS versions support the route refresh capability that
replaces the inbound soft reconfiguration feature that previously had to be configured on a per-neighbor basis.
ISP2# show ip route
<output omitted>
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 15
CCNPv7 ROUTE Lab 7-1, Configuring BGP with Default Routing
Step 6: Configure primary and backup routes using floating static routes.
With bidirectional communication established with each ISP via BGP, configure the primary and backup routes. This
can be done with floating static routes or BGP.
a. Issue the show ip route command on the ITA router.
ITA# show ip route
<output omitted>
Notice that there is no gateway of last resort defined. This is a problem because ITA is the border router for the
corporate network.
b. Configure static routes to reflect the policy that ISP1 is the primary provider and that ISP2 acts as the backup by
specifying a lower distance metric for the route to ISP1 (210) as compared to the backup route to ISP2 (distance
metric 220).
ITA(config)# ip route 0.0.0.0 0.0.0.0 10.0.0.1 210
ITA(config)# ip route 0.0.0.0 0.0.0.0 172.16.0.1 220
c. Verify that a default route is defined using the show ip route command.
ITA# show ip route
<output omitted>
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 9 of 15
CCNPv7 ROUTE Lab 7-1, Configuring BGP with Default Routing
d. Test this default route by creating an unadvertised loopback on the router for ISP1.
ISP1# config t
ISP1(config)# interface loopback 100
ISP1(config-if)# ip address 192.168.100.1 255.255.255.0
e. Issue the show ip route command to ensure that the newly added 192.168.100.0 /24 network does not appear
in the routing table.
ITA# show ip route
<output omitted>
f. In extended ping mode, ping the ISP1 loopback 1 interface 192.168.100.1 with the source originating from the ITA
loopback 1 interface 192.168.1.1.
ITA# ping
Protocol [ip]:
Target IP address: 192.168.100.1
Repeat count [5]:
Datagram size [100]:
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 10 of 15
CCNPv7 ROUTE Lab 7-1, Configuring BGP with Default Routing
or
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 11 of 15
CCNPv7 ROUTE Lab 7-1, Configuring BGP with Default Routing
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 12 of 15
CCNPv7 ROUTE Lab 7-1, Configuring BGP with Default Routing
Initial Configurations
interface Serial0/0/1
description ITA -> ISP2
ip address 172.16.0.2 255.255.255.252
clock rate 128000
no shutdown
!
end
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 13 of 15
CCNPv7 ROUTE Lab 7-1, Configuring BGP with Default Routing
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 14 of 15
CCNPv7 ROUTE Lab 7-1, Configuring BGP with Default Routing
© 2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 15 of 15