11.2.1 Packet Tracer - Configure and Verify eBGP (Answers)

11.2.1 Packet Tracer - Configure and Verify eBGP (Answers)

Topology

11.2.1 Packet Tracer - Configure and Verify eBGP

11.2.1 Packet Tracer - Configure and Verify eBGP

Objectives

Configure and verify eBGP between two autonomous systems.

Background / Scenario

In this activity, you will configure and verify the operation of eBGP between autonomous systems 65001 and 65002. ACME Inc. is a company that has a partnership with Other Company and must exchange routes. Both companies have their own autonomous systems and will use ISP as the transit AS to reach each other.

Note: Only companies with very large networks can afford their own autonomous system.

Address Table

Device Interface IPv4 Address Subnet Mask Default Gateway
ACME1 G0/0 192.168.0.1 255.255.255.0 N/A
S0/0/0 1.1.1.2 255.255.255.252
OtherCo1 G0/0 172.16.10.1 255.255.255.0 N/A
S0/0/0 1.1.1.10 255.255.255.252
ISP-Entry-1 S0/0/0 1.1.1.1 255.255.255.252 N/A
S0/0/1 1.1.1.5 255.255.255.252
ISP-Entry-2 S0/0/0 1.1.1.9 255.255.255.252 N/A
S0/0/1 1.1.1.6 255.255.255.252
PC0 NIC DHCP DHCP 192.168.0.1
Laptop0 NIC DHCP DHCP 192.168.0.1
Laptop1 NIC DHCP DHCP 192.168.0.1
Server NIC 172.16.10.2 255.255.255.0 172.16.10.1

Instructions

Part 1: Configure eBGP in ACME Inc.

ACME Inc. hired an ISP to provide a connection to a partner company called Other Company. The ISP has established network reachability within its network and to Other Company. You must connect ACME to the ISP so that ACME and Other Company can communicate. Because the ISP is using BGP as the routing protocol, you must configure ACME1, which is the ACME border router, to establish a BGP neighbor connection with ISP-Entry-1. ISP-Entry-1 is the ISP border router that is directly connected to ACME.

a. From ISP-Entry-1, verify that the ISP has provided IP reachability through its network by pinging 1.1.1.9, which is the IP address of the ISP-Entry-2 Serial 0/0/0 interface.

b. From any device inside of the ACME network, ping the Other Company server at 172.16.10.2. The pings should fail because no BGP routing is configured at this time.

c. Configure ACME1 to become an eBGP peer with ISP-Entry-1. ACME has AS number is 65001, and the ISP is using AS number 65003. Use 1.1.1.1 as the neighbor IP address and add the ACME internal network 192.168.0.0/24 to BGP.

ACME1(config)# router bgp 65001
ACME1(config-router)# neighbor 1.1.1.1 remote-as 65003
ACME1(config-router)# network 192.168.0.0 mask 255.255.255.0

From any device inside of the ACME network, ping the Other Company internal server again. Does it work?
No.

Part 2: Configure eBGP for Other Company Inc.

The network administrator at Other Company is not familiar with BGP and could not configure the Other Company side of the link. Because of this, you must also configure the Other Company end of the connection.

Configure router OtherCo1 to form an eBGP adjacency with ISP-Entry-2, which is the ISP border router facing OtherCo1. Other Company is under AS 65002 while ISP is under AS 65003. Use the 1.1.1.9 as the neighbor IP address of ISP-Entry-2 and add the Other Company internal network 172.16.10.0/24 to BGP.

OtherCo1(config)# router bgp 65002
OtherCo1(config-router)# neighbor 1.1.1.9 remote-as 65003
OtherCo1(config-router)# network 172.16.10.0 mask 255.255.255.0

Part 3: eBGP Verification

a. Verify that ACME1 has formed an eBGP adjacency with ISP-Entry-1. The show ip bgp summary command is very useful here.

b. Use the show ip bgp summary command to verify the routes that ACME1 has learned via eBGP and their status.

c. Look at the routing tables on ACME1 and OtherCo1. ACME1 should have learned the route to the Other Company network 172.16.10.0/24. Similarly, OtherCo1 should now know about the route to the ACME network 192.168.0.0/24.

d. Open a web browser in any ACME Inc. end device and navigate to the Other Company server by entering its IP address of 172.16.10.2

e. From any ACME Inc. device, ping the Other Company server at 172.16.10.2.

Device Configs - Final

