Configured DHCP For Multiple VLANs

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone once again welcome to PM networking guys today we are going to learn how to configure DHCP on router for multiple vlans right suppose uh we have user in multiple vlans and we need to configure a DHCP service on router so today in this video we will you will learn how to configure DHCP on router as you already know how to configure DHCP on router right I have already make one video on it but today we are going to learn how to configure DHCP on router for multiple vlans right so in last video we had discussed that how to enable DHCP on router for a single VLAN so today we are going to understand how to configure DHCP for multiple vlans so first of all as you can see in my topology there are two computers in VLAN 10 and there are two computers in VLAN 20 right these all computers are connected through one switch right so here we will create VLAN here we will assign these two ports in VLAN 20 and these two sorry in VLAN 10 and these two ports in VLAN 20 I will configure this port as a trunk Port here on the router we need to create sub interface so here we will create I will create two sub interface and I will configure DHCP services for both VLAN and here you can see network for VLAN 10 is 192.168.10.0 24 and network for VLAN 20 is 192.168.20.0 24. so let's start configuration from switch first of all I am going to configure this switch so let me take access ok so here first thing that we need to configure on this switch is we need to create VLAN here so go to configure terminal mode after that VLAN tan suppose name is uh VLAN 10 right now we need to create VLAN 20 here so VLAN 20 name is VLAN 20 right now we are going to assign these two ports in VLAN 10 so ethernet one slash zero to ethernet one slash one we are going to assign in VLAN tan so interface range ethernet one slash zero to one and switch Port mode access definitely then switch Port access of VLAN 10. in the same way interface range e one Slash 2 2 3. switch Port mode access switch Port access VLAN 20. fine now you can verify so a VLAN brief here you can see these two ports are member of VLAN tan and these two ports are member of VLAN 20. fine now I am going to configure e0 0 on switch to trunk Port again go to confetti after that interface e 0 0 and switch Port mode trunk fine and encapsulation here we can Define switch Port trunk encapsulation suppose encapsulation protocol as you know we have two types of encapsulation protocol first one is Dot 1q and second one is ISL so here you can see we have three option either you can configure dot one queue and then you can configure ISL or Auto this one is negotiation right so with the help of negotiation it switch will decide that which protocol I will use on this port so here I am going to Define dot 1q encapsulation protocol right now guys configuration of switch is done let me save the configuration and now I am going to configure router so let me take access of router first of all here I am going to configure DHCP right for VLAN 10 and 4 VLAN 20. so definitely we need to network just do it guys it will take few second okay now go to confetti after that IP DHCP first of all let me exclude one IP address that I will assign on other default gateway interface so 192.168.10.1 right up to that IP DHCP pool suppose pool name of this DHCP service is VLAN 10. and here I am going to Define Network 192.168.10.0 submit mass 255255255.0 and default router is 192.168.10.1 this IP address I will configure on the sub interface of this router right we will create two sub interface four wheel and 10 and 4 wheel and one four wheel and 10 and one four wheel and 20. so on the sub interface which I will create for VLAN 10 on that interface I will run this IP address right and that will become default gateway for all the user who is sitting in VLAN 10 okay now let me exclude one more phcp one more IP address from dhcp's a server so ipthcp again exclude 192.168.20.1 this time I am excluding first IP address from second Network and IP DHCP Network okay sorry pool and this time poolage pool name is suppose VLAN 20 right and then Network 192.168.20.0 255.255.255.0 and default router is 192.138.20.1 now interface F 0 0 here we need to run no set command only here I am not going to configure any IP address on the physical interface right so now I am going to create logical interface on this router so interface F 0 0 Dot 10. okay so suppose this one is my first virtual interface on this router so here first thing that you need to configure is encapsulation protocol so encapsulation protocol that I will configure here is dot 1q encapsulation dot 1q for which VLAN for VLAN 10. in the same way here now I can assign IP address as well so 192.168.10.1 is my IP address for this interface and this IP address will become default gateway for the user who is sitting in this VLAN right so that's why I have defined default gateway uh this one in DHCP okay now let me create one more sub interface over here zero slash zero dot two and this time IP address first of all let me uh configure encapsulation protocol dot 1q4 VLAN 20 and then IP address is 192.168.20.1 255.255.255.30 okay now guys configuration of router is also done now let me save the configuration done okay now here on this PC I am going to assign IP address so see first of all on this PC this PC should get IP address from which we land from VLAN 10. so here IP DHCP see definitely this PC will get IP address from VLAN tan so DOTA okay done see IP address is 192.168.10.2 24 and Gateway is 192.168.10.1 can I ping my Gateway 192.168.10.2 or 10.1 sorry so yes I am able to ping my Gateway right can I ping okay just wait first of all let me assign IP address on other machines so on this machine on pc4 this machine will also get IP address from VLAN 20. IP DHCP C this machine will also get IP address from VLAN 10. not from VLAN 20. so C 192.168.10.3 slash 24 and Gateway is 192.168.10.1 right now this PC will get IP address from pc5 will get IP address from VLAN 20. so let me check here and IP DHCP C this machine will get IP address from 20s Network see here IP address is 192.168.20.2 and Gateway is 192.160.20.1 can I ping my Gateway 192.168.20.1 yes see I am able to ping my Gateway now let me assign IP address on PC 6. IP thcp so this machine will also get iPad is from 20 Network now what do you think that can user who is sitting in VLAN 10 can ping the user who is sitting in VLAN 20. what do you think guys see what will happen if this PC now from PC number three which is member of VLAN 10 I am able to ping my default gateway yes I am able to ping my default gateway so can I ping the PC who is member of VLAN 20 192.138.20 Dot two C I am able to Ping so here as I configured DHCP for what both VLAN I have done the configuration of inter vlam routing by using router on a stick method as well right so that's why intervene communication is happening and PCs are getting IP address from the separate vlans so suppose if there are more than 10 million or more than 100 will and no problem at all we can configure DHCP services for each VLAN just what we need to configure on router is sub interface so Suppose there are 10 villain so on the router we need to create 10 sub interface okay guys so if you like this video please hit on like button if you haven't subscribed my channel guys please subscribe this channel we will meet soon in next video till then stay safe bye bye but always keep in mind if you are learning something from this channel make sure you have subscribed this channel right because if you are getting something no it's become your responsibility to support this channel to grow thank you guys thanks for watching
Info
Channel: PM Networking
Views: 31,550
Rating: undefined out of 5
Keywords: computer networks, dns, cyber security course, ccna, computer network, ccna 200-301 full course, computer networking, comptia network+, comptia network+ full course, network security, security+, vlan, router configuration step by step, ccna course, palo alto firewall, troubleshooting network problem, bgp protocol, network engineer course, ccna 200-301, network engineer life, technical course for network engineer, ccnp, ccnp full course, dhcp, dhcp for vlans
Id: 1ff_RXIndJQ
Channel Id: undefined
Length: 12min 41sec (761 seconds)
Published: Sun Jan 08 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.