Skip to main content

DHCP relay and server in Computer Network


To assign an IP address to the host dynamically, DHCP client exchange DHCP messages with DHCP server in DORA process.

Whenever a computer or different networked device connects to a network, the DHCP patron software program sends a broadcast question soliciting for important statistics. Any DHCP server at the network may additionally service the request.


With this DORA process, the discover and request message is broadcast, the offer and the acknowledgement message is broadcast or unicast depending upon the value of broadcast flag i.e. If the value of broadcast flag is 1,then the offer and acknowledgement message is broadcast and if 0,the messages are unicast. But this is valid only when the DHCP server is present in the same network because the router doesn’t forward any broadcast packet. What if the server is present in a different network? Here comes the role of DHCP relay.


The DHCP server manages a pool of IP addresses and records approximately patron configuration parameters together with default gateway, area call, the call servers, and time servers. On receiving a request, the server might also respond with unique facts for each patron, as previously configured by means of an administrator, or with a specific address and any other facts legitimate for the entire network and for the time period for which the allocation (lease) is valid.


A consumer generally queries for this facts immediately after booting, and periodically thereafter before the expiration of the facts. when a DHCP client refreshes an challenge, it first of all requests the same parameter values, but the DHCP server can also assign a new cope with primarily based on the venture rules set by means of administrators.



DHCP server


Citrix SD-WAN appliances can be configured as DHCP server. It can assigns and manages IP addresses from specified address pools within the network to DHCP clients. The DHCP server can be configured to assign more parameters such as the IP address of the Domain Name System (DNS) server and the default router. DHCP server accepts address assignment requests and renewals. The DHCP server also accepts broadcasts from locally attached LAN segments or from DHCP requests forwarded by other DHCP relay agents within the network.


The DHCP protocol become created in order that clients may want to reap their IP cope with automatically and with out human intervention (yes that used to be an real a part of IT-ing, back within the day). The manner this works is that once a consumer connects to the network, it sends out a “broadcast” packet asking to find the DHCP server.

DHCP relay and server in Computer Network
DHCP SERVER



That was “good enough” till Vlans got here along. Vlans create obstacles and segment your physical community into several really isolated ones (therefore the name V-LAN). one of the downsides to Vlans is that now the DHCP server and the clients can’t at once talk, due to the fact “broadcast” packets can not “bounce” networks. So, how do you avoid having a DHCP server per-Vlan, and supply the DHCP requests from the customers in a Vlan, lower back to the vital server?


DHCP relays had been invented to over come this actual hassle through basically “routing” or “proxy-ing” the consumer’s requests. The requests are broadcasted through the customers on their neighborhood network, the relay-agent catches them and forwards them to the DHCP server the use of uni cast. The back DHCP answer gets to the relay agent using uni cast as properly, and the relay agent sends the answer on the consumer’s network.


DHCP provides a framework for passing configuration information dynamically to hosts on a TCP/IP network. A DHCP client is an Internet host using DHCP to obtain configuration parameters such as an IP address.


DHCP relay

A DHCP relay agent is a host or router that forwards DHCP packets between clients and servers. Network administrators can use the DHCP Relay service of the SD-WAN appliances to relay requests and replies between local DHCP Clients and a remote DHCP Server. It allows local hosts to acquire dynamic IP addresses from the remote DHCP Server. Relay agent receives DHCP messages and generates a new DHCP message to send out on another interface.

DHCP relay and server in Computer Network
DHCP Relay


Below are the benefits of using the DHCP server and DHCP relay features:


  • Reduce the amount of equipment at client site.
  • Replace router at client site (Easy deployment of edge router services).
  • Simplify the client site network.
  • Configuration of Router without CLI commands.
  • Reduce manual configuration on simple client sites.

You can configure the DHCP relay agent at both the context and VLAN interface levels of the ACE.


If you configure the DHCP relay agent at the context level, the configuration applies to all interfaces associated with the context.
If you configure the DHCP relay agent at the VLAN interface level, the configuration applies to that particular interface only; the remaining interfaces revert to the context level configuration.


Configurations :

This is the basic configuration of the client, router, dhcp_server.The router has been assign IP address 192.168.1.1 on fa0/0 and 192.168.2.1 on fa0/1.

DHCP relay and server in Computer Network


The DHCP_SERVER is assigned IP Address 192.168.2.2 on the interface fa0/0 and the DHCP pool is defined with name POOL1 and network of 192.168.1.0 with subnet mask 255.255.255.0 is assigned to the pool POOL1.

DHCP relay and server in Computer Network


Now, the ip helper address command is used for configuring the router as a dhcp relay agent, giving 192.168.2.2 the address of DHCP_server.

DHCP relay and server in Computer Network


Comments

Popular posts from this blog

How to Reset Steam Password? – Recover Your Steam Password

Are you suffering with Reset Steam Password? This blog will help you. What is Steam? Steam is the online website for getting the best games for paid. If you are a true game lover then you should have an active account on Steam. Many of people lost their password during the  PC clean-up  or any other circumstances. At that time they have to reset Password of all accounts. Then if you facing issues with the password, you forced to Steam reset password to access the Steam account. We are going to share the guide that how to recover your forgotten Steam Password and make your existing account ready. First of all, you should have enough knowledge about what is Steam and why Steam Account required? Why Steam Account Requires? Before jump into password recovery and Login details, let me clear about why Steam Account required? There are several benefits of this Steam Account from where you can easily download PC games as well as software. Though it will be p...

What is STP? - Explain Advantages and Disadvantages

The Spanning Tree Protocol is a network protocol that builds a loop-free logical topology for Ethernet networks. The basic function of STP is to prevent bridge loops and the broadcast radiation that results from them. STP is a protocol. It actively monitors all links of the network. To finds a redundant link, it uses an algorithm, known as the STA (spanning-tree algorithm). The STA algorithm first creates a topology database then it finds and disables the redundant links. Once redundant links are disabled, only the STP-chosen links remain active. If a new link is added or an existing link is removed, the STP re-runs the STA algorithm and re-adjusts all links to reflect the change. STP (Spanning Tree Protocol) automatically removes layer 2 switching loops by shutting down the redundant links. A redundant link is an additional link between two switches. A redundant link is usually created for backup purposes. Just like every coin has two sides, a redundant link, along with...