Sie sind auf Seite 1von 25

BTECH3617

Computer Networks

TABLE OF CONTENT

1.0 2.0

INTRODUCTION CONFIGURATION PROTOCOL Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7

Page 2 3 3 4 5 6 7 8 8 9 9 10 11 11 11 12 12 13 14 15

3.0

FINAL RESULT Figure 8 Figure 9 3.1 Wire Shark Capture Figure 10 Figure 11 Figure 12 Figure 13

4.0 5.0

CONCLUSION REFERENCES APPENDIX

1|Page

BTECH3617

Computer Networks

1.0 INTRODUCTION Dynamic Host Configuration Protocol, a protocol for assigning dynamic IP addresses to devices on a network. With dynamic addressing, a device can have a different IP address every time it connects to the network. In some systems, the device's IP address can even change while it is still connected. DHCP also supports a mix of static and dynamic IP addresses. Computers that are connected to IP networks must be configured before they can communicate with other computers on the network. DHCP allows a computer to be configured automatically, eliminating the need for intervention by a network administrator. It also provides a central database for keeping track of computers that have been connected to the network. This prevents two computers from accidentally being configured with the same IP address. Dynamic addressing simplifies network administration because the software keeps track of IP addresses rather than requiring an administrator to manage the task. This means that a new computer can be added to a network without the hassle of manually assigning it a unique IP address. Many ISPs use dynamic IP addressing for dial-up users. Dynamic Host Configuration Protocol is controlled by a DHCP server. Your router can be a DHCP server...and if you're on a home network, it most likely serves this purpose. I know this might be confusing because the word dynamic is in the term, but just because you have DHCP enabled on your computer doesn't mean you can't be assigned a static IP. DHCP enabled on your computer simply means you're letting a DHCP server assign its IP. Having it enabled DOES NOT mean it's a DHCP server. A true DHCP server (not your Linksys router) gives the LAN Admin a ton of control with IP assigning. Your ISP has a DHCP server. They can assign IPs by modem MAC addresses. When your modem comes online, it communicates to the network indicating it is looking for an IP address. The DHCP server listens to this communication and starts talking to the modem. The modem then transmits its MAC address to the DHCP server. At that point,
2|Page

BTECH3617

Computer Networks

either an IP has been reserved for the modem or one is assigned at that time; Hence cloning your MAC address to get a new IP from your ISP. Routers and DHCP - Under the General Setup or LAN Setup tab in your router, you'll see a settings option for DHCP. You can control how many IPs are assigned or to enable/disable the DHCP server portion of the router. If you disable it, you'll have to statically assign IPs to each computer, or have a DHCP server or your network. This goes for wired and wireless. Any connection on your network has an IP address.

2.0 CONFIGURATION PROTOCOL

Figure1: Configuration starts up page.

3|Page

BTECH3617

Computer Networks

Figure 2 The DHCP configuration wizard lists all currently identified network interfaces on your computer. It is necessary to select one. This is going to be the interface that will be used by DHCP server. It is a good idea to choose a network interface that by itself is not getting it's IP address from a DHCP server. This would probably cause conflicts. Hit next after interface has be

4|Page

BTECH3617

Computer Networks

Figure 3 In this part, we select the support protocol, so in this case we are choosing the HTTP (web Server).

5|Page

BTECH3617

Computer Networks

Figure 4 You have to define the pool of IP address, so in this step you define the pool of IP addresses. A client will get an IP addresses assigned out of this pool. With the Advanced button, you get access to a dialog that allows you to define the subnet mask, the gateways and the DNS and WINS servers. DHCP wizard automatically takes the appropriate defaults based on the selected network interface card. The DHCP Options button opens a dialog that gives access to further DHCP options such as next (TFTP) server, bootfile, domain name and others including customized options. The default values should be good and lead you to the next step after hitting the next button.

6|Page

BTECH3617

Computer Networks

Figure 5 The final result of the DHCP configuration wizard is an INI file. This file will contain all the configuration options. The filename and path shown here should point to d:\dhcpsrv\dhcpsrv.ini, depending on where you've extracted the zip file. It is important that the INI file is placed into the same folder as dhcpsrv.exe resides. If that is all ok, then hit the "Write INI file" button and then the next button to enter the final step of the configuration. Please note that DHCP wizard is not intended to reedit the INI file once it is written. Its purpose is the first time configuration. But of course nothing prevents you from using the wizard again. Just please make sure that you don't overwrite your INI file unintended. That is the reason why the "Overwrite existing file" is by default unchecked.

