Assigning IP Addresses - CompTIA A+ 220-1101 - 2.5

Professor Messer
4 May 202209:43

Summary

TLDRThis video script explains the evolution of IP address configuration, from manual settings to the introduction of DHCP in 1997. It details the DHCP process, known as DORA (Discover, Offer, Request, Acknowledge), which automates IP address assignment. The script also discusses DHCP server configurations, IP address reservations for consistent device addressing, and APIPA, which assigns local IP addresses when no DHCP server is available.

Takeaways

  • πŸ“ IP addresses, subnet masks, default gateways, and DNS settings are essential for device connectivity in a network.
  • πŸš€ Manual IP configuration is impractical for large enterprise networks with numerous devices.
  • πŸ”„ BOOTP was the initial protocol for automatic IP assignment but had limitations in configuration management and device tracking.
  • 🌟 DHCP was introduced to overcome BOOTP's shortcomings, providing a more comprehensive automatic configuration solution since 1997.
  • πŸ” DHCP operates through a four-step process known as D-O-R-A (Discover, Offer, Request, Acknowledge) to assign IP configurations.
  • πŸ”Ž The Discover phase involves a broadcast from the client seeking a DHCP server within the local network.
  • 🎯 In the Offer phase, the DHCP server responds with an IP address offer to the client, which is sent as a broadcast.
  • πŸ“² The Request phase is where the client selects an offer and sends a broadcast to request the specific IP address from the DHCP server.
  • πŸ—οΈ The Acknowledge phase confirms the IP address assignment and provides the client with all necessary configuration settings.
  • πŸ›‘οΈ DHCP servers are configured with a pool of IP addresses to distribute among clients, allowing for dynamic allocation.
  • πŸ”’ DHCP reservations can be set for devices that require a consistent IP address, ensuring they always receive the same configuration.
  • 🌐 In the absence of a DHCP server, devices may be assigned an APIPA address, allowing local network communication only.

Q & A

  • What is the main purpose of DHCP?

    -The main purpose of DHCP (Dynamic Host Configuration Protocol) is to automatically assign IP addresses and other network configuration settings to devices on a network, eliminating the need for manual configuration on a large scale.

  • What is the difference between BOOTP and DHCP?

    -BOOTP (Bootstrap Protocol) was the initial protocol for automatic IP address assignment but had limitations; it did not assign all necessary configuration settings and was unaware of when a device left the network. DHCP was created to address these shortcomings, providing a more comprehensive and dynamic configuration service.

  • What are the four steps in the DHCP process referred to as D-O-R-A?

    -The four steps in the DHCP process are: Discover (D), where the device locates a DHCP server; Offer (O), where the server offers an IP address to the device; Request (R), where the device requests the offered IP address; and Acknowledge (A), where the server confirms the IP address assignment.

  • Why are broadcasts used extensively in the DHCP process?

    -Broadcasts are used extensively in the DHCP process because the client device does not have an IP address at the beginning, and thus cannot use unicast communication. Broadcasts ensure that messages are sent to all devices on the local network, including the DHCP server.

  • What is a DHCP proxy and how does it function in the network?

    -A DHCP proxy, also known as a DHCP relay or IP helper, is a device, such as a router, configured to forward DHCP broadcast messages to a DHCP server on another network segment. This allows devices on different subnets to receive DHCP offers even if they cannot directly communicate with the DHCP server.

  • What is an APIPA address and why is it used?

    -An APIPA address (Automatic Private IP Addressing) is used when a device configured to obtain an IP address via DHCP does not detect a DHCP server on the local network. It assigns itself a random IP address within the APIPA range (169.254.0.0 to 169.254.255.255), allowing local network communication but not external connectivity.

  • How does a DHCP server ensure that certain devices always receive the same IP address?

    -A DHCP server can be configured with a reservation for specific devices, associating their MAC addresses with a reserved IP address. This ensures that these devices always receive the same IP address upon startup, regardless of network changes.

  • What is the range of IP addresses used for APIPA?

    -The range of IP addresses used for APIPA is from 169.254.0.0 to 169.254.255.255. However, the first and last 256 addresses within this range are reserved, so APIPA addresses are randomly assigned between 169.254.1.0 and 169.254.254.255.

  • What happens if a device receives no response to its ARP request after assigning itself an APIPA address?

    -If a device does not receive a response to its ARP request after assigning itself an APIPA address, it assumes that the chosen IP address is not in use and proceeds to use it for local network communication.

  • How can a user check if their device has been assigned an APIPA address?

    -A user can check if their device has been assigned an APIPA address by running 'ipconfig /all' on a Windows device. The IPv4 address configuration will state that it is an autoconfiguration address, and the IP address will fall within the APIPA range.

  • Why might a DHCP server not have a default gateway configured for an APIPA address?

    -A DHCP server does not configure a default gateway for an APIPA address because APIPA addresses are intended for local network communication only. Since these addresses do not route outside the local network, there is no need for a default gateway.

