Skip to main content

Implementation of DHCP Protocol

Dynamic Host Configuration Protocol(DHCP) is an application layer protocol which is used to provide:
  1. Subnet Mask (Option 1 – e.g., 255.255.255.0)
  2. Router Address (Option 3 – e.g., 192.168.1.1)
  3. DNS Address (Option 6 – e.g., 8.8.8.8)
  4. Vendor Class Identifier (Option 43 – e.g., ‘unifi’ = 192.168.1.9 ##where unifi = controller)
DHCP is based on a client-server model and based on discovery, offer, request, and ACK.
DHCP port number for server is 67 and for the client is 68. It is a Client server protocol which uses UDP services. IP address is assigned from a pool of addresses. In DHCP, the client and the server exchange mainly 4 DHCP messages in order to make a connection, also called DORA process, but there are 8 DHCP messages in the process.
DHCP Packet Tracer Example Topology

Steps:
1) Create a network topology of a PC, a switch and a router.
2) The client is connected to Router-1, which acts like a DHCP server whose configuration         is discussed. When a client sens a DHCP request to the router then router sends any of       the available IPs to the router and assigns it.
3) Router Commands:
 Router>enable
 Router#config t
 Router(config)#int gig 0/1
 Router(config-if)# ip address 192.168.100.1    255.255.255.0
 Router(config-if)#no shut
 Router(config-if)#exit
 Router(config)#ip dhcp pool IP01
 Router(dhcp-config)#net 192.168.100.0 255.255.255.0
 Router(dhcp-config)# default 192.168.100.1
 Router(dhcp-config)#exit
 Router(config)#ip dhcp exc 192.168.100.1   192.168.100.15
 Router(config)#exit
 Router#
4) Then go to the PC and then click on DHCP icon in IP configuration.
5) Your PC will be issued an IP address with a message, "DHCP request successful"

Comments

Popular posts from this blog

Generate Traffic in Simulation Mode

Objectives Part 1: Generate Network Traffic in Simulation Mode Part 2: Examine the Functionality of the TCP and UDP Protocols Background This simulation activity is intended to provide a foundation for understanding the TCP and UDP in detail. Simulation mode provides the ability to view the functionality of the different protocols. As data moves through the network, it is broken down into smaller pieces and identified in some fashion so that the pieces can be put back together. Each of these pieces is assigned a specific name (protocol data unit [PDU]) and associated with a specific layer. Packet Tracer Simulation mode enables the user to view each of the protocols and the associated PDU. The steps outlined below lead the user through the process of requesting services using various applications available on a client PC.  This activity provides an opportunity to explore the functionality of the TCP and UDP protocols, multiplexing and the function of port numbers in ...

Configuring Open Shortest Path First (OSPF) Protocol

Open Shortest Path First (OSPF) Protocol OSPF is a  Link State protocol   that’s considered may be the most famous protocol among the Interior Gateway Protocol (IGP) family, developed in the mid 1980’s by the OSPF working group of the IETF. When configured, OSPF will listen to neighbors and gather all link state data available to build a topology map of all available paths in its network and then save the information in its topology  database, also known as its  Link-State Database  ( LSDB ). Using the information from its topology database. From the information gathered, it will calculate the best shortest path to each reachable subnet/network using an algorithm called  Shortest Path First  ( SFP ) that was developed by the computer scientist  Edsger W. Dijkstra  in 1956. OSPF will then construct  three tables  to store the following information: Neighbor Table:  Contains all discovered OSPF neighbors  with whom r...