title: S1E15 - The Border Gateway Protocol - Lab |
author: Nicholas Morrison nick@nanocat.net |
draft: false |
tags: [network, workshop, routing] |
categories: [workshop] |
noindex: true |
Connect to the lab server:
Connect to your router:
Prefix and AS number allocations: https://docs.google.com/spreadsheets/d/1vxVgJI_LhY3NDGJ3icE-4zphmBxUurEvVFgdjafFBzc/edit?usp=sharing
Enable IP routing on your router.
show lldp neighbor
to discover where your
interfaces connect.!
interface ethernetX
no switchport
ip address x.x.x.x/x
!
Make sure you can ping your upstream router.
Establish a BGP session with your upstream. Refer to the diagram for the correct remote-as. You have the lower IP in the /31, your upstream has the higher IP.
!
router bgp XXXXX <- your AS number
neighbor x.x.x.x remote-as xxxxx <- your upstream's AS number
neighbor x.x.x.x description The ISP
network x.x.x.x/24 <- your /24 IP allocation (not /26)
!
r1.xxx#show ip bgp summary
r1.xxx#show ip route bgp
r1.xxx#show ip bgp neighbor x.x.x.x advertised-routes
r1.xxx#show ip bgp neighbor x.x.x.x received-routes
!
ip route x.x.x.x/24 null0
!
r1.xxx#show ip bgp neighbor x.x.x.x advertised-routes
r1.xxx#show ip bgp neighbor x.x.x.x advertised-routes
r1.xxx#show ip bgp neighbor x.x.x.x received-routes