11.2.1 Packet Tracer - Configure and Verify eBGP (Answers)
Topology
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.
Copy
ISP-Entry-1# ping 1.1.1.9
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.
Copy
C:\> ping 172.16.10.2
c. Configure ACME1 to become an eBGP peer with ISP-Entry-1. ACME has AS number 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.
Copy
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?
Copy
C:\> ping 172.16.10.2
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.
Copy
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.
Copy
ACME1# show ip bgp summary
BGP router identifier 192.168.0.1, local AS number 65001
BGP table version is 6, main routing table version 6
5 network entries using 660 bytes of memory
5 path entries using 260 bytes of memory
4/3 BGP path/bestpath attribute entries using 644 bytes of memory
2 BGP AS-PATH entries using 48 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
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 1644 total bytes of memory
BGP activity 5/0 prefixes, 5/0 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
1.1.1.1 4 65003 9 4 6 0 0 00:02:24 4
b. Use the show ip bgp summary command to verify the routes that ACME1 has learned via eBGP and their status.
Copy
ACME1# show ip bgp summary
BGP router identifier 192.168.0.1, local AS number 65001
BGP table version is 6, main routing table version 6
5 network entries using 660 bytes of memory
5 path entries using 260 bytes of memory
4/3 BGP path/bestpath attribute entries using 644 bytes of memory
2 BGP AS-PATH entries using 48 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
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 1644 total bytes of memory
BGP activity 5/0 prefixes, 5/0 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
1.1.1.1 4 65003 11 6 6 0 0 00:04:21 4
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.
Copy
ACME1# show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 1.1.1.0/30 is directly connected, Serial0/0/0
L 1.1.1.2/32 is directly connected, Serial0/0/0
B 1.1.1.4/30 [20/0] via 1.1.1.1, 00:00:00
B 1.1.1.8/30 [20/0] via 1.1.1.1, 00:00:00
172.16.0.0/24 is subnetted, 1 subnets
B 172.16.10.0/24 [20/26114560] via 1.1.1.1, 00:00:00
192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.0.0/24 is directly connected, GigabitEthernet0/0
L 192.168.0.1/32 is directly connected, GigabitEthernet0/0
Copy
OtherCo1# show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
B 1.1.1.0/30 [20/0] via 1.1.1.9, 00:00:00
B 1.1.1.4/30 [20/0] via 1.1.1.9, 00:00:00
C 1.1.1.8/30 is directly connected, Serial0/0/0
L 1.1.1.10/32 is directly connected, Serial0/0/0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.10.0/24 is directly connected, GigabitEthernet0/0
L 172.16.10.1/32 is directly connected, GigabitEthernet0/0
B 192.168.0.0/24 [20/26114560] via 1.1.1.9, 00:00:00
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.
Copy
C:\> ping 172.16.10.2
All pings should be successful.
Device Configs - Final
ROUTER ACME1
Copy
! ==============================================================
!--- 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, AS 65003, State/PfxRcd = 4 (prefixes received)
!--- show ip route bgp -> B 172.16.10.0/24 [20/26114560] 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 172.16.10.0/24 yet, so
!--- ACME1 has no route to the server's network. This matches the lab's own Part 1 ending
!--- ("Does it work? No.") - full connectivity needs the companion
!--- OtherCo1 script as well.
! ==============================================================
ROUTER OTHERCO1
Copy
! ==============================================================
!--- 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/26114560] via 1.1.1.9
!--- ping 192.168.0.x -> any ACME end device, once both sides are configured
! ==============================================================
Download 11.2.1 Packet Tracer - Configure and Verify eBGP .PKA file:
11.2.1 Packet Tracer - Configure and Verify eBGP .PKA
1 file(s) 343.51 KB
Previous Lab
10.2.1 Packet Tracer – Configure Multiarea OSPFv3
