Skip to main content

The future of AI in business and its potential to transform industries

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...

Popular posts from this blog

What is machine learning and it's types?

 What is machine learning(ML)? Machine learning is a subset of artificial intelligence. Machine learning enables computers or machines to make data-driven decisions rather than being explicitly programmed for a certain task. These programs or algorithms are designed in a way that they learn and improve over time when are exposed to new data. Examples:- 1. Product recommendations   While checking for a product did you noticed when it recommends a product similar to what you are looking for? or did you noticed "the person bought this product also bought this" combination of products? How are they doing this recommendation? This is machine learning. 2. Email spam and malware filtering  There are a number of spam filtering approaches that email clients use.  To ascertain that these spam filters are continuously updated they are powered by machine learning. 3. Online customer support A number of websites nowadays offer the option to chat with customer support representati...

PIC18 Timer programming in C

The PIC18 timer is divided into 4 types Timer 0 Timer 1 Timer 2 Timer 3 PIC18 timers can be used to generate a time delay or as a counter to count external event happening outside the microcontroller. In this article, we will see how to generate a time delay by programming the PIC18 timer. Timer 0 The timer 0 module has the following features Software is scalable as an 8 bit or 16-bit timer/counter. Readable and writable Dedicated 8 bit software programmable Prescaler Clock source selectable to be internal or external Edge select for external clock Register required for Timer 0 Control register Each timer has a control register called TCON to set the various timer operation modes. T0CON is an 8-bit register used for control of timer 0. TOCON TMR0ON (Timer0 on/off control bit)                                       1 = Enable timer 0                ...

Top 7 domains to expertise after learning python

Top 7 domains to expertise after learning python Python is one of the most popular programming languages. It is an object-oriented, dynamic semantics and high-level programming language. It's high-level built-in data structure combined with dynamic binding and dynamic typing makes it attractive for rapid application development. Often programmers fall in love with python because of the increased productivity it provides. Python is one of the most readable languages in the world right now. This language is very popular among developers and is widely used by many programmers to create application and programs. The implementation of this programming language is simple and at the same time, the language has a very clean structure as compared to other languages.  So if you mastered your python concepts and skills, you can dominate these 7 domains. Machine learning / Artificial intelligence Desktop GUI Data analytics and data visualization  Web development Game development Mobile ap...