CompTIA Network+ Certification Exam Tutorial: DHCP and DHCP Relay Agents

By: Chris Bryant
Submitted: 2007-01-17 16:08:25
Print this article | Tell a friend | For publisher | Social Bookmarking
Rating:
 

As a CompTIA Network+ exam candidate, you’re probably familiar with DHCP – but just in case, we’re going to review DHCP basics here and then go into a discussion of DHCP Relay Agents.

When it comes to assigning an IP address to all the PCs on our network, along with their network mask, DNS server location, and more, we've got two choices on how to do it:

• Go to every workstation and configure the workstation statically

• Go to every workstation and configure them all to use DHCP

What we have here is the classic "static vs. dynamic" argument. I don't want you to think I'm lazy, but I'll take the dynamic way of doing things almost every single time.

You may wonder why it matters, since both methods involve visiting each workstation. You're right about that, and even though it's a lot quicker to configure a workstation to get its IP address and mask from a DHCP server than it is to configure the entire IP address and mask statically, the real benefits come in when the network changes.

And take it from me - your network will change. You'll remove hosts, you'll add hosts, and if the previous network manager didn't plan for future growth, the day may come when you've got to change the IP numbering scheme for your network. The choice that was made originally between static configuration and DHCP will then determine how easy the change will be.

• If the network was statically configured, you will now have to go to every single workstation and change their IP addressing to the new scheme.

• If the network is using DHCP, you simply change the networking scheme on the DHCP server and allow the workstations to get their new addresses dynamically.

Believe me, I've performed IP address changes in both fashions, and I'll take DHCP every time! Avoiding static IP address assignments also cuts down on the chances of two hosts in your network being assigned the same IP address.

When hosts receive an IP address from DHCP, it does not belong to that host permanently. The address is actually leased from a DHCP server. Let's walk through the DHCP process from the host's point of view.

First, the DHCP Client boots up, and sends a DHCP Discover packet onto the network. The host does this in order to "Discover" a DHCP server or servers. This Discover packet is a Level 3 broadcast, which has a destination IP address of 255.255.255.255.

Every DHCP Server that hears this broadcast will respond with a DHCP Offer, and it's an IP address and mask that is being offered. The DHCP Offer also includes a subnet mask, the IP address of the DHCP Server sending the response, and how long the host can keep this address (the DHCP lease duration).

If multiple DHCP Servers happen to hear this broadcast, they will each offer an IP address.

The DHCP Client will accept the first offer it receives. It does so by sending another broadcast, a DHCP Request packet.

The DHCP Server that made the offer that's being accepted will now send a DHCP Acknowledgement, which contains the rest of the information the host needs to function, including the location of a DNS server. The DHCP Server that made the offer that was not accepted will return the offered IP address to its range of assignable addresses, its address pool.

I made several mentions in this section about these DHCP packets being broadcasts. Do you remember which network connectivity device does not forward broadcasts? That's right, it's our old friend, the router!

If a PC is on one side of the router and the DHCP Server is on another side, we’ve got a problem. The initial DHCP Discover packet is a broadcast, and the router will not forward that broadcast to the DHCP Server. Luckily, this doesn't mean that we need a DHCP server on every single subnet on the network, because we can configure the router as a DHCP Relay Agent.

A DHCP Relay Agent will forward DHCP Requests to the DHCP Server. You can also configure a Windows server as a DHCP Relay Agent. Naturally, the Relay Agent must be on the same physical segment as the hosts that cannot reach the DHCP Server - never put it on the same segment as the DHCP Server itself.

Configuring a router as a DHCP Relay Agent is a lot different than configuring a Windows server, and your Network+ exam will not require you to configure either. You should know why the need for a Relay Agent exists, though, and should you need to configure one on your network, always check the vendor's documentation.

Chris Bryant, CCIE #12933, is the owner of The Bryant Advantage, home of over 100 free certification exam tutorials, including CCNA and CCNP tutorials. CompTIA Network+, Security+, and A+ certification tutorials are available, also!

Visit his blog and sign up for Certification Central, a daily newsletter packed with CCNA, Network+, Security+, A+, and CCNP certification exam practice questions! A free 7-part course, “How To Pass The CCNA”, is also available.

Coming in 2007 -- Microsoft Vista certification with The Bryant Advantage!

Article source: Expert Articles

Most Recent Articles in Certification Tests category

  • A word about MCSE, A+ and CCNA Braindump Certification. - By: M. Aslam
    Braindumps are engaged in is an illegal practice that has seismic effects on all concerned. How is it illegal? Every candidates going for IT certification is required to sign non disclosure agreement not to leak the exam related information. But leaks still happen and it is these the leaks have given birth to braindumps providers who are mushrooming by days.
  • Why should you avoid getting a Braindump Certification? - By: M. Aslam
    Generally speaking, Braindumps refers to lists of questions and answers from an actual IT certification exam. This dangerous, illegal and unethical trend is like a plague to IT profession as well as industry.
  • 7 Layers of the OSI Reference Model - By: M. Aslam
    The Application Layer (Layer 7) refers to communication services to applications and is the interface between the network and the application. Most application layer protocols offer services that programs use to access the network, such as the Simple Mail Transfer Protocol (SMTP). Application layer protocols often include the session and presentation layer functions. A typical protocol stack consists of four separate protocols, which run at the application, transport, network, and data-link la
  • How to Take Local Business to Next Level - By: Sudesh Kumar
    A recent study by a leading marketing consultant reveals that most shoppers use the Internet to surf local business offers and opportunities. Local business marketing has grown significantly during the past few years. Many companies offer services such as local promotion, local advertising, local business directory, local ads, business profiling and merchant advertising at easily affordable rates.
  • Cathay School Offers One-on-One CISCO CCIE Routing and Switching Boot Camp Training - By: Fandy Du
    two tracks for CCIE Routing and Switching Training,one is called Intensive Track (CRSLT-I), which takes 14 days to have it done, the other is called Fast Track (CRSLT-F) which probably takes 18 days.
  • The Benefits of Latest Computer Training Courses - By: Alok Kumar
    The field of education encompasses a wide variety of career paths and can prepare individuals to be programmers, software developers, systems analysts, database administrators, or computer scientists.
  • Why should you avoid getting a Braindump Certification? - By: M. Aslam
    Generally speaking, Braindumps refers to lists of questions and answers from an actual IT certification exam. This dangerous, illegal and unethical trend is like a plague to IT profession as well as industry
  • Why Does Certification Validate Your Skills as an IT Professional at ABCO Technology? - By: Alok Kumar
    ABCO Technology prepares individuals to work in the field of IT (Information Technology) or enhance individual's technical skills for other career areas. The field of education encompasses a wide variety of career paths and can prepare individuals to be programmers, software developers, systems analysts, database administrators, or computer scientists. Also provides Computer Training Courses, IT Training Courses, CCNA Training, MCSE Training and Many More.
  • Test Taking Techniques to Help You Get Certified! - By: john strong
    As always, tests and exams will scare you when you think about getting certified. Remember that you won’t die if you flunk the test and life won’t fall apart either. Relax, prepare and give the test. Here’s how!
  • IP Address Classes, and Address Masks - By: Vijayanand Yadla
    IP AddressingAn IP address is a unique logical identifier for a node or host connection on an IP network. IP address is a 32 bit binary number, and represented by 4 decimal values of 8 bits each. The decimal values range from 0 to 255.