Outlines

00:00

πŸ”„ DHCP and the Process of IP Address Assignment

This paragraph introduces the evolution from manual IP configuration to the Dynamic Host Configuration Protocol (DHCP), which automates the assignment of IP addresses and other network settings. It explains the limitations of the Bootstrap Protocol (BOOTP) and how DHCP, introduced in 1997, improved upon it by providing a full range of configuration settings. The paragraph outlines the four-step process known as D-O-R-A (Discover, Offer, Request, Acknowledge) that DHCP uses to assign an IP address to a device. It also includes a brief description of a network diagram involving a client workstation, a local DHCP server, and a router configured as a DHCP proxy, illustrating how the process works in a practical scenario.

05:00

πŸ“ Understanding DHCP Reservations and APIPA

The second paragraph delves into the concept of DHCP reservations, which allow specific devices like printers or servers to always receive the same IP address, ensuring consistency and reducing administrative overhead. It contrasts this with the manual configuration of IP addresses and the challenges it presents in large networks. The paragraph also introduces APIPA (Automatic Private IP Addressing), a mechanism that assigns an IP address to a device from a predefined range when no DHCP server is available. This results in a link-local address that restricts communication to the local network only. The standard range for APIPA addresses and the process by which a device selects an APIPA address are explained, along with an example of how an APIPA address appears on a Windows device using the 'ipconfig/all' command.

Mindmap

Keywords

πŸ’‘IP Address

An IP address is a numerical label assigned to devices participating in a computer network that uses the Internet Protocol for communication, allowing them to be identified and located within the network. In the video, the manual configuration of an IP address is discussed, which includes setting up the address, subnet mask, default gateway, and DNS settings. The script also explains the importance of IP addresses in the context of DHCP, where devices are automatically assigned these addresses to ensure scalability in large networks.

πŸ’‘Subnet Mask

A subnet mask is used in networking to divide a network into smaller subnetworks, or subnets, allowing for more efficient allocation of IP addresses and better organization of networks. In the video, it is mentioned as part of the manual IP configuration process and is essential for defining the network boundary and determining which devices are in the same local network.

πŸ’‘Default Gateway

The default gateway is a network node on the path used by routers to forward packets outside of the local network. It is a crucial part of IP configuration, as it directs traffic to and from external networks. In the context of the video, the default gateway is part of the settings that can be manually configured or automatically assigned by DHCP.

πŸ’‘DNS Setting

DNS, or Domain Name System, settings are configurations that specify the IP addresses of DNS servers used to resolve domain names into IP addresses, enabling users to access websites using human-readable domain names instead of numerical IP addresses. The video script explains that these settings are part of the manual IP configuration and are also automatically assigned by DHCP.

πŸ’‘BOOTP

BOOTP, or Bootstrap Protocol, was the precursor to DHCP and was used to automatically assign IP addresses to devices. However, as mentioned in the video, it had limitations in that it did not assign all necessary configuration settings and was unaware of when a device left the network. BOOTP laid the groundwork for the more advanced DHCP.

πŸ’‘DHCP

DHCP, or Dynamic Host Configuration Protocol, is a network management protocol used to dynamically assign IP addresses and other network configuration parameters to devices on a network. The video explains that DHCP was created to address the shortcomings of BOOTP and has been in use since 1997, providing an automatic configuration process for various network settings.

πŸ’‘DORA

