How to Configure DHCP on a Cisco Switch | Configure DHCP Server in Cisco Switch and Exclude IP range

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello friend welcome to second part of this video tutorial in first part of this video tutorial i show you how to change the hostname of your cisco switch how to set the enable password to your cisco switch how to create a vlan in real cisco switch and how you can assign the ip address and interface to the vlan also i show you how to enable the intra vlan routing we will continue the same setup and in this second video i show you how to configure the dhcp server for your vlan so your end devices will get the ipads automatically also i show you how to exclude some ip address so that will not assign automatically to your pcs so let's start it the first command i will type here is enable and i set the enable password in last video that is cisco i type my password cisco here exit to see the switch configuration i type command show run enter and here is it here you can see my interface assigned to vlan the first time interface assigned to vlan 10 and next 10 interface assigned to wheel and 20 that we did in last video and the next 10 interface assigned to vlan 30 so our old configurations are there also we assign the ip address to each vlan and here you can see that is 10.10.10.1 for vlan 10 10.10.20.1 for vlan 20 and 10.10.30 for vlan 30. now in this video tutorial i am going to create the dhcp server for vlan 10 20 and 30 so your end devices will get ip automatically so first i will go to privilege mode with command configuring the first one i type here is ip dhcp pool and here i need to give the pool name or pool number you press the question mark here and he can ask you the word or the name i create this dhcp pool for vlan 10 so i will give the name 10. you can give any name for for example for local or for wi-fi or anything for me i just give the vlan number here next i need to define the network for vlan 10 that is 10.10.10.0 slash 24 the full subnet and next i need to define the gateway or the default route for this network that is 10.10.10.1 this is the same ip that we give to vlan 10 here is it so you have to give the same ip that you give to vlan number that is your gateway enter and exit that's it now same thing i need to do for the vlan 20 ip ip dhcp pool and 20 i define the network for vlan 20 that is 10 dot 10 dot 20 dot 0 slash 24 the full subnet and the default route that is 10.10.20.1 the ipaddress of vlan20 exit same thing for vlan 30 attackmon dhcp pool 30 and define the network 10.10.30.0 slash 24 and the default route is 10.10.30.1 and exit so here is it we create the three dhcp server one for the wheel and 10 next for vlan 20 and next for vlan 30 now what i want i want to exclude some ip address from this dhcp server i don't want to assign automatically because i want to give this address to my fixed devices for example attendance machine in our company or the printer or scanner or any other device you want to sign the static ip you can use that ip to exclude some ip address from dhcp port you need to type the command ip dhcp exclude address and if you put the question mark here you can see it will ask the low ip address like from where to where so i say 10.10 the first ip address and if i put the question mark again the high so till where you don't want to assign so i say 10.10.10.10 for example i want to reserve first 10 ip address so i will type 10 here and enter that's it so my dhcp server for vlan 10 will not assign the first 10 ip address automatically same thing i will do for dhcp server vlan 20 10.10.20.1 and 10.10.20.10. i press the upper arrow and the last one will come and i just change the network ip here 30 30. so i reserve the first 10 ip in each vlan and they will not assign automatically that's it exit here and the most important thing is to save the setting because right now the switch is working if we did not save this setting and someone reboot the switch we lost our current configuration so to save your configuration you need to type the command copy running config and it will save to your startup config enter it will ask the destination file startup config i say yes enter again that's it now this all configuration is saved to my startup config file that's it now i'm going to i show you it's working i'm going to connect this case cable the first 10 port of the switch that belong to vlan 10 and the second end of the cable i will connect to this laptop same thing i will do for my second laptop i will connect this cable to next and port of this switch and the second end i connect to my this laptop this laptop don't have built-in lan card so i use this converter i want to make sure this laptop don't have any static ip so i will go to the lan card first ethernet lan card go to the properties and remove the static ip and make it as a dhcp because we create the dhcp server for each vlan and this laptop should receive the ip from dcp server same thing i will do to my second laptop now i will go to the lan card of my second laptop go to the properties and we will remove the static id okay that's it now if i go to my laptop lan card and go to the detail here is it the dhcp mode is enabled yes and he received the ip address 10.10.10.11. why he received order 11 because the first address we reserve and we don't want our dhcp pool to allocate to anyone so he got the next available ip that is dot 11. now same thing i will check in my wheel and 20 laptop now same thing i will check my other laptop that connect to my vlan 20 dhcp pool i will go to details and here is it now here you can see the dhcp service is enabled in this laptop and ipad as is 10.20.1 so my both dhcp server is configured properly and they assign the ip address to the end device automatically now if i try to ping from vlan 20 to vlan 10 i go to the command prompt and i type ping 10.10.10.11 this is my vlan 10 laptop ip and enter yes i successfully ping from vlan 20 to vlan 10 same thing i will check to my other laptop also i type on pin 10.10.20.11 this is my vlan 20 laptop ip and that's it here you can see i successfully create the dhcp pool in my cisco switch and i successfully exclude the first an ip address from dhcp server and my laptop receive the ip automatically from dhcp server and they can ping to each other thank you for watching my video and don't forget to like and subscribe my channel please visit my channel and watch other informative video thank you
Info
Channel: Cisco Config
Views: 6,976
Rating: undefined out of 5
Keywords: cisco dhcp server, cisco dhcp server configuration, cisco switch dhcp server configuration, enable dhcp in switch, how to enable dhcp server in cisco switch, enable dhcp on cisco switch, configure dhcp server, cisco configure dhcp, how to configure dhcp, cisco catalyst, enable dhcp in Cisco switch, dhcp configuration, dhcp configuration in cisco switch, dhcp server, dhcp server configuration, how to configure dhcp server, configure dhcp on cisco, configure dhcp on cisco switch
Id: ThmwyyY-p5g
Channel Id: undefined
Length: 10min 2sec (602 seconds)
Published: Wed Sep 01 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.