7|Page

BTECH3617

Computer Networks

Figure 6

Figure 7
8|Page

BTECH3617

Computer Networks

In this step you add the DHCP server to you firewall programexceptions.Please hit the configure button and wait for the status to change from "Not configured" to "configured". If you are not running the DHCP configuration wizard with administrator privileges, then you need to do that after you have elevated your rights accordingly by hitting the "Admin..." button.

3.0 FINAL RESULT

Figure 8

9|Page

BTECH3617

Computer Networks

Figure 9

10 | P a g e

BTECH3617

Computer Networks

3.1 Wire Shark Capture

Figure 10

Figure 11

11 | P a g e

BTECH3617

Computer Networks

Figure 12

Figure 13

12 | P a g e

BTECH3617

Computer Networks

4.0 CONCLUSION Basically DHCP server needs to be configured and once that is done, you can now assign and monitor computers connected to you network buy assigning IP addresses to the computers. The server will assign IP till it reaches the defined number of IP to be assigned. DHCP uses the concept of a "lease" or amount of time that a given IP address will be valid for a computer. The lease time can vary depending on how long a user is likely to require the Internet connection at a particular location. It's especially useful in education and other environments where users change frequently. Using very short leases, DHCP can dynamically reconfigure networks in which there are more computers than there are available IP addresses. The protocol also supports static addresses for computers that need a permanent IP address, such as Web servers. It also provides reliability in several ways: periodic, renewal, rebinding and failover. Once a client realizes that half the lease interval has expired, they will try to renew it by sending a unicast DHCP request message to the DHCP server that will allow for its lease renewal. In order for rebinding to work, when the client successfully contacts a backup DHCP server, that server must have accurate information about the client's binding. And if rebinding fails, the lease will eventually expire. When the lease expires, the client must stop using the IP address granted to it in its lease.

13 | P a g e

BTECH3617

Computer Networks

5.0 REFERENCES Myip (2011), Configuration protocol, http://www.whatismyip.com/faq/what-isdhcp.asp#ixzz1I18FTe5c viewed on 30 March 2011. Webopedia (2011), DHCP http://www.webopedia.com/TERM/D/DHCP.html viewed on 30 March 2011. Wikipedia (2011), DHCP, http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol viewed on 30 March, 2011

14 | P a g e

BTECH3617

Computer Networks

APPENDIX

DHCP SERVER LOG [03/30/2011 01:53:13] DHCP Server V1.7.0 started as Application [03/30/2011 01:53:13] Adapter 0 with IP address 169.254.140.147 found [03/30/2011 01:53:20] Adapter 0 has recognized an incoming request [03/30/2011 01:53:20] DHCP message = DHCPDISCOVER [03/30/2011 01:53:20] client identifier (option 61) is not recognized [03/30/2011 01:53:20] Lookup client data for physical address "00-22-5F-A7-F7-6B" / client_id "00-22-5F-A7-F7-6B" [03/30/2011 01:53:20] Client 00-22-5F-A7-F7-6B is not configured [03/30/2011 01:53:20] Perform auto configuration [03/30/2011 01:53:20] IPPOOL_1: 192.168.3.10-14 [03/30/2011 01:53:20] Auto configuration succeeded: IP-Addr = 192.168.3.10 [03/30/2011 01:53:20] Response: offer the configured IP address (lease time = 86400) [03/30/2011 01:53:20] Sending a broadcast response to the client [03/30/2011 01:53:20] Adapter 0 has recognized an incoming request [03/30/2011 01:53:20] DHCP message = DHCPREQUEST [03/30/2011 01:53:20] client identifier (option 61) is not recognized

15 | P a g e

BTECH3617

Computer Networks

[03/30/2011 01:53:20] Lookup client data for physical address "00-22-5F-A7-F7-6B" / client_id "00-22-5F-A7-F7-6B" [03/30/2011 01:53:20] Client 00-22-5F-A7-F7-6B is not configured [03/30/2011 01:53:20] Perform auto configuration [03/30/2011 01:53:20] IPPOOL_1: 192.168.3.10-14 [03/30/2011 01:53:20] Auto configuration succeeded: IP-Addr = 192.168.3.10 [03/30/2011 01:53:20] Response: hand out the configured IP address (lease time = 86400) [03/30/2011 01:53:20] Sending a broadcast response to the client [03/30/2011 01:53:21] DHCP Server is terminating (ignore error messages that follow) [03/30/2011 01:53:21] recvfrom returns with error 10038 [03/30/2011 01:53:21] Request ignored [03/30/2011 01:53:21] DHCP Server terminated [03/30/2011 01:53:21] DHCP Server V1.7.0 started as Application [03/30/2011 01:53:21] Adapter 0 with IP address 192.168.3.10 found [03/30/2011 01:53:22] Adapter 0 has recognized an incoming request [03/30/2011 01:53:22] DHCP message = DHCPDISCOVER [03/30/2011 01:53:22] client identifier (option 61) is not recognized