ROUTER ACME1

! ==============================================================
!--- 11.2.1 Packet Tracer - Configure and Verify eBGP
!--- ANSWER SCRIPT FOR ROUTER ACME1 (AS 65001)
!--- Usage: copy this whole file and paste it into the ACME1 terminal (start at the ACME1> prompt). Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.
!--- Scope: IP addressing is already configured, and the ISP's transit
!--- AS (65003) already has full internal reachability, per the
!--- activity's own Background note - this script only stands up the
!--- eBGP peering from ACME's side.
! ==============================================================

enable
configure terminal

! --------------------------------------------------------------
!--- Part 1, Step c: Peer with the ISP's border router (ISP-Entry-1)
!--- over eBGP and advertise ACME's internal network.
! --------------------------------------------------------------

router bgp 65001

!--- ISP-Entry-1's S0/0/0 address, directly connected to ACME1 - the
!--- differing AS number (65003 vs ACME's own 65001) is what makes
!--- this an eBGP session rather than iBGP.
 neighbor 1.1.1.1 remote-as 65003

!--- Advertise the ACME LAN so Other Company (and the ISP) can route to it.
!--- The mask here must exactly match what's configured on G0/0 (/24),
!--- or BGP won't find a matching connected/static route to advertise.
 network 192.168.0.0 mask 255.255.255.0
 exit

end

! --------------------------------------------------------------
!--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.)
! --------------------------------------------------------------
copy running-config startup-config


! ==============================================================
!--- Verification:
!---   show ip bgp summary   -> neighbor 1.1.1.1, state up, AS 65003
!---   show ip route bgp     -> B 172.16.10.0/24 [20/0] via 1.1.1.1  (only after OtherCo1's script also runs)
!---   ping 172.16.10.2       -> Other Company's server, only works once OtherCo1 is also configured
!--- Note: pinging the Other Company server will still fail after this
!--- script alone - OtherCo1 hasn't advertised its network yet, so
!--- ACME1 has no route back. This matches the lab's own Part 1 ending
!--- ("Does it work? No.") - full connectivity needs the companion
!--- OtherCo1 script as well.
! ==============================================================

ROUTER OTHERCO1

! ==============================================================
!--- 11.2.1 Packet Tracer - Configure and Verify eBGP
!--- ANSWER SCRIPT FOR ROUTER OTHERCO1 (AS 65002)
!--- Usage: copy this whole file and paste it into the OtherCo1 terminal (start at the OtherCo1> prompt). Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.
!--- Scope: IP addressing is already configured, and the ISP's transit
!--- AS (65003) already has full internal reachability, per the
!--- activity's own Background note - this script only stands up the
!--- eBGP peering from Other Company's side.
! ==============================================================

enable
configure terminal

! --------------------------------------------------------------
!--- Part 2: Peer with the ISP's border router (ISP-Entry-2) over eBGP
!--- and advertise Other Company's internal network.
! --------------------------------------------------------------

router bgp 65002

!--- ISP-Entry-2's S0/0/0 address, directly connected to OtherCo1 - the
!--- differing AS number (65003 vs Other Company's own 65002) is what
!--- makes this an eBGP session rather than iBGP.
 neighbor 1.1.1.9 remote-as 65003

!--- Advertise the Other Company LAN so ACME (and the ISP) can route to it.
!--- The mask here must exactly match what's configured on G0/0 (/24),
!--- or BGP won't find a matching connected/static route to advertise.
 network 172.16.10.0 mask 255.255.255.0
 exit

end

! --------------------------------------------------------------
!--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.)
! --------------------------------------------------------------
copy running-config startup-config


! ==============================================================
!--- Verification:
!---   show ip bgp summary   -> neighbor 1.1.1.9, state up, AS 65003
!---   show ip route bgp     -> B 192.168.0.0/24 [20/0] via 1.1.1.9
!---   ping 192.168.0.x       -> any ACME end device, once both sides are configured
!--- Note: the lab's own Address Table lists this router's LAN
!--- interface as "G/0/0" (with a stray slash) - it's the same interface
!--- as ACME1's G0/0, just a typo in the published table; doesn't affect
!--- this script since BGP's "network" command only needs the address
!--- and mask, not the interface name.
! ==============================================================

Download 11.2.1 Packet Tracer - Configure and Verify eBGP PDF & PKA files:

Subscribe
Notify of
guest

0 Corrections & Clarifications