Well welcome everyone to the DHCP IP version four, switch live. So now we're not doing a DHCP server on the router, but on a layer three switch, always pretty much the same. So a couple things you got to do, as you can see, yeah, you can see, I have a combination of layer three and layer two switches. So those are a couple things that we got to do in order for the two PCs below. For them to receive an IP address, now want to make sure that these PCs as we knew their addresses, that they get people's. Alright.
And the ACP is not new to us, at least for now, for some of us, I mean, if you're in the ccmp switch, you've gone through the CCNA you've gone to the ccmp route. I'm sure you've done DHCP on routers before. So it's pretty much Fiddler is pretty much similar on the layer three switch. Now obviously, the way that we're going to create this gonna be through VLANs. So we have separate broadcast domains. And we need to eyes as usual, we're going to create the VLANs on the core router, then we need that means that we need to have we need to trunk ports 22 and 23.
Right. And then we need to turn the, which is your car called the corporate as well. It could be your core distribution, what have you. They're both together now anyway. And then on your access layer switches, there'll be turned into VTP client mode, it'll turn the BGP into client mode. So we'll take it a step at a time.
We'll start with the core switch first. So let's go ahead and do this. I want to click on the course which I'm going to maximize this so you can see. All right, so Alright, so first, give it a name. So we know what we're dealing with. So hostname Core.
Okay, and our core core doesn't matter are just the hostname. So one of the first things I want to do, or enable IP routing, in case you want to use any routing protocols or what have you, even though that wouldn't be the case here, because it's directly connected anyway. But for whatever reason we need to route IP routing is on. Now let's go ahead and create the VLANs. So we're going to create the BNF we're gonna have VLAN 100. And we're gonna name it CLR 100 for classroom 100 VLAN 200.
Name CLR 200. Pretty simple, pretty straightforward. Not a big deal. I would do show VLAN brief. And it's a good you know, social and VLAN and they start seeing every last thing on there. Just take a look there, your VLANs right there.
So what we're going to do now is we're going to create the VTP domain VTP This domain was okay, so that's the VTP domain. And then we need to trunk the ports. In this case we're, we're trunking the ports going down to the access switches. Now remember, this is a layer three switch, so it's not normally switch port trunk. So when you do the in range command, F Zero slash 22 through 23. You're going to do switch port trunk encapsulation dot one Q, I not remember I'll give you an error.
And then you can do your switch port mode. trunk, and then your port the trunk. So what did we do? We created the VLANs. We created a VTP domain, and then we actually trunk the ports. Now let's go ahead and let's configure the DHCP server.
So it's no big deal. Just like normal IP DHCP pool, and we will pool for the VLAN 100. Okay, and you have your usual commands that you will for DHCP. So the default router for this is going to be 192 dot 168 dot 100 dot 253. And the network is going to be 192 dot 168 dot 100 dot 0255255255 dot zero. Now you're probably saying where's this guy getting all these numbers wrong?
Hey allows for the top of my head, whatever, you know it's easy slash 24 network, so it's no big deal. So we created the pool. So let's create the pool for at least for the 100 Let's do a pool now. For the hours let's go back and go forwards again. No, I'm just saying all the way I guess. The ACB the HCP DHCP Wow, such a good real time type DHCP pool And that's called VLAN 200.
I same exact thing befall router 192 dot 168 dot 200 253 and then the network is going to be 192 dot 168 dot 200 dot 02552552550 Okay, and that's done so we're gonna do is now is the exclusions, the exclusions, exclusions first you can do it you know afterwards like I'm doing right now so it really doesn't really matter IP DHCP was put see first TCP IP address of course is gonna be the router 192168 or the layer three right acting as a router when I 2168 or 100 253 it's going to all barrel and do 100 200 dot 253 now I haven't put in any of the IP addresses for These particular VLANs so you need to go into the VLAN interface a VLAN 100. Okay, and then put IP address. This is the default gateway 192 dot 168 192 dot 168 dot 102 532-552-5525 to zero, right and then we're gonna go into a notion even though I said it turned on, I'm gonna do a no show anyway, just in case it's VLAN 200.
Okay, and we'll do the same thing IP address and we look at the 104 hundred percents, we're going to go back and change that 192168 that's 4125 202 5325 525-255-2550. All right. So let's go back into VLAN 100. And we're just going to Take it out, just in case in the lobby for any house one. Who's gonna take it out? One No, no problem.
Really? Okay. IP address 192 dot 168 dot 102 53255255255 dot zero, enter. Do Wr. So that's the DHCP server. Let's take a look at our configurations.
Just do a show start or short run whatever makes you happy. Okay, here are extra addresses 100, that 253 and 253. Here's our pool, the 100 dot zero, the whole entire network, and there's a gateway address right there. All right, and we've enabled IP routing. Doo doo doo doo doo doo doo doo doo. You go down, you go down, you go down.
Oh, we see our two trunk ports right there. And he Here we go, we have VLAN 100, we have the IP address a 1253 is what it should be. And VLAN 200. There's the IP address there, and we've turned them on. So we should be good to go. Alright, but now just because we did that in layer three doesn't mean it's automatically gonna magically going to come down.
Now we got to configure these switches down here. Alright, because we got tournament two clients. So let's maximize that. All right, and as I saw down, down it goes with a trunk. So we're going to do is name this VLAN 100 config T. Host? host name.
VLAN 100. All right, so we're gonna do VTP mode for client, right? And let's see what happens. Show. VLAN do show VLAN. Brief.
All right, and there's our two VLANs that came down. Awesome. Do show VTP That you see the work line, there's Laz, right? That's our domain. All right, so now we're gonna assign ports, assigned that VLAN to those ports is the 100. So we're gonna go int range, F Zero slash one, dash 15.
And I want to do switch, Port mode, access, and then switch. Port Access VLAN 100. Okay, but when I done, even though they're part of that VLAN, they're still not gonna get an IP address, because they need a default gateway. There's no IP address on this switch. So we need to make sure there's an IP address on here. So we're gonna put the IP default gateway as 192 dot 168 dot 100 253 correct for VLAN 100 Which is this particular switch, that's what it's for.
We're going to put in an IP address to make it part of the same network IP address 192 dot 168 dot 100 252 255-255-2550. Now some of you might be wondering, hey, why didn't you then put that as an excluded dress? I should have, I should have but I know the ACP started by 1234. Why have you so I know that if I assign a 250 tour dress, I'm not concerned about that. Now in the end VLAN 100 I am going to do a no shot even though I said it, did it. I'm just like that.
Okay, so I believe we should be good to go. So we should take a look at our let's go do it. Let's do w our probably our stuff. Always, always remember to copy, copy, run, start right or w or whatever the ledger doing the test. And then things change day to day. she'll start All right here we got our VLANs on our ports.
Awesome, awesome, awesome. Nothing, nothing. There we go. You know what this IP address, there's our IP address for VLAN 100. And here we got the default gateway. Awesome.
All right, and we do a show in trunk. And we see that we're trying to we wouldn't be strong, none of that stuff will come down. So let's see here. This guy's getting an IP address. And you got 106 Okay, wow, okay. 100 105 by receiving an IP address, and you see the default gateway is 253.
So we're good to go there. So let's go to the other one. Now that she always makes sure he has no IP address, let's get rid of that. Oh, he's got it people Cool. Cool, or sad? You can network with people.
I don't know what happened there. You don't know what were the people. Okay. enabled config T, false name. This VLAN 200 members switch the VTP mode to clients so VTP mode client Okay, let's do show VLAN brief There's our VLANs right there are some so we're going to do end range F Zero slash one i mean you know by now these this ports I was used I so switch port mode access, switch port access VLAN 200 in this case Okay, so now they're part of that so now we're going to give the IP address correct IP default gateway 192 dot 168 dot 200 dot 253 and then int VLAN 200 All right, and as your IP address one IP address the network when I choose 168 dot 202 522 552-552-5550 and we're not sure anyway, I will make sure that nothing goes wrong. We don't do our Ctrl Z.
So we should be good to go. We assign the VLANs as you can see here. Alright, there's a solid VLANs. Okay. And there's our IP address right there for the VLAN 200. There's our default gateway.
And we do a show in trunk because I know you didn't see that port trunk. There's the four of those automatically trunk for the one above. We should be receiving an IP address or an ipv4 address from that DHCP server on top. And let's renew it. And there you go. He gave a little one about that.
One it wants to say 200 dot one, and then you got the right default gateway. Cool. And that's all Is this pretty much the same, there's only a couple extra steps because of the trunk and the way that I do the VLANs, which is on the central switch, let the VLANs come down because I created VTP domain, I sought out a trunk the ports, and then you want to put the access layer switches on the same network and give it a default gateway, which in this case, is that layer three switch. That's it, you're good to go and your IP addresses, obviously, you know, always as well to the switch. Well that's it. Very simple, very easy to do.
There's a couple more steps here in there. But as far as the creating the DHCP server for IP version four, same deal, same deal, not just on a switch See you in the next