DORA is an acronym representing the four-step process that DHCP follows to assign IP configurations to devices: Discover, Offer, Request, and Acknowledge. The video script details each step, illustrating how a device locates a DHCP server, receives offers for IP addresses, makes a request for one of those addresses, and finally receives an acknowledgment with the configuration settings.

πŸ’‘DHCP Server

A DHCP server is a server that manages IP address assignment to devices on a network using the DHCP protocol. The video script describes the role of the DHCP server in the DORA process, offering IP addresses to devices, and sending acknowledgments with the necessary network configuration settings.

πŸ’‘DHCP Proxy

A DHCP proxy, also known as a DHCP relay or IP helper, is a device that forwards DHCP broadcast messages from a client on one network to a DHCP server on another network. The video script explains how a router can be configured as a DHCP proxy to allow broadcasts to pass through and reach a DHCP server on a different subnet.

πŸ’‘APIPA

APIPA, or Automatic Private IP Addressing, is a method by which devices can automatically self-assign an IP address when a DHCP server is not available. The video script describes the APIPA process, including the range of IP addresses used (169.254.0.0 through 169.254.255.255) and how devices use ARP to ensure the selected IP address is not already in use on the local network.

πŸ’‘IP Reservation

IP reservation is a feature in DHCP that allows network administrators to reserve a specific IP address for a device, ensuring it always receives the same address upon network connection. The video script discusses the use of IP reservations for devices like printers or servers, which should consistently have the same IP address for ease of access and management.

Highlights

Manual IP configuration includes an IP address, subnet mask, default gateway, and DNS setting.

Manual IP configuration does not scale well in large enterprise networks.

BOOTP was created in October 1993 to automatically assign IP addresses to devices.

BOOTP had limitations in assigning all necessary configuration settings and managing device departures from the network.

DHCP was introduced as an improved version of BOOTP in 1997, providing automatic configuration for more settings.

The DHCP process involves four steps: Discover, Offer, Request, and Acknowledge (DORA).

DHCP servers can be located using broadcasts sent by devices to UDP port 67 during the Discover phase.

Routers configured as DHCP proxies can forward DHCP broadcast requests to other networks.

DHCP servers respond to client requests with offers sent to UDP port 68 during the Offer phase.

Clients select an offer and send a broadcast request to the DHCP server on UDP port 67 in the Request phase.

DHCP servers acknowledge the request and provide IP configuration settings during the Acknowledge phase, using UDP port 68.

DHCP servers manage a pool of IP addresses to assign to clients, which may vary with each connection.

Reservations on DHCP servers can ensure certain devices always receive the same IP address.

Disabling DHCP and manual IP configuration on devices is an alternative but requires administrative changes.

APIPA assigns an Automatic Private IP Address when no DHCP server is available on the local network.

APIPA addresses are limited to local network communication and are randomly assigned within a specific range.

APIPA uses ARP to check for IP address conflicts before assigning an address to a device.

Windows devices with APIPA addresses show 'autoconfiguration' in the IPv4 address configuration.

Transcripts

play00:02

In a previous video, we talked about a manual configuration

play00:05

of an IP address that includes an IP address, a subnet mask,

play00:09

a default gateway, and a DNS setting.

play00:11

And of course, there are other IP configuration settings

play00:14

as well.

play00:15

You can imagine on an enterprise network, where

play00:17

you have hundreds or even thousands of devices,

play00:21

manually configuring IP addresses is not

play00:23

going to scale very well.

play00:25

And that's why in October of 1993,

play00:27

we created a protocol that can automatically

play00:30

assign IP addresses to devices.

play00:32

We refer to this as the bootstrap protocol or BOOTP.

play00:36

BOOTP was a good start, but it didn't

play00:39

assign all of the different configuration settings

play00:42

that we needed.

play00:42

There were still some manual configurations

play00:45

that you had to do yourself.

play00:46

And BOOTP had no idea when a device would leave the network,

play00:50

so that it could use that IP address for another device

play00:53

later on.

play00:54

To correct some of these shortcomings,

play00:56

we created a new version of BOOTP.

play00:58

And we gave it a new name, the Dynamic Host Configuration

play01:01