16 | P a g e

BTECH3617

Computer Networks

[03/30/2011 01:53:22] Lookup client data for physical address "70-F1-A1-F2-41-9E" / client_id "70-F1-A1-F2-41-9E" [03/30/2011 01:53:22] Client 70-F1-A1-F2-41-9E is not configured [03/30/2011 01:53:22] Perform auto configuration [03/30/2011 01:53:22] IPPOOL_1: 192.168.3.10-14 [03/30/2011 01:53:22] Exclude 192.168.3.10 from IP pool [03/30/2011 01:53:22] Auto configuration succeeded: IP-Addr = 192.168.3.11 [03/30/2011 01:53:22] Response: offer the configured IP address (lease time = 86400) [03/30/2011 01:53:22] Sending a broadcast response to the client [03/30/2011 01:53:22] Adapter 0 has recognized an incoming request [03/30/2011 01:53:22] DHCP message = DHCPREQUEST [03/30/2011 01:53:22] client identifier (option 61) is not recognized [03/30/2011 01:53:22] Lookup client data for physical address "70-F1-A1-F2-41-9E" / client_id "70-F1-A1-F2-41-9E" [03/30/2011 01:53:22] Client 70-F1-A1-F2-41-9E is not configured [03/30/2011 01:53:22] Perform auto configuration [03/30/2011 01:53:22] IPPOOL_1: 192.168.3.10-14 [03/30/2011 01:53:22] Exclude 192.168.3.10 from IP pool [03/30/2011 01:53:22] Auto configuration succeeded: IP-Addr = 192.168.3.11
17 | P a g e

BTECH3617

Computer Networks

[03/30/2011 01:53:22] Response: hand out the configured IP address (lease time = 86400) [03/30/2011 01:53:22] Sending a broadcast response to the client [03/30/2011 01:53:23] Adapter 0 has recognized an incoming request [03/30/2011 01:53:23] DHCP message = 8 [03/30/2011 01:53:23] client identifier (option 61) is not recognized [03/30/2011 01:53:23] Lookup client data for physical address "00-22-5F-A7-F7-6B" / client_id "00-22-5F-A7-F7-6B" [03/30/2011 01:53:23] Client 00-22-5F-A7-F7-6B is configured with the IP address 192.168.3.10 [03/30/2011 01:53:24] Sending a unicast response to the client [03/30/2011 01:53:24] DHCP Server is terminating (ignore error messages that follow) [03/30/2011 01:53:24] recvfrom returns with error 10038 [03/30/2011 01:53:24] Request ignored [03/30/2011 01:53:24] DHCP Server terminated [03/30/2011 01:53:24] DHCP Server V1.7.0 started as Application [03/30/2011 01:53:24] Adapter 0 with IP address 192.168.3.10 found [03/30/2011 01:54:37] Adapter 0 has recognized an incoming request [03/30/2011 01:54:37] DHCP message = 8

18 | P a g e

BTECH3617

Computer Networks

[03/30/2011 01:54:37] client identifier (option 61) is not recognized [03/30/2011 01:54:37] Lookup client data for physical address "00-22-5F-A7-F7-6B" / client_id "00-22-5F-A7-F7-6B" [03/30/2011 01:54:37] Client 00-22-5F-A7-F7-6B is configured with the IP address 192.168.3.10 [03/30/2011 01:54:37] Sending a unicast response to the client [03/30/2011 01:54:43] DHCP Server V1.7.0 started as Application [03/30/2011 01:54:43] Adapter 0 with IP address 192.168.3.10 found [03/30/2011 01:55:40] DHCP Server is terminating (ignore error messages that follow) [03/30/2011 01:55:40] recvfrom returns with error 10038 [03/30/2011 01:55:40] Request ignored [03/30/2011 01:55:40] DHCP Server terminated [03/30/2011 01:55:42] Adapter 0 has recognized an incoming request [03/30/2011 01:55:42] DHCP message = 8 [03/30/2011 01:55:42] client identifier (option 61) is not recognized [03/30/2011 01:55:42] Lookup client data for physical address "00-22-5F-A7-F7-6B" / client_id "00-22-5F-A7-F7-6B" [03/30/2011 01:55:42] Client 00-22-5F-A7-F7-6B is configured with the IP address 192.168.3.10 [03/30/2011 01:55:42] Sending a unicast response to the client
19 | P a g e

