Ad Code

Automating IP assigning process with DHCP

Automating IP assigning with DHCP  


Hi.. in this post we will talk about DHCP and how to make the IP assigning process in automation. 

DHCP stands for dynamic host configuration protocol. 

It is a network management protocol used in the IP network.

The router with the DHCP configuration dynamically assigns an IP address to communication devices on the network. 

The tool I used is cisco packet tracer which is used for network designing simulation.

we will cover the entire process in the following steps.

1. Make all the physical connection of the network on simulation.

2. Router configuration

3. DHCP configuration to the router

4. Check the IP assigned or not 

5. Check the devices are communicating or not.


1. Make all the physical connection of the network on simulation.

Select the required devices for communication from the end devices option in the bottom-left side of the simulation and also select the switches and routers.

To make the connection select connections option which is indicated by the orange-yellow thunder and select automatic then connect all the devices according to your network design.

 

2. Router configuration  


To configure the Router just click on the router device and go to CLI option, and do the following things.

Configuration of the router for network 1

1. It will ask to continue with configuration dialogue just type no. 
2. Router> enable
3. Router# conf  t
4. Router (config)# interface fa0/0
5. Router(config)# ip add 192.168.1.1 (your default IP address) 255.255.255.0 (your subnet mask)
6. Router(config)# no shutdown
7. Router(config)# end  

To check the interface of the router

1. Router# sh ip int br (show IP interface brief)


Here you can see IP address is assigned and the protocol is up.

3. DHCP configuration to the router  



Router>en (enable)
Router# conf t (configuration terminal)

Router(config)#ip dhcp pool abc (IP DHCP pool name)

Router(dhcp-config)#default-router 192.168.1.1 (assign your router ip address)

Router(dhcp-config)#network 192.168.1.0 255.255.255.0 (assign network id)


Now press ctrl+Z to exit from DHCP-config.


Router# wr 

Router# exit 


4. Check the IP assigned or not 



To check the assigned by the router or not just click one of the end devices in your designed network. and go to the desktop option and select the IP configuration.

In the IP configuration, you just need to click DHCP the IP will be assigned to the device automaticaly.


5. Check the devices are communicating or not.   



Let's check the end devices are communicating by the assigned IP address or not.
For that go the one of the end device's commands prompt and type
ping (one of the assigned IP address)


You can also watch the video demonstration it will make more clear to you.

Video demonstration.



Thanks for your time and stay creative...