Protocol or DHCP.

play01:04

DHCP has been around for quite some time since 1997.

play01:08

And it provides an automatic configuration

play01:10

of IP addresses, subnet masks, default gateways, and many more

play01:15

settings as well.

play01:17

We often don't even think about the process

play01:19

that DHCP goes through to assign these values to your computer.

play01:23

We simply turn on our system, and it magically

play01:26

has an IP address once it boots up.

play01:28

But behind the scenes there are a series

play01:30

of steps that take place to provide that IP

play01:33

configuration to your device.

play01:35

We refer to these four steps as D-O-R-A or Dora.

play01:39

The first of these is the D step or discover,

play01:42

where our devices will try to locate a DHCP server that's

play01:47

on our local network.

play01:48

The next step of O is to offer where a DHCP server will offer

play01:53

an IP address to our device.

play01:55

Our device will then look at the one or many offers

play01:58

that we receive, pick one of those offers,

play02:01

and then request that IP address from the offering DHCP server.

play02:05

And finally, the DHCP server will acknowledge that offer

play02:09

and provide your system with all of the IP configuration

play02:13

settings that it needs.

play02:14

Let's look at each of these steps

play02:16

to see exactly how this process occurs on our network.

play02:20

Here's a simple network diagram that

play02:21

includes my client workstation, which is connected to a switch.

play02:25

And that switch I also have connected a local DHCP

play02:28

server on my local subnet.

play02:30

And I have a router that's on my network as well.

play02:33

On the other side of that router,

play02:35

on a separate IP subnet, is another DHCP server

play02:39

so that we can have some type of redundancy

play02:41

if either one of those was to fail.

play02:43

The step one of the DHCP process or the discover part

play02:47

of the process has my client workstation

play02:50

sending a broadcast out to the network to UDP port 67.

play02:54

This broadcast will be sent to all devices

play02:57

on my local network.

play02:58

And that broadcast is going to be

play03:00

sent both to the router that's on my network and the DHCP

play03:04

server that's on my network.

play03:06

One of the things that you probably

play03:07

remember from looking at broadcast multicast and unicast

play03:11

is that routers will not allow broadcast to pass.

play03:14

But you'll notice in our example,

play03:17

the broadcast did pass through this router

play03:19

and was directed to a DHCP server.

play03:22

That's because we've effectively configured this router

play03:24

as a DHCP proxy.

play03:26

You'll sometimes see this referenced as a DHCP relay,

play03:30

and some manufacturers call it an IP helper.

play03:33

This obviously requires that you pre-configure this router

play03:36

so that any broadcasts associated with DHCP

play03:39

are automatically forwarded to a DHCP server

play03:42

elsewhere on the network.

play03:44

Now that these two DHCP servers have received our request,

play03:47

we can move to step two or the offer phase.

play03:50

These two devices will send their offers back

play03:53

to the original client workstation.

play03:55

This is often sent to a broadcast address over UDP 68.

play03:59

The reason we're using so many broadcasts

play04:01

is because, remember, our client workstation does not yet

play04:04

have an IP address.

play04:06

Now that this message is sent to the client workstation,

play04:09

it can examine both of those offers

play04:11

and make a decision on which offer

play04:13

it should take for the IP address assignment.

play04:17

The client workstation will send another broadcast

play04:19

over UDP port 67 on step three or the request phase.

play04:24

This broadcast contains a formal request

play04:27

to take the offer that was originally sent.

play04:29

And in this particular example, I'm

play04:31

only showing the communication that's

play04:33

occurring between the client workstation and the DHCP server

play04:37

that made the original offer.

play04:39

But of course, since this is a broadcast,

play04:41

it would be sent to all other devices on this local subnet.

play04:45

And now that the DHCP server has received this formal request,

play04:49

it can begin step four or the acknowledgment phase

play04:52

where it sends a message back to the client workstation

play04:55

by default over UDP port 68 confirming

play04:58

that the request from the previous phase

play05:00

has been acknowledged, and this device can assign itself

play05:03

with the configuration settings included in the offer.

play05:06

This four step DORA process happens every time

play05:10

a device connects to the network and needs to obtain an IP

play05:13

address from a DHCP server.