BTECH3617

Computer Networks

[03/30/2011 01:56:47] Adapter 0 has recognized an incoming request [03/30/2011 01:56:47] DHCP message = 8 [03/30/2011 01:56:47] client identifier (option 61) is not recognized [03/30/2011 01:56:47] Lookup client data for physical address "00-22-5F-A7-F7-6B" / client_id "00-22-5F-A7-F7-6B" [03/30/2011 01:56:47] Client 00-22-5F-A7-F7-6B is configured with the IP address 192.168.3.10 [03/30/2011 01:56:47] Sending a unicast response to the client [03/30/2011 01:57:17] DHCP Server is terminating (ignore error messages that follow) [03/30/2011 01:57:17] recvfrom returns with error 10038 [03/30/2011 01:57:17] Request ignored [03/30/2011 01:57:17] DHCP Server terminated [03/30/2011 01:57:17] DHCP Server V1.7.0 started as Application [03/30/2011 01:57:17] Adapter 0 with IP address 127.0.0.1 found [03/30/2011 01:57:22] DHCP Server is terminating (ignore error messages that follow) [03/30/2011 01:57:22] recvfrom returns with error 10038 [03/30/2011 01:57:22] Request ignored [03/30/2011 01:57:22] DHCP Server terminated [03/30/2011 01:57:22] DHCP Server V1.7.0 started as Application
20 | P a g e

BTECH3617

Computer Networks

[03/30/2011 01:57:22] Adapter 0 with IP address 192.168.0.103 found [03/30/2011 01:57:25] DHCP Server is terminating (ignore error messages that follow) [03/30/2011 01:57:25] recvfrom returns with error 10038 [03/30/2011 01:57:25] Request ignored [03/30/2011 01:57:25] DHCP Server terminated [03/30/2011 01:57:25] DHCP Server V1.7.0 started as Application [03/30/2011 01:57:25] Adapter 0 with IP address 192.168.0.103 found [03/30/2011 01:57:30] DHCP Server is terminating (ignore error messages that follow) [03/30/2011 01:57:30] recvfrom returns with error 10038 [03/30/2011 01:57:30] Request ignored [03/30/2011 01:57:30] DHCP Server terminated [03/30/2011 01:57:30] DHCP Server V1.7.0 started as Application [03/30/2011 01:57:30] Adapter 0 with IP address 127.0.0.1 found [03/30/2011 01:57:48] DHCP Server is terminating (ignore error messages that follow) [03/30/2011 01:57:48] recvfrom returns with error 10038 [03/30/2011 01:57:48] Request ignored [03/30/2011 01:57:48] DHCP Server terminated [03/30/2011 01:57:48] DHCP Server V1.7.0 started as Application

21 | P a g e

BTECH3617

Computer Networks

[03/30/2011 01:57:48] Adapter 0 with IP address 192.168.3.10 found [03/30/2011 01:57:50] Adapter 0 has recognized an incoming request [03/30/2011 01:57:50] DHCP message = DHCPREQUEST [03/30/2011 01:57:50] client identifier (option 61) is not recognized [03/30/2011 01:57:50] Lookup client data for physical address "00-22-5F-A7-F7-6B" / client_id "00-22-5F-A7-F7-6B" [03/30/2011 01:57:50] Client 00-22-5F-A7-F7-6B is configured with the IP address 192.168.3.10 [03/30/2011 01:57:50] Response: hand out the configured IP address (lease time = 86400) [03/30/2011 01:57:50] Sending a broadcast response to the client [03/30/2011 01:57:50] Adapter 0 has recognized an incoming request [03/30/2011 01:57:50] DHCP message = DHCPREQUEST [03/30/2011 01:57:51] client identifier (option 61) is not recognized [03/30/2011 01:57:51] Lookup client data for physical address "70-F1-A1-F2-41-9E" / client_id "70-F1-A1-F2-41-9E" [03/30/2011 01:57:51] Client 70-F1-A1-F2-41-9E is configured with the IP address 192.168.3.11 [03/30/2011 01:57:51] DHCP Server is terminating (ignore error messages that follow) [03/30/2011 01:57:52] Response: hand out the configured IP address (lease time = 86400)
22 | P a g e

BTECH3617

Computer Networks

[03/30/2011 01:57:52] Sending a broadcast response to the client [03/30/2011 01:57:52] sendto returns with error 10038 [03/30/2011 01:57:52] DHCP Server terminated [03/30/2011 01:57:52] DHCP Server V1.7.0 started as Application [03/30/2011 01:57:53] Adapter 0 with IP address 192.168.3.10 found [03/30/2011 01:57:59] Adapter 0 has recognized an incoming request [03/30/2011 01:57:59] DHCP message = DHCPREQUEST [03/30/2011 01:57:59] client identifier (option 61) is not recognized [03/30/2011 01:57:59] Lookup client data for physical address "70-F1-A1-F2-41-9E" / client_id "70-F1-A1-F2-41-9E" [03/30/2011 01:57:59] Client 70-F1-A1-F2-41-9E is configured with the IP address 192.168.3.11 [03/30/2011 01:57:59] Response: hand out the configured IP address (lease time = 86400) [03/30/2011 01:57:59] Sending a broadcast response to the client [03/30/2011 01:58:48] DHCP Server is terminating (ignore error messages that follow) [03/30/2011 01:58:48] recvfrom returns with error 10038 [03/30/2011 01:58:48] Request ignored [03/30/2011 01:58:48] DHCP Server terminated

23 | P a g e

BTECH3617

Computer Networks

[03/30/2011 01:58:48] DHCP Server V1.7.0 started as Application [03/30/2011 01:58:48] Adapter 0 with IP address 127.0.0.1 found [03/30/2011 01:59:00] DHCP Server is terminating (ignore error messages that follow) [03/30/2011 01:59:00] recvfrom returns with error 10038 [03/30/2011 01:59:00] Request ignored [03/30/2011 01:59:00] DHCP Server terminated [03/30/2011 01:59:00] DHCP Server V1.7.0 started as Application [03/30/2011 01:59:00] Adapter 0 with IP address 192.168.3.10 found [03/30/2011 01:59:01] Adapter 0 has recognized an incoming request [03/30/2011 01:59:01] DHCP message = DHCPREQUEST [03/30/2011 01:59:01] client identifier (option 61) is not recognized [03/30/2011 01:59:01] Lookup client data for physical address "70-F1-A1-F2-41-9E" / client_id "70-F1-A1-F2-41-9E" [03/30/2011 01:59:01] Client 70-F1-A1-F2-41-9E is configured with the IP address 192.168.3.11 [03/30/2011 01:59:01] Response: hand out the configured IP address (lease time = 86400) [03/30/2011 01:59:01] Sending a broadcast response to the client [03/30/2011 01:59:07] Adapter 0 has recognized an incoming request

24 | P a g e

BTECH3617

Computer Networks

[03/30/2011 01:59:07] DHCP message = DHCPREQUEST [03/30/2011 01:59:07] client identifier (option 61) is not recognized [03/30/2011 01:59:07] Lookup client data for physical address "00-22-5F-A7-F7-6B" / client_id "00-22-5F-A7-F7-6B" [03/30/2011 01:59:07] Client 00-22-5F-A7-F7-6B is configured with the IP address 192.168.3.10 [03/30/2011 01:59:07] Response: hand out the configured IP address (lease time = 86400) [03/30/2011 01:59:07] Sending a broadcast response to the client [03/30/2011 02:02:58] DHCP Server is terminating (ignore error messages that follow) [03/30/2011 02:02:58] recvfrom returns with error 10038 [03/30/2011 02:02:58] Request ignored [03/30/2011 02:02:59] DHCP Server terminated [03/30/2011 02:05:06] DHCP Server V1.7.0 started as Application [03/30/2011 02:05:06] Adapter 0 with IP address 192.168.0.103 found [03/30/2011 02:07:06] DHCP Server is terminating (ignore error messages that follow) [03/30/2011 02:07:06] recvfrom returns with error 10038 [03/30/2011 02:07:06] Request ignored [03/30/2011 02:07:06] DHCP Server terminated

25 | P a g e

Das könnte Ihnen auch gefallen