# Lab 9-2: Build a Network Challenge 2 - BGP

### Summary

During this lab we took the frame work from the last lab and built out BGP from BTV-Router to Vermont-ISP then to Pacific-ISP.

### Subnet Tables

#### Subnet Table Routers

<table><thead><tr><th width="195">Name</th><th width="199">Network Address</th><th width="193">Subnet</th><th>Gateway</th></tr></thead><tbody><tr><td>Vermont to BTV</td><td>192.168.2.0</td><td>255.255.255.252</td><td>192.168.2.1</td></tr><tr><td>Vermont to Pacific</td><td>192.168.1.0</td><td>255.255.255.252</td><td>192.168.1.1</td></tr><tr><td>Pacific to Partner</td><td>192.168.3.0</td><td>255.255.255.252</td><td>192.168.3.1</td></tr><tr><td>Pacific to Customer</td><td>192.168.4.0</td><td>255.255.255.252</td><td>192.168.4.1</td></tr></tbody></table>

#### Subnet Table Burlington <a href="#subnet-table" id="subnet-table"></a>

<table><thead><tr><th width="156">Name</th><th>Network Address</th><th>Subnet</th><th>Gateway</th></tr></thead><tbody><tr><td>BTV to MTL</td><td>172.16.0.0</td><td>255.255.255.252</td><td>172.16.0.1</td></tr><tr><td>BTV Core</td><td>172.16.10.0</td><td>255.255.255.0</td><td>172.16.10.1</td></tr><tr><td>BTV Users</td><td>172.16.5.0</td><td>255.255.255.0</td><td>172.16.5.1</td></tr><tr><td>BTV Data Ctr</td><td>172.16.6.0</td><td>255.255.255.0</td><td>172.16..1</td></tr><tr><td>MTL </td><td>172.16.20.0</td><td>255.255.255.0</td><td>172.16.20.1</td></tr></tbody></table>

**Subnet Table Customer**

<table><thead><tr><th width="133">Name</th><th>Network Address</th><th>Subnet</th><th>Gateway</th></tr></thead><tbody><tr><td>​Customer</td><td>10.200.24.0</td><td>255.255.255.0​</td><td>​10.200.24.1</td></tr></tbody></table>

#### Subnet Table Partner

<table><thead><tr><th width="125">Name</th><th>Network Address</th><th width="200">Subnet</th><th>Gateway</th></tr></thead><tbody><tr><td>Partner</td><td>10.15.6.0</td><td>255.255.255.0</td><td>10.15.6.1</td></tr></tbody></table>

<figure><img src="https://1767217326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGG1ypcCqcB1a4JSBwHti%2Fuploads%2FgT2sHLPdB4Ud70H0Muit%2Fimage.png?alt=media&#x26;token=ca9b2d51-5ebc-4b45-aff0-5b30db9725ca" alt=""><figcaption><p>Network Photo</p></figcaption></figure>

### Steps:

#### Vermont-ISP

```
enable
config t
hostname vermont-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
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
```

#### BTV-Router

```
enable
config t
hostname btv-router
interface FastEthernet 0/1
ip address 192.168.2.2 255.255.255.252
no shutdown
interface FastEthernet 0/0
ip address 172.16.10.1 255.255.255.0
no shutdown
interface Serial 0/1/0
ip address 172.16.0.1 255.255.255.252
no shutdown
router ospf 1
default-information originate
network 172.16.10.0 0.0.0.255 area 0
network 172.16.0.0 0.0.0.3 area 0
ip route 0.0.0.0 0.0.0.0 192.168.2.1
router bgp 3033
neighbor 192.168.2.1 remote-as 1010
redistribute ospf 1
network 192.168.2.0 mask 255.255.255.252
```

#### BTV-Multilayer-Switch

```
enable
config t
hostname btv-multiplayer-switch
vlan 5
name users
vlan 6
name DC
ip routing
interface vlan 1
no shutdown
interface vlan 5
no shutdown
ip address 172.16.5.1 255.255.255.0
interface vlan 6
no shutdown
ip address 172.16.6.1 255.255.255.0
interface vlan 10
no shutdown
ip address 172.16.10.2 255.255.255.0
interface range FastEthernet 0/2
switchport access vlan 5
interface range FastEthernet 0/6
switchport access vlan 6
interface range FastEthernet 0/1
switchport access vlan 10
router ospf 1
network 172.16.5.0 0.0.0.255 area 0
network 172.16.6.0 0.0.0.255 area 0
network 172.16.10.0 0.0.0.255 area 0
```

#### MTL-Router

```
enable
config t
hostname mtl-router
interface FastEthernet 0/0
ip address 172.16.20.1 255.255.255.0
no shutdown
exit
interface Serial 0/1/0
ip address 172.16.0.2 255.255.255.252
no shutdown
exit
router ospf 1
network 172.16.20.0 0.0.0.255 area 0
network 172.16.0.0 0.0.0.3 area 0
```

#### Pacific-ISP

```
enable
config t
hostname pacific-router
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
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
```

#### Customer-Router

```
enable
config t
hostname customer-router
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
router bgp 5132
neighbor 192.168.4.1 remote-as 2054
network 10.200.24.0 mask 255.255.255.0
```

#### Partner-Router

```
enable
config t
hostname partner-router
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
router bgp 34908
neighbor 192.168.3.1 remote-as 2054
network 10.15.6.0 mask 255.255.255.0
```

### Notes:

#### BGP:

Remember to advertise the internal network...

#### Tips:

```
show ip bgp summary
```