play05:16

When these DHCP servers were first configured,

play05:19

a range of IP addresses was configured inside

play05:22

of that server to hand out to the different clients.

play05:25

We refer to this as a pool of IP addresses.

play05:28

And the IP address that you may pull one day from this pool

play05:31

may be different than when you might use on a different day.

play05:35

But there might be some devices on your network

play05:37

that you would prefer always receive

play05:39

exactly the same IP address every single time it starts up.

play05:43

There might be a printer, a server,

play05:46

or some type of infrastructure device

play05:48

that you would prefer to always have the same IP.

play05:51

One of the ways you could do this

play05:52

is to simply disable DHCP on all of these devices

play05:56

and manually configure the IP addresses yourself.

play05:59

This obviously requires that you administratively

play06:02

make this change.

play06:03

And if you make any changes to the IP address settings

play06:06

on your network, then you'll manually

play06:08

need to revisit these devices to change

play06:11

all of your previous configurations.

play06:13

In a very large environment this may not be very practical.

play06:16

And it certainly requires additional administration.

play06:19

So instead of manually setting an IP address,

play06:22

we can configure a reservation on the DHCP server.

play06:26

This means we'll configure a specific MAC address

play06:29

of a printer, a server, or another device on the network,

play06:33

and tell our DHCP server every time you see this MAC address,

play06:37

always provide it with this reserved IP address.

play06:40

This way every time we start up the printer or the server,

play06:43

it will always have exactly the same IP address.

play06:47

This is the best practice for IP address configurations

play06:50

because we know it's so easy to set a manual address.

play06:53

The problem is that when there are changes to the network,

play06:56

you'll have to go back to every single one of those devices.

play06:59

So having a reservation already in the DHCP server

play07:02

can make this process so much easier

play07:05

than revisiting all of these different devices

play07:07

on your network.

play07:09

There may be times when your device is configured

play07:12

to obtain a DHCP address, but on your local network

play07:15

there's no longer a DHCP server.

play07:18

In those situations your device will

play07:20

be assigned an APIPA address.

play07:23

That stands for an Automatic Private IP Addressing Address.

play07:26

This is sometimes referred to as a link-local address,

play07:30

because any device that's configured with an APIPA

play07:33

address range can only communicate

play07:36

to other devices on the local network.

play07:38

If your device is assigned an APIPA address,

play07:41

it can't communicate outside of your local network.

play07:45

Like most things, there is a standard

play07:47

for the automatic private IP addressing.

play07:49

The entire range is 169.254.0.0 through 169.254.255.255.

play07:57

This particular standard reserves the first and last 256

play08:01

addresses.

play08:02

So if you are assigned an APIPA address,

play08:05

it will be a random assignment between 169.254.1.

play08:08

0 through 169.254.254.255.

play08:15

If you see any of those IP addresses on a system,

play08:19

then you can automatically assume

play08:21

that a DHCP server was not available

play08:23

when the system started up.

play08:25

And you will only be able to communicate with other devices

play08:28

on your local network.

play08:29

Like DHCP, APIPA addresses are also assigned to automatically.

play08:35

But the only device determining what IP address you receive

play08:38

is your local device itself.

play08:40

Your local device will pick a random IP address that's

play08:44

in this APIPA address range.

play08:46

It will perform an address resolution protocol or ARP

play08:49

request to see if anybody else on the local network

play08:52

is currently using that IP address.

play08:54

And if it doesn't receive a response,

play08:56

it assigns signs that APIPA address to your local device.

play09:00

Here's what you would see if you ran

play09:01

an ipconfig/all on a Windows device

play09:05

that has an APIPA address assigned.

play09:07

You can see that the IPv4 address configuration even

play09:10

states that it is an autoconfiguration address.

play09:14

And it is assigned 169.254.228.109

play09:19

with the default subnet mask for APIPA of 255.255.0.0.

play09:26

And because you can't communicate outside

play09:28

of this local network, you can see that the default gateway

play09:31

option has been left blank.

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
DHCPNetworkingIP ConfigurationDORA ProcessBOOTPAPIPAEnterprise NetworksIT InfrastructureAutomatic IPDHCP Reservation