hi everyone so in this tutorial I'm going to be showing you how to set up a computer network with a dedicated DHCP server so we're going to start off with setting up our environment with all the different PCS switches and router so let's get started okay so to get started we're going to use my favorite router which is the 2911 I just find it the easiest it's got three connction ports but I going to show you real quick the PT empty and the PT router so these two I'm just going to put them to the side because they like to load up first um so we're just going to grab our switches I always just grab the same one but also I'm going to put a PT empty so that I can show you how that one works so for this tutorial we're just going to do two switches um just for this tutorial I think it's going to be a bit easier than having multiple devices that we've got to put in so we're going to start off with we need a server which I'm just going to rename to be uh the DHCP so we've got our two switches our DHCP and now we're just going to add in a bunch of computers Okay so we've got our different computers I might just add another one over here just because why not okay so before I connect these up I'm just going to show you how these ones up here work so if you wanted to use these this is the PT router empty and you've got all these different connections over here they provide information the one I like to use is the gigabyte ethernet Network so in this empty router you can actually it's going to tell me you got to turn it off first you got to turn off with the little switch um and you can drag into all of these ports here uh same with the switch switch here you can configure the different ways your fast ethernet your gigabyte that sort of stuff and the PT router comes with some already in there if you turn it off you can remove what you want um you can configure it that way so I'm just going to delete them and let's start drawing in our connections wonder if I can zoom in without everything being cut off let's see yeah we can just zoom in enough that you can see everything a bit better so we're going to start off with our connections I'm just going to use the automatic one to do all these ones I just find it to be the easiest option when connecting this way so once you're done connecting let me select it please okay so and then we're going to go to uh copper straight through so I want to connect up the first switch with 0-0 you can use any there and 0-1 to switch to so I'm just going to put in a couple text boxes just so I can clearly see what's happening so switch zero is over here and it's going to have the IP address 192.168.10.10 d0 so now we're going to do the same over here switch 1 uh 192.168.20.10 D1 because it doesn't have DHCP server so we've got those two put in now and now it's time to connect up our server okay so the first thing we're going to be connecting is the server you don't want to start off putting in any of the IP addresses into the router we start with the server and get that set up first so you want to open up the server and you want to go into IP configuration and it's very important the server needs to be static because you need to have a dedicated IP address for it after we set this up all the other PCS will be a dhtp which will to automatically assign IP addresses you need the server to stay the same so we're going to put in here cuz this side of the switch is10 do1 so for the server we're going to give it an IP address of 1 19 2.1 68102 this sets the default to be the first connection on that switch then we want to do default gateways 1 192.168.10.10 def server pool and we going to change this to be switch one we want to give it you could also give this a different name but we're going to do switch one and switch two because we're using two switches um also all letters in the name so the default gateway for this one we want to set it to be 1 192.168.1.1 now it's important the start IP address for this side needs to be three because we want the we've set the dhtp server to be two which is the first device connection so you want the starting IP address for this switch to be three so that every device after that is assigned a different IP address to the DHCP we're going to set the maximum number of users to 20 I mean you can set that to whatever you want but that's just what we're going to do and you want to press sorry add CU it doesn't like you to change server pool uh you need also make make sure you have that switched on that's important both switched on and now we're going to be adding our second one which will be for switch two oops so now we want to change it to be switch two the default gateway is 20 I'm going to change this to be 20 now on this side because you don't have a dedicated server you can have it start at two because whatever device connects first can be two because there's no server there to a problem so now you want to press add so you've got server one switch one switch two setup and You' just got the default server pull that just default in there so now we can work on configuring the router so now we're going to be configuring the router so you want to click into router and you want to go to the CLI I'm going to type no because we want to get started to do our own configuration so we're going to connect up switch one which is the G 0-0 remember if yours is different you want to put in a different bit of information so we going to type enable conf T now in here we want to do int J G sorry 0-0 so now we're into the interface for the connection with the switch one so we want to do IP address 1 192.168.1.1 25525 5255 enter uh now you want to set the IP helper address so IP helper Das address 1 192.168.10.0 now this is the static address that we gave to the server if you're using a different IP address you just need to tweak it to the IP address that you set to be static in the server so going to enter that now we want to type no shutdown followed by do write memory and then exit now we're going to repeat so we want to cuz we're still we're still in the configuration so you don't have to go into enable confy you just have to exit out of configuring that IP address so now we can go into the next one so we want to do int G move over here this one 0-1 so we want to do G 0-1 A handy if you use your up Arrow you can go to the ones you've put in previously so then you can just go across and change the IP address instead of you having to retype it all out again so now you want to press enter and now you want to go back and you also want to add in the IP helper address same as last time enter then no shutdown do write memory exit now I'm just going to exit it completely and just to be safe I'm going to write right memory again I just make sure everything's configured and saved so now we have our connections done if we fast forward a little bit everything should be working so now we need to go and configure all the PCS okay so now we're going to go into each of these PCS you want to go to desktop IP configuration they all come default on static and previously you would have put in the IP addresses but this time you're going to go to DHCP and I'm going to see if it will connect yep it's given us an IP address so now we want to move on to the next one and you just want to repeat this process each time go through it's helpful just check and make sure just a bit it's given it four and then gone up to seven still the same one so that's fine it automatically assigns IP addresses um you could close out of this window if you wanted but I think it's important just to check and make sure that it connects before you exit so it looks like everything is connecting up correctly so everything's gotten its IP addresses so now we're just going to come down here and you can just press fast forward and it just you know runs through the connections so it's now run through the connections and we're going to start testing it okay so let's run some checks let's open uh pc1 and let's try ping 192.168.1.3 and see if we get some results yep let's see what happens if we ping the server I'm actually curious we got some results and I think the other PC is four yep so that little Network there is working oops desktop and we're going to try be here 1 192.168.20.10 cool so they're all working in their own networks so each network is working so now we're going to do another test within simulation so you can test out the devices in uh simulation to be able to see the different packet headers so if you open up any of your computers and you just come over here and you go just change it to static and then back it won't update here because you're in simulation and the simulation is paused but you can come in here and see that this is an outbound packet header and you can look through the different information in here the destination ports The Source ports and what's happening within your little Network that you've made um and then you got this one as well so that's how you canate create them uh but it won't automatically update with this address in because you're in simulation and the simulation is paused so if you go back to real time it's now gotten its IP address back again so this is in real time it comes in quickly and it actually will give you different addresses at times sometimes it's the same sometimes it's different and that's how it works uh because it automatically assigns the address to the devices as they connect and then once they've disconnected the devices can each time they reconnect there's a different IP address that's how it works so that you can have different devices connecting at different times that's also why you have the server being static so you can call the server in other switches um bya it set address uh so yeah so that's how you can set up a server in Cisco Packet Tracer with different switches if you wanted to add in more switches you would do the same process of configuring the router and each time you configure to add the next switch with its connection you also add in the IP helper address which is for the DHCP DHCP server so that's how you can configure multiple switches with multiple computers in Cisco Packet Tracer I hope that helps