ACN Microproject
ACN Microproject
Micro Project
Academic Year (2022-23)
Maharashtra State Board of Technical Education
Program code and name: CO22520
Subject: Advance Computer Networking
Semester: Fifth
A Micro Project on
"SETUP STATIC & DYNAMIC DHCP SERVER"
Sr. Roll No. Student Name Enrollment No. Seat No.
1 Om Gole 2016240027
2 Yash Botre 2016240019
Under Guidance of
Prof. Mrs.: Rupali Kalokhe
2|Page
Certificate
This is to certify that Mr. Om Gole Roll No Fifth Semester of
Diploma in Computer Engineering of Institute, Siddhant college of
Engineering (Code:1624) has completed the Practical Activities (PA)
satisfactorily in Course Advance Computer Networking
(code:22520) for the academic year 2021 – 2022 as prescribed in the
curriculum.
Certificate
This is to certify that Mr. Yash Botre Roll No Fifth Semester of
Diploma in Computer Engineering of Institute, Siddhant College of
Engineering (Code: 1624) has completed the Practical Activities (PA)
satisfactorily in Advance Computer Networking (code:22520
) for the academic year 2021 – 2022 as prescribed in the curriculum.
ACKNOWLEDGEMENT
It is a matter of great pleasure by getting the opportunity to
highlight this. A fraction of knowledge I acquired during our
technical education through this project.
Index
Sr. No. Topic Page No.
1 Abstract 6
2 Introduction 7
3 Rationale 8
4 Literature Review 8
6 Actual Methodology 11
7 Steps 13
10 Conclusion 19
11 Reference 20
6|Page
Abstract
The command line is your
direct access to a computer.
It's where you ask software
to
perform hardware actions
that point-and-click graphical
user interfaces (GUIs)
simply can't
ask. Command lines are
available on many operating
systems—proprietary or open
source. But
it’s usually associated with
Linux, because both
7|Page
systems—proprietary or open
source. But
it’s usually associated with
Linux, because both
command lines and open-
source software,
together, give users
unrestricted access to their
computer.
The command line is your
direct access to a computer.
It's where you ask software
to
perform hardware actions
that point-and-click graphical
9|Page
Introduction
WHAT IS A DHCP SERVER CLIENT?
A DHCP server automatically sends the required network parameters for clients
to properly communicate on the network. Without it, the network administrator
has to manually set up every client that joins the network, which can be
cumbersome, especially in large networks. DHCP servers usually assign each
client with a unique dynamic IP address, which changes when the client’s lease
for that IP address has expired.
network, you would have to select the "manual" configuration option and input
the IP address, the subnet mask, the default gateway and the DNS server.
Rationale:
Dynamic Host Configuration Protocol (DHCP) is a network management protocol
used to dynamically assign an IP address to any new node entering the network.
DHCP permits a node to be configured automatically, thereby avoiding the
necessity of involvement by a network administrator.
It manages the provision of all the nodes added or dropped from the network
Maintains the unique IP address of the host using a DHCP server
Sends a request to the DHCP server whenever a client/node, which is configured
to work with DHCP, connects to a network. The server acknowledges by
providing an IP address to the client/node.
Literature Review:
A DHCP server is used to issue unique IP addresses and automatically configure
other network information. In most homes and small businesses, the router acts
as the DHCP server. In large networks, a single computer might act as the
DHCP server.
In short, the process goes like this: A device (the client) requests an IP address
from a router (the host), after which the host assigns an available IP address to
allow the client to communicate on the network. A bit more detail below...
Once a device is turned on and connected to a network that has a DHCP server,
it will send a request to the server, called a DHCPDISCOVER request.
15 | P a g e
After the DISCOVER packet reaches the DHCP server, the server attempts to
hold on to an IP address that the device can use, and then offers the client the
address with a DHCPOFFER packet.
Once the offer has been made for the chosen IP address, the device responds to
the DHCP server with a DHCPREQUEST packet to accept it, after which the
server sends an ACK that's used to confirm that the device has that specific IP
address and to define the amount of time that the device can use the address
before getting a new one.
If the server decides that the device cannot have the IP address, it will send a
NACK.
All of this, of course, happens very quickly and you don't need to know any of the
technical details you just read in order to get an IP address from a DHCP server
Because these devices can get an IP address automatically, they can move
freely from one network to another (given that they're all set up with DHCP) and
receive an IP address automatically, which is super helpful with mobile devices.
addresses are assigned manually, it means administration must not only give out
a specific address to each new client, but existing addresses that are already
assigned must be manually unassigned for any other device to use that same
address. This is not only time-consuming, but manually configuring each device
also increases the chance of running into human-made errors.
Though there are plenty of advantages to using DHCP, there are certainly some
disadvantages as well. Dynamic, changing IP addresses should not be used for
devices that are stationary and need constant access, like printers and file
servers.
This type of setup is extremely unnecessary and can be easily avoided by not
using DHCP for those types of devices, and instead by assigning a static IP
address to them.
The same idea comes into play if you need to have permanent remote access to
a computer in your home network. If DHCP is enabled, that computer will get a
new IP address at some point, which means the one you've recorded as that
computer having, will not be accurate for long. If you're using remote access
software that relies on a IP address-based access, you'll need to use a static IP
address for that device.
Even an ISP uses DHCP to assign IP addresses. This can be seen when
identifying your public IP address. It will likely change over time unless your
home network has a static IP address, which is usually only the case for
businesses that have publicly accessible web services.
A DHCP server automatically sends the required network parameters for clients to
properly communicate on the network. Without it, the network administrator has to
manually set up every client that joins the network, which can be cumbersome,
especially in large networks.
DHCP servers usually assign each client with a unique dynamic IP address, which
changes when the client’s lease for that IP address has expired
❖ How it work?
local network with cable or WiFi SSID, first thing is to look for IP address, netmask,
default gateway and DNS servers.
Host connecting to network (cable or wireless) sends DHCP discover message to all
hosts in Layer 2 segment (destination address is FF:FF:FF:FF:FF:FF). Frame with this
DISCOVER message hits the DHCP Server.
2. After the DHCP Server receives discover message it suggests the IP addressing
offering to the client host by unicast. This OFFER message contains:
255.255.255.0)
3. Now after the client receives the offer it requests the information officially sending
REQUEST message to server this time by unicast.
4. Server sends ACKNOWLEDGE message confirming the DHCP lease to client. Now
client is allowed to use new IP settings.
19 | P a g e
What information getting from DHCP are necessary and which are optional?
In theory, only IP address and mask is needed for device to work. This is true in
scenario that device is within the same subnet with other devices and communicates
with others knowing their IP addresses. In such way there is no need for going beyond
own subnet and that’s why gateway is not needed. Using only IP addresses for
communication also eliminates the need of name translations so DNS is still optional.
However, in real world scenarios most of communication goes beyond the subnet and
relays on Fully Qualified Domain Names (FQDN).
In addition to necessary DHCP parameters there are DHCP options like popular Option
150 used in IP Telephony to inform IP Phones about the IP address of IP PBX for
proper phone registration – for example Cisco Call Manager or Asterisk PBX. Almost all
DHCP server vendors are able to pass DHCP options.
You can ask yourself if there is a need for having DHCP server in the same L2 segment
(VLAN), because DHCP OFFER message relays on broadcast destination address
which is good for the same subnet only. Right trace! But for the sake of DHCP
scalability there is option to have DHCP server outside the subnet. In such solution
DHCP discover packets typically getting to default gateway interface are transformed
into unicast packets (DHCP discover embedded message) with giaddr field that tells
server about logical attachment identification. Packet is sent directly to IP of server
located somewhere in routable IP cloud.
Giaddr helps the DHCP server to find the correct address pool for granting the address.
20 | P a g e
STEPS:
• Install the DHCP server role on Windows Server 2008, follow these
steps:
• Select DHCP Server from the list of roles and then click Next.
• Click Next.
21 | P a g e
• The wizard displays a list of the server’s network connections that have
static IP addresses, as shown in the following illustration. (In this
example, only one network connection has a static IP address assigned.
Most network servers will have at least two.)
Select the static IP addresses you want to use for the DHCP server. Then click next.
The wizard asks for the DNS configuration information, as shown below.
1. Enter the domain name and DNS servers. To enter a DNS server, type its address in
the IP address text box and then click Add.
You typically have more than one DNS server.
2. Click Next.
The wizard next asks for the WINS configuration information.
3. (Optional) If you want to enable WINS, enter the WINS server configuration and then
click next.
22 | P a g e
5. The wizard asks for a name and description for the new scope, as shown below.
o Scope Starting IP Address: This is the lowest IP address that will be issued for
this scope. o Scope Ending IP Address: This is the highest IP address that
will be issued for this scope.
o Subnet Mask: This is the subnet mask issued for IP addresses in this scope.
o Default Gateway: This is the default gateway address that will be used for this
scope.
This is usually the address of your router.
o Subnet type: Choose Wired or Wireless. The difference is how long the IP
address will be valid. For wired networks, the addresses will be valid for six
days. For wireless networks, the addresses will expire in eight hours.
2. Select the Activate This Scope check box and then Click OK.
The scope is created, as shown below.
23 | P a g e
3. Click Next.
The wizard asks for the credentials to use when creating this DHCP server. The default
is to use your current login credentials.
4. Click Next.
The wizard displays a confirmation screen that summarizes the settings you’ve entered
for the DHCP server.
5. Click Install.
The DHCP server is created. This might take a few minutes. When the server is
finished, a final results page is displayed to confirm that the server was properly
installed.
6. Click Close.
You’re done!
Simplicity. DHCP provides the ability to assign (and manage) more multiple
parameters (is more than just the host IP address), required parameters such as
the subnet mask, and very helpful (required for most needs) things like the
default gateway, DNS servers (and domain name). Then there are optional
things like TFTP servers and time (NTP) servers, log servers, etc.
Security. DHCP provides an audit trail for who (what MAC and client-ID) had an IP
address at what time. It can also be used in a security context, where a router
may require a host within a subnet to have obtained it's IP via DHCP, else it will
deny/block it.
25 | P a g e
CONCLUSION
From This Project We Learnt About Dynamic Host Configuration Protocol (DHCP) is a
network management protocol used to dynamically assign an IP address to any new
node entering the network. DHCP permits a node to be configured automatically,
thereby avoiding the necessity of involvement by a network administrator.
It Manages the provision of all the nodes added or dropped from the network
Maintains the unique IP address of the host using a DHCP server
Sends a request to the DHCP server whenever a client/node, which is configured to
work with DHCP, connects to a network. The server acknowledges by providing an IP
address to the client/node.
26 | P a g e
REFERENCE
✓ www.redhat.com
✓ www.pcmag.com
✓ www.reasearchgate.com
✓ www.iitk.ac.in
✓ www.geeksforgeek.com