How to configure a BGP Lab in Cisco Packet Tracer - CCNA 2020 #LetsLabITup

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
how you doing guys welcome back to another video with infosec pad in this video what we're going to be doing is a little bgp lab with four routers four different autonomous systems and i want to show you how to configure it get it all set up and the ultimate goal is to ping from router 1 to router 4 and from router 4 to router 1 and we can do a trace route and we can make sure we're going through each individual router to get from router 1 to router 4 so we're going to go through router one router two router three and then write a four and then the other way around from router four out of three router two router one all right so i had some fun putting this lab together so if you're ready i'm ready let's get into the video thank you [Music] all right hey guys so i want to show you some of the configs first just to make sure nothing is um configured and let's go on router one cli and let's we don't have to make this big actually we can just bring this over like this okay and r1 we're gonna do show ip protocols there's nothing running on r1 the show ip route or show ip interface brief we can see that we have ip addresses set up i did set up the ip addresses for loopback 0 and the the gigabit ethernet 000 okay as you can see right there and we can see the the interface config right here to interface um on router 2 to router 3 to router 4. so let's go ahead and go to router 2. all right go to cli make this bigger enter enter r2 enter so show ip protocols first excuse me just to make sure no protocols are running on this router and then show ip interface brief okay as you see is eight 8.8.8.2 and then two two two two okay and we can do show ipv route as well we can just see everything is locally connected and show ipvgp there's no there's nothing yet okay let's do the same thing let's just make sure on all of our routers before we start getting into the configuration show ip protocols show ipbgp nothing show ip interface brief perfect all right so we're looking we're cooking so so we have two two three interfaces we have one that's going let's just bring this down a little bit and we can bring this up so um let's make sure you can see so router three from on gigabit zero zero it's 17 17 17. 1.1.1 that's going through gigabit zero going out to router four and then going back to router two is gigabit uh gigabit ethernet zero slash one okay and then we have a loopback okay cool let's go to router4 me let's do the same exact thing just to make sure enable show ip protocols nothing show ipvgp nothing show ip interface brief and we should only have two okay and the reason being is because we have a loopback and then from gigabit ethernet 0 0 going out to router 3. all right cool all right so if you're ready let's get started configuring these bad boys right so let's go to router 1 back to router 1 and then so first things first we're going to do configure terminal okay and then configure terminal how we do um ospf eigrp same thing so it's going to be router if you do question mark one do bgp okay and then we do question mark we have to do an autonomous system number okay so the autonomous system number for here is sixty sixty five thousand sixty five zero zero one okay six five zero zero one okay so now when we're in here let's do the question mark now we're going to do network okay so in network uh actually what we're going to do first i i don't want to do the net network first so let me actually bring this over a little bit so i can see the neighbor so i'm going to do neighbor first okay and then our neighbor is going to be 8.8.8.2 okay that's the router two okay so dot two and then question mark and then we can do remote at a s with the remote autonomous system which is before we do that i want to do okay yeah i actually just did that all right so remote autonomous system and then that's going to be on router 2 so that's 65.002 okay and enter now we can do the network and then the network we're going to do we're going to do its local network so local um uh loopback and then the mask and two five five two five five two five five two five five okay cool and now if we do end wr and then show ipbgp and now we can see that we all right so there's another one so we can do show ip bgp summary okay and now in here i want to show something all right cool let me actually bring this down a little bit and you see here the remote autonomous uh the autonomous system four eight two two eight we got 8.8.8.2 is 65002 okay so another one we can use is neighbors we can do the neighbor okay and in here is a lot of information but if we go all the way up the important thing i want to show you let's actually make this bigger it's probably a little easier so a little thing that is very very critical see bgp state it's active it looks good right but when it's active that means it's no bueno so what this has to be is established and we're going to show i want to show you that in a second once we start configuring the other routers and the other networks and et cetera et cetera i just wanted to point that out because people like oh the link state or the bgp state is active why isn't you know routes exchanging et cetera et cetera but this is no good it has to be established okay so i think we're good on router one so let's go on to router two all right we can make this bigger so now what we can do here is do configure terminal and then in router two actually let's go back to router one really quick i want to do something really really really quick and let's do show ip route okay okay cool i just wanted to make sure this is a 24-bit mask and 32 is the the loopback right here i just wanted to make sure all right cool let's go back to router or two all right so in router two what we're going to do here is router bgp and then the autonomous system which on router 2 is going to be 65 0002 right let's go ahead and just double check that it's smaller okay right here we see this right here sixty five thousand two let's make this see if we can just widen this out a little bit okay perfect all right so now we can just do neighbor and then the neighbor is going to be from router 2. their neighbor is going to be 8.8.8.1 right 8.8.8.1 perfect and then remote as is going to be 65001 okay 6501. now we have an adjacency so now we can see that's up because that is our um our neighbor okay so in here now we can do network we're gonna do the local okay and the mask what the loopback i should say okay and then 32 bits okay and then the next one we can do another network which is going to be the 8.8.8.024 bit okay so 8.8.8.0 with a mask of 255.255.255.0 okay and now let's just make sure i think there's gonna be one more right here we have to do the 15 okay so let's do network 15.1.1.0 with the mask 24 bits okay hopefully you guys are following along okay and now we can end wr let's make sure it's show ipbgp perfect now we can start seeing neighbors and you see here let's make sure let's make this bigger autonomous system 65 000 one went right here is the the the loopback address and the next hop was its router interface right here at zero zero zero which gig zero slash zero slash zero and then it made it to our autonomous system which is our router so now we should be able to ping 1.1.1.1 perfect and we should be able to ping 8.8.8.8.1 perfect all right i think we're looking good so now we should uh let's see let's just let's look at here one one last thing i think we should be uh be okay but let's do one more thing i think let me see something show run include bgp okay show run just make sure i think i forgot one thing yeah i did i forgot i've got one one thing for the neighbor for zero three all right cool so that's why we have to check so let's go ahead and configure terminal and then router bgp 65002 and then neighbor neighbor uh 15 dot 1.1.2 2. and then remote and 65 0003 five zero three okay i think that should be good let's check six five thousand make sure that's the next hop okay perfect i think we are good okay so let's go ahead and do show ipbgp perfect okay show run let's make sure that's in there and 65000 perfect all right so we're looking good on router two okay so let's make sure we save that okay now let's jump on to uh router three okay so let's go to router three we're going to continue down the path of this configuration and so configure terminal and then router bgp and this one's going to be 65 0003 whoops perfect and now our neighbor is going to be 15.1.1.1 let's make sure bring this down a little bit and let's make sure let's go here okay so let's go down down down down down baby all right so 55 and then remote i as is going to be 6500 okay from router 3. all right now we have adjacencies there and then our next neighbor will be neighbor we're going to do 65 0004 right because 17.1.1. what is that two okay remote as yes 65 000. four perfect awesome so that's that should be good now now let's do the networks and then the network the first one is gonna be its loopback mask that 255 that's a 32-bit and then the next one is going to be the 15 network 15.1.1.0 with the mask of 24. okay sorry all right i think we're cooking so what other one we have to do 17 okay network 17.1.1.0 with a mask of 24 bits at zero okay i think we are golden all right let's um so from so from let's do show ip bgp perfect we're looking good so i'll explain what's happening here so for the network 1.1.1.1 that's on router 1. so from here the path is going to 65002 which is router two to sixty five thousand one which is router one so in order to so now if we go if we we should be able to ping 1.1.1.1 perfect and let's do traceroute 1.1.1.1 and we can see the route so the first hop is router 3's outside interface then it's going to router 2 right and then actually it's going to from from router 3 to router 2 interface right here and then to router 1. okay cool so let's do show ipbgp i wanted to show you guys yeah bgp um summary uh okay i just want to make sure everything is looking good here the identifiers 33 okay our neighbors perfect and then the last one will be whoops neighbors okay so now let's make this bigger for a second and see before i said it when it was active it's no good so when it's established it's good so now we can see that the state is established so that we're in good good uh good news let's go ahead and go down a little bit and this is what i wa right here perfect so active bgp state for this autonomous remote autonomous system 64 000 for 65004 sorry this external link it says active and the reason being is because we don't have a route on router 4 to know how to exchange routes with router 3. so as we can see here let's go back down so 7 17.1.17.1.1.2 which is router 4 we haven't configured that yet so that's why this is active and once we i want to leave this open and once we um once we configure router 4 which we're going to be doing right about now and we're going to come back up to that router 3 and then hit the up arrow and see it established okay so let's go ahead and configure router 4. all right so let's let's make this bigger and bring this down so i can see all the configurations that i'm doing all right perfect so now let's do configure terminal okay so router bgp and then this one is 65.004 perfect and then the neighbor will be 17.1.1.1 remote remote autonomous system 65003 which is router 3. okay so now we we have we've got a bgp adjacency so so now let's go ahead and neighbor or network sorry we just did the neighbor so network is going to be the local which is 4.4.4 for the mask of 32 bits okay and the next one is going to be router 3 so the the the the link between those two is the 17 1 1 0. so network 17 that 1.1.0 with a mask of 24 bits whoops okay i think we should be good so now we can do show ipvgp all right now now we're cooking so now let's make this bigger okay so to get to router 1 we have to go through router 3 router 2 to router 1. so now let's go ahead from router 4. the ultimate goal is to ping from router 4 to router 1 and then from router 1 to router 4 so we can communicate and traverse through the whole network all right so let's paint 1.1.1.1 perfect and traceroute 1 and 1.1 perfect we can see that and let's go ahead and go we're almost done here so now let's go ahead and go back to this router now this neighbors came up now let's go ahead and hit okay and let's go all the way down to me a lot of stuff here but let's go back to what we're looking at before which is right here bgp neighbor 17112 yet because the autonomous system was router 4 which is 004 and now it's established it went from active to established okay so i think we are golden you know now let's go ahead and go to router one the last uh the last step which will be you do show ipvgp summary okay perfect we can see a summary we can see the router identifier which is a loopback perfect so now let's go ahead and ping 4.4.4.4 a bing all right so now let's trace route 4.4.4 and we're going from router 1 let's go here uh let's do this so hop 1 is 8.8.8.2 which is router 2. the next hop is router 3 15 right here and the next hop is going out of gig zero zero to get zero zero and router four so we are good so we do show bg show ip route and we can see the bgp routes and we can just do let's go up and do pgp so we can just so we want to look all at all this craziness so we can see all the bgp neighbors of the bgp routes and vgp also has its own routing table which is show ipvgp okay and this is how it's getting to each individual hop and for example network one uh you know this is the path you know to get to the network two it's going through this autonomous system network three is going through these two autonomous system network fours going to these three et cetera et cetera all right so that's pretty much sums this video up i really uh really appreciate you guys joining today with this bgp lab and if you have any questions about the lab give it a go yourself configure it the same exact way and um if you want to i think i don't remember if i did but let's go ahead and on router 4 show ip interface brief so you guys can you know simulate or emulate the same way that i have this configured and um you know try to try to give it a go all right so i really thank you for joining and please like subscribe share with your friends and family and more videos to come i really appreciate it thank you and stay tuned have a good one you
Info
Channel: InfoSec Pat
Views: 1,017
Rating: undefined out of 5
Keywords: BGP, Border gateway Protocol, Cisco, Packet tracer, Cisco Packet Tracer, bgp in networking, BGP routing protocol, protocol, network, bgp in cisco packet tracer, BGP configuration, ccna certification, CCNP, networking configuration, show bgp commands, show bgp summary
Id: _x9bbJ3bic4
Channel Id: undefined
Length: 22min 30sec (1350 seconds)
Published: Sat Jan 18 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.