Concept of DHCP with practical example through packet tracer software



DHCP IP Addressing | IP addressing is very important thing for network administrator. Normlly network administrator manually assign ip address on router interface,to manage server and switch is called ip addressing.When network administration is going  to assign ip address for large no of systems the concept of dhcp is take place in this scenario.

Let's go through one example


Suppose in the xyz organization there is 100 users and connect to the router via switch.Assigning of ip address of router is not very hard staff but network admin is going to assign ip address for the end user system it is very difficult. Here dhcp plays a vital role to solve this issue.

Type of dhcp addressing


1)Manually dhcp addressing:
Network administrator assign ip address in dhcp pool and client ip is a assigning from the pool.

2)Automatic dhcp addressing:
Client get the ip address from the dhcp server and ip address never change unless network admin change  the configuration.

3) Dynamic ip addressing:
Client get ip address from the dhcp server and ip address will change specific period of time and the client request to the server for ip address and dhcp server assigns another ip address to the client.

 Configuation of dhcp server

Here we are going to use router as a dhcp sever.

Step1)create a dhcp pool in the global config mode  where dhcp  address range wiil be configured.

Step2)under the dhcp pool we have to assign the network range ,gateway and dns server (if applicable).

Step3)we can exclude the ip address range in configuration option.
Suppose ip addess of the router is 192.168.1.1.That address will be the gateway of the system which will be getting address from dhcp server.


CONCEPT OF DHCP,networking
CONCEPT OF DHCP



Router(config-if)#ip dhcp pool testpool
Router(dhcp-config)#network 192.168.1.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.1.1

Configuation of dhcp client

In the ip configuration wizard  we have to specify dhcp on the dhcp client to obtain the ip address from the dhcp server.Now it is the time if verification

Veify dhcp configuration

To verify dhcp configuration on the server side we need run the command “Show ip dhcp binding “ which will give the binding details such as mac address ,type ,ipaddess and so on.


Router#show ip dhcp binding
IP address Client-ID/ Lease expiration Type
Hardware address
192.168.1.2 000A.4160.60E1 -- Automatic
192.168.1.3 000A.41D2.3810 -- Automatic

To verify the dhcp client side run the following command.

C:\>ipconfig

FastEthernet0 Connection:(default port)

Link-local IPv6 Address.........: FE80::20A:41FF:FE60:60E1
IP Address......................: 192.168.1.2
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 192.168.1.1




If this article is useful to know about DHCP IP Addressing please share and subscribe it.

SHARE

Admin

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment