Configuring DHCP using Cisco iOS - DHCP Server & DHCP Helper

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everybody and welcome my name is Keith Gebhardt with learn tech training and in this video we're gonna discuss how to configure DHCP on our networks okay now there are two ways we could configure DHCP one being we could use a dedicated DHCP server the other we could configure our router to run DHCP now you're wondering why do we have four different topologies here well a lot of people keep asking me how do you configure DHCP on an inter VLAN routed network so I'm going to show you how to do it both ways we're gonna over here learn how to configure DHCP and then inter VLAN routing environment on the router and the same environment using a dedicated DHCP server now please do not forget to subscribe and like this video and if you have any questions drop them in the comments and I will get back to you okay so let's go ahead and open up a blank cisco packet tracer lab and begin our labs open let's go ahead and take a 2811 router we're gonna grab a 2960 switch while we're at it we're gonna grab a pc which is a desktop under there and just grab a laptop and drop it there okay so now we need to connect the laptop to the router on fa0 1 to the feci through net 0 port on the laptop and then we grab 0 0 on the router to any port on the switch it does not matter which port we connect to the switch because it is all one broadcast or made ok so now that we have these can are plugged in at least let's go ahead and I'm gonna go ahead and take make two notes here so this is going to be the 192.168.1.0 slash 24 which is a Class C subnet mask and then we're also gonna make this the 192.168 that to that 0 network with a Class C subnet mask as well so let's go ahead and configure this router so these devices can communicate together right so we're not going to do any basic switch configuration we're just going to configure DHCP so we're going to go configure terminal interface fa 0 0 is going to be IP address let me just take a look what I do 0 0 is going to be the dot 1 so 192.168 that 1.1 is the default gateway address and then we're gonna do no shut and then we're gonna do an interface FA 0 / 1 which is going to be IP address 192.168.1.1 again classy subnet mask no shutdown and now we need to configure our DAT people so if I do die P DHCP let's go ahead and just question mark that so you can see what it is now we're not relaying anything we're gonna set up a pool okay the pool is where it tells this the router to act as a server if you will and then you could also notice we could exclude addresses now in here we're not gonna exclude any addresses but you may want to know if you have a couple web servers sticking off the end of this and you're running DHCP you want those web servers statically you don't want those leases of the DHCP address on those web servers changing so you're not going to use DHCP on your web servers so that would be an instance where you would exclude addresses but again we are not going to for this example so I'm just going to type in pool and then again you need to type in a name so we're going to do I PD ATP pool dot one for the dot one network and then we need to set a default router okay this is essentially your default gateway so 192 168 1.1 and then we need to give it its network address so the network address for this network is 192 168 that 1.0 with a classy subnet mask right 22 notations 24 and then we could go ahead and is't that but now we only have one side working so if I go ahead and click this computer desktop and I I just hit DHCP it's gonna work right we're getting everything loaded but this guy is not configured yet so we need to configure the right side it's the 2.0 Network to have a DHCP pool so let's go ahead and do a IP dhcp pool name dot open that name just dot two and then we're gonna do a default router 192.168 that to that one again because that is the default gateway we gave that interface and then we're gonna do the network address which is 192.168 that 2.0 with a 24 cider notation which is a class ii subnet mask okay so we could exit this we could do right and let's go ahead and take a look at this laptop see if we got a DHCP connection and here you go you could see we got the dhcp connection and again I like verifying my connections are working some 192.168.1.2 so we will type 1.2 and it's gonna send its art broadcast out find the MAC addresses to the IP addresses and that a big battle boom guys we are running so that is DHCP configured on a router so the router is acting as a DHCP server so I'm just going to go ahead and throw that up there in the corner so the same scenario where we have only two subnets right we're gonna go ahead and create another router this is going to be the 2011 router again we're gonna grab two switches this time one there one there and let me just flatten it a little bit so it's not taking up too much space I'm going to grab a we're gonna grab a couple desktops just so we could see that it's accessing multiple devices a couple laptops here and then let's go ahead and connect these / my server right we need a server to act as a DNS now we could connect these so the server's gonna go into any port on the switch again it does not matter we are not separating broadcast domains on the switch we are not V landing these switches so it does not matter all ports on a Cisco switch by default or what VLAN one so one broadcast domain we don't need to worry about it let's go ahead and plug the switch into port 0/0 on the router again and then we're gonna go ahead and plug the router from 0 1 & 2 the right side again it does not matter which switch ports you use right into the laptop and again right into the laptop okay so the first thing we need to do is set up our EAP server so I'm just going to make a note here DHCP server ok in fact we're gonna underscore it so we can do it again so I'm gonna set up this DHCP server I'm gonna go to the desktop and a static address that remember our servers we want static addressing so they don't change lease edges so the DHCP lease can timeout or reset if a device isn't being recognized over the network long enough it'll get rid of it and give it to buddy else okay so we don't want this adverse change so we're going to keep this static so it's going to be one 92168 that 1.2 because I want to use that one for my default gateway 192.168.1.1 and we're not worrying about DNS server we do not need to configure that at this time so now that we configured our desktop our physical Ethernet card on this server we need to go to services DHCP and we're just going to rename this dot 1 Network default gateway is gonna be 192.168.1.1 and then we're gonna start our IP addresses at 3 since this guy is dot - we don't want to overlap him and we're just going to give it I don't know 20 different IP addresses okay so I'm gonna save this it's going to create a new one because you can't for some reason delete the default one on Cisco packet tracer here and now we need to create a second one so I'm just going to go ahead and type in to network this again would be to that one and we will change this guy at a 2.3 now he can be - dad - because he's only he doesn't have a server right so again we will use 20 addresses and we're gonna add that and we are good so the only thing else we have to do is turn this on now when I turn that on if I go to any of these computers you're gonna see that they indeed would do in fact acquire an IP address through DHCP and again if I check him out he will again acquire his DHCP address saying ok now I gotta click DHCP so now that they acquired their DHCP we need to configure the router to pass that information along and it is simple simple simple so we just go no enable configure terminal and we need to configure the interfaces as use over interface FA 0 0 that's going to be IP address 192.168.1.1 255.255.255.0 and now we need to give what's called the IP helper ok help address hi IP helper address and that's going to be the address of our DHCP server and we gave that a matress of 192.168.1.2 ok now once we do that we're good you just need to do no shutdown alright now we didn't need to do interface fa0 one IP address 192.168.1.1 and then again IP helper address 192 168 at 1.2 for that server address and then no shutdown okay so now that that's up dude right just so it saves it and we could go ahead and give this a minute it's gonna take a little bit you could see these leaked status lights are still coming on so let's just give that a moment here I'm gonna pause the video so we don't waste any time and now that it came back on we could go ahead and grab our laptops switch them over to DHCP and there you go you could see all the information filled in nicely ok we go back to this guy hit the acp and it feels a nice light now if you ever get a some kind of reason it failed it didn't go through that's most likely because it didn't it didn't register it didn't pull all the information over yet sometimes with packet tracer DHCP works slow so don't panic just give it a couple minutes and it usually goes through for you so the next example we need to do is showing how to implement DCP on a VLAN network okay so inner VLAN routing network we want to add DHCP so we're gonna go again take a 2811 router and we're gonna grab our switch which is my favorite the 2960 and then we're just going to grab three pcs ok and one two and where's my third one three now go ahead and do yourselves a favor so we could save time just go ahead and copy this ctrl C and then V and grab the highlighted gray ones because we're gonna put those over there and do something with those in a minute so the first thing we need to do is program the switch or configure the switch so we're gonna do enable config T VLAN 10 name left ok VLAN 20 name middle and VLAN 30 name right okay just to keep track of them I'm gonna do interface FA no we're not gonna do an interface okay we're gonna do yes interface range FA 0 1 through 8 switch poor mode acts and then switch poor access VLAN 10 and then we're gonna exit that with new interface range fa 0 9 through 16 and we're going to do a switch port mode access and then switch port port switch wi TCH port access VLAN 20 and then we're going to exit that interface range fa 0 17 through 23 and that's going to be switch for us to bi TCH guy keep doing that mode access events which port access VLAN 30 now we could exit that as two interface FA 0 24 switch poor mode trunk and then switch poor native VLAN 40 did I create VLAN 40 no maybe do show VLAN brief I did not create VLAN 40 so we will go ahead and create VLAN 40 now exhibit VLAN 40 named native ok alright so we are good on the switch let's go ahead and plug our computers in we need to plug them all and using a straight-through cable and again it matters now which port you're using because we separated broadcast domains on the switch so this will be 9 that I think and then this will be something over 17 or 18 let's just do a 90 minutes in the middle ok so these are all in different broadcast domains now and now we need to set up our trunk port and we're just going to use your 0 to 424 on the switch again that room that matters now we need to go to the router know we need to do enable Big T and then we need to do interface fa 0 slash 0 dot 1 encapsulation dot1q 10 and then we need to do IP address 192.168.1.1 cue 5 5 2 5 v 2 v 5.0 and then we also need to do exit interface fa0 I forgot we're not putting a router on this or assert a dedicated server on here so interface of a zero zero and cap dot1q 20 I P address 192.168.1.5 255 255 dot 0 and then and or exit and then we need to do interface FA 0 dot 0 dot 3 and cap that 1q 30 IP address 192.168.1.1 when you do interface FA 0 / 0 dot 4 and cap that 1q native up 40 native okay exit now we need to set up our dat people but we need to set up how many well we have three different networks communicating to this router so we need to set up three and to do that IP dhcp pool and we're gonna do left and then we are going to do default router there's gonna be one nine two one six eight that one that one right and then we need to do network 192.168.1.0 255.255.255.0 exit IP dhcp pool middle and then we can do default router one nine two one six eight 2.1 network at 192.168.20.10 and exit and then we need to do IP dhcp pool right IP or default router 192.168 3.1 network 192.168.0 255 255 255 dot zero exit and then we can do well that's it but we need to do interface fa 0 0 no shut and everything comes up do right and let's wait for this link wait to come up and now that they came up we could go ahead and look at our devices and here we could see if we select the ATP everything comes in nicely for us okay I'm not gonna test this we are running out of time here and you can see I've already configured this switch I already set up everything like I did on this network except I did not program at the router yet okay so go ahead and set up your three VLANs just if you have to rewind the video set up everything like you did on this world like I did on this one on this network then add your server and we plug the server into VLAN 10 any port on VLAN 10 will suffice okay I'm gonna add just this guy to 192.168.1.2 255 255 and default gateways going to be 1 2 1 6 8 that one that one and let's go ahead and add our services ok services so we got to do DHCP and let me just open this up and we have to add a 3 now ok so I'm just going to use the server pool as the v110 so 192.168.1.1 and then one we're gonna use 3 and we're only gonna give it 20 save and now we need to just do 2 when I give that to and that to add right and then we need to do 3 3 and at 3 ok so that's good we got to turn it on turn that on now the computer and VLAN 10 will indeed get access because he is in the same subnet right so he's communicating directly to that but anything else outside the sudden I remember we separated the broadcast remains on the switch so we got to do our sub interfaces let's go ahead and enable config T interface FA 0 0.1 and cap dot 1 q10 IP address 192.168.1.1 to 5 5 to 5 5 to 5 5.0 and here we will do an IP helper address 192.168.1.2 exit interface FA 0 / 0.2 dot1q I'm gonna go ahead and pause the video so we don't run out of time go ahead and do this for interface two and three and once you address all those encapsulation some interfaces do an interface up phase zero slash zero no shutdown do write memory and now once that link light comes on we will have DTP access to the rest of our hosts okay let me pause the video and now that you see the link light coming back on we can just go ahead and take any of our computer's selected over to DHCP and it will populate the information for us okay so there you got to see how we have two different broadcast domains with a dedicated web server and the IP helper command we also got to see again cube broadcast domains to subnets using the router as a server we got to see the router as a server through a VLAN and network and Inter VLAN routing and network and the same network which is being routed inter VLAN routing with a dedicated DHCP server alright guys so I hope you found this helpful and if you have any questions again you can reach out to me and well I'll see you later
Info
Channel: LearnTech Training
Views: 258,885
Rating: undefined out of 5
Keywords: How to configure DHCP, DHCP, relay, DHCP Relay, DHCP on Cisco Router, configure dhcp, configure DHCP on Cisco, Configure DHCP Server, Cisco, agent, router, ip, helper-address, Packet, Tracer CCNA, CCNP, Free, Training, School, bootcamp, easy, learning, network, engineer, vlsm, routing, switching, vlans, ospf, IP helper, Network Tutorial
Id: GCaR8e-16bs
Channel Id: undefined
Length: 18min 56sec (1136 seconds)
Published: Tue Jan 10 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.