Lab 09‐2 - LPouliot/Junior-Spring-NET-330-01-Network-Design GitHub Wiki

9-2 Build a Network Challenge 2- BGP

This lab is an extension from Challenge 1. The goal is to use BGP to extend network connectivity to a Partner Network and a Customer Network

image

(Going to try and focus purely on CLI instead of using the GUI)

  • Savannah's Journal helped a lot with the small CLI configurations when assigning networks to Routers

To do this - some additional work needs to be done on BTV Router

Adding Vermont-ISP

interface FastEthernet0/1
ip address 192.168.2.2 255.255.255.0 
ip route 0.0.0.0 0.0.0.0 192.168.2.1

Set default route 0.0.0.0 0.0.0.0 to 192.168.2.1 (ISP)

ip route 0.0.0.0 0.0.0.0 192.168.2.1

Use "default-information originate" in OSPF config to send default route to other routers in the area

router ospf 1
default-information originate

Use "redistribute ospf 1" in BGP config to advertise all of the Foster 202 Co routes

  • The AS in Foster 202 is 3033
  • The AS in Vermont ISP is 1010

image

router bgp 3033
neighbor 192.168.2.1 remote-as 1010
redistribute ospf 1
network 192.168.2.0 mask 255.255.255.252

BGP routing for ISPs, Partner, Customer and external Foster 202

Packet Tracer 8.2.2 tutorial - BGP configuration

Define router instance:

router bgp AS_Number_for_Router

Identify peers:

(config-router) neighbor ip_of_peer remote-as as-number_of_peer

Advertise Networks within that AS - EXAMPLE:

**Example:** (config-router) network 10.10.52.0 mask 255.255.255.0
192.168.1.0/30 and 192.168.2.0/30 are in AS 1010
192.168.3.0/30 and 192.168.4.0/30 are in AS 2054

Vermont ISP:

AS 1010

Hostname Vermont-ISP

Connecting with Pacific-ISP and BTV-Router:

interface FastEthernet 0/0
ip address 192.168.1.1 255.255.255.252
no shutdown
interface FastEthernet 0/1
ip address 192.168.2.1 255.255.255.252
no shutdown

With BGP:

router bgp 1010
neighbor 192.168.2.2 remote-as 3033
neighbor 192.168.1.2 remote-as 2054
network 192.168.1.0 mask 255.255.255.252

Pacific ISP:

AS 2054

Hostname Pacific-ISP

Connecting with Vermont-ISP, PARTNER Company, and CUSTOMER Company

interface FastEthernet 0/0
ip address 192.168.1.2 255.255.255.252
no shutdown
interface FastEthernet 0/1
ip address 192.168.3.1 255.255.255.252
no shutdown
interface Serial 0/1/0
ip address 192.168.4.1 255.255.255.252
no shutdown

With BGP:

router bgp 2054
neighbor 192.168.1.1 remote-as 1010
neighbor 192.168.3.2 remote-as 34908
neighbor 192.168.4.2 remote-as 5132
network 192.168.3.0 mask 255.255.255.252
network 192.168.4.0 mask 255.255.255.252

PARTNER Company

AS 34908

Hostname PARTNER-Company

Connecting with Pacific-ISP

interface FastEthernet 0/0
ip address 192.168.3.2 255.255.255.252
no shutdown
interface FastEthernet 0/1
ip address 10.15.6.1 255.255.255.0
no shutdown

With BGP:

router bgp 34908
neighbor 192.168.3.1 remote-as 2054
network 10.15.6.0 mask 255.255.255.0

CUSTOMER Company

AS 5132

Hostname CUSTMOR-Company

Connecting with Pacific-ISP

interface FastEthernet 0/0
ip address 10.200.24.1 255.255.255.0
no shutdown
interface Serial 0/1/0
ip address 192.168.4.2 255.255.255.252
no shutdown

With BGP:

router bgp 5132
neighbor 192.168.4.1 remote-as 2054
network 10.200.24.0 mask 255.255.255.0

To Remove bgp or neighbors

Just include no as the beginning:

no router bgp 5132

no neighbor 192.168.4.1 remote-as 2054

Submit

Screenshot of "sh ip route" on Pacific ISP

image

Screenshot of "sh ip route" on Vermont ISP

image

Screenshot of "sh ip route" on BTV-Router

image

Screenshot of Customer PC pinging Data-Center Station

image