Net330‐BGPBuildANetwork - ConnorEast/Tech-Journal GitHub Wiki

Build-a-Ne-Challenge2-BGP

Challenge 1: Set up OSPF on the direct Network ~ Foster 202

OSPF must be set prior to Challenge 2! Do not move on until the commands listed below have been set.


Setting up VLANS

Router Section CLI Command Router Section CLI Command
router(config)# int vlan 5 router(config-if)# Ip address 172.16.5.1 255.255.255.0
router(config)# int vlan 6 router(config-if)# Ip address 172.16.6.1 255.255.255.0
router(config)# int vlan 10 router(config-if)# Ip address 172.16.10.2 255.255.255.0

Setting up OSPF

Device CLI Command
MultiLayer Switch
  • #Router ospf 1
  • #network 172.16.10.0 0.0.0.255 area 0
  • #network 172.16.5.0 0.0.0.255 area 0
  • #network 172.16.6.0 0.0.0.255 area 0
BTV-Router
  • #router ospf 1
  • #network 172.16.0.0 0.0.0.255 area 0
  • #network 172.16.10.0 0.0.0.255 area 0
MTL-Router
  • #router ospf 1
  • #network 172.16.20.0 0.0.0.255 area 0
  • #network 172.16.0.0 0.0.0.255 area 0

Challenge 2: Set up BGP

Device CLI Command
Customer Co
  • Router(config-if)#router bgp 5132
  • Router(config-router)#neighbor 192.168.4.1 remote-as 2054
  • Router(config-router)#network 10.200.24.0 mask 255.255.255.0
  • Router(config-router)#exit
  • Router(config)#interface Serial0/1/0
  • Router(config-if)#ip address 192.168.4.2 255.255.255.252
  • Router(config-if)#no shut
  • Router(config-if)#exit
  • Router(config)#int fa0/1
  • Router(config-if)#ip address 10.200.24.1 255.255.255.0
  • Router(config-if)#no shut
  • Router(config-if)#exit
Partner Co
  • Router(config-if)#exit
  • Router(config-if)#router bgp 34908
  • Router(config-router)#neighbor 192.168.3.1 remote-as 2054
  • Router(config-router)#network 10.15.6.0 mask 255.255.255.0
  • Router(config-router)#exit
  • Router(config)#interface FastEthernet0/1
  • Router(config-if)#ip address 10.15.6.1 255.255.255.0
  • Router(config)#interface FastEthernet0/0
  • Router(config-if)#ip address 192.168.3.2 255.255.255.252
Pacific Router
  • Router(config)#router bgp 2054
  • Router(config-router)#neighbor 192.168.3.2 remote-as 34908
  • Router(config-router)#neighbor 192.168.4.2 remote-as 5132
  • Router(config-router)#neighbor 192.168.1.1 remote-as 1010
  • Router(config-router)#exit
  • Router(config)#interface Serial0/1/0
  • Router(config-if)#ip address 192.168.4.1 255.255.255.252
  • Router(config-if)#exit
  • Router(config)#interface FastEthernet0/1
  • Router(config-if)#ip address 192.168.3.1 255.255.255.252
  • Router(config-if)#exit
  • Router(config)#interface FastEthernet0/0
  • Router(config-if)#ip address 192.168.1.2 255.255.255.252
Vermont ISP
  • Router(config)# interface FastEthernet0/0
  • Router(config-if)# ip address 192.168.1.1 255.255.255.252
  • Router(config-if)# exit
  • Router(config)# interface FastEthernet0/1
  • Router(config-if)# ip address 192.168.2.1 255.255.255.252
  • Router(config-if)# exit
  • Router(config)# router bgp 1010
  • Router(config-router)#neighbor 192.168.1.2 remote-as 2054
  • Router(config-router)#neighbor 192.168.2.2 remote-as 3033
BTV Router
  • Router(config)#int fa0/1
  • Router(config-if)#ip address 192.168.2.2 255.255.255.252
  • Router(config-if)# no shut
  • Router(config-if)# exit
  • Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.1
  • Router(config)#exit
  • Router#write memory
  • Router(config)#router ospf 1
  • Router(config-router)#default-information originate
  • Router(config-router)#exit
  • Router(config)#router bgp 3033
  • Router(config-router)#network 172.16.0.0 mask 255.255.255.0
  • Router(config-router)#network 172.16.10.0 mask 255.255.255.0
  • Router(config-router)#network 172.16.0.0 mask 255.255.255.252
  • Router(config-router)#neighbor 192.168.2.1 remote-as 1010
  • Router(config-router)#redistribute ospf 1
⚠️ **GitHub.com Fallback** ⚠️