Presentation is loading. Please wait.

Presentation is loading. Please wait.

TCP/IP Protocol Suite 1 16.2 DHCP The Dynamic Host Configuration Protocol (DHCP) provides static and dynamic address allocation that can be manual or automatic.

Similar presentations


Presentation on theme: "TCP/IP Protocol Suite 1 16.2 DHCP The Dynamic Host Configuration Protocol (DHCP) provides static and dynamic address allocation that can be manual or automatic."— Presentation transcript:

1 TCP/IP Protocol Suite 1 16.2 DHCP The Dynamic Host Configuration Protocol (DHCP) provides static and dynamic address allocation that can be manual or automatic. The topics discussed in this section include: Static Address Allocation Dynamic Address Allocation Manual and Automatic Configuration Packet Format Transition States Exchanging Messages

2 TCP/IP Protocol Suite 2 DHCP basics Bootp is static, but DHCP is dynamic (but it can also be static). DHCP has a pool of available addresses. When a request arrives, DHCP pulls out the next available address and assigns it to the client for a negotiable time period. When a request comes in from a client, the DHCP server first consults the static table. DHCP is great when devices and IP addresses change.

3 TCP/IP Protocol Suite 3 Figure 16.6 DHCP packet

4 TCP/IP Protocol Suite 4 DHCPMessageFi eld Description Operation Code Specifies the type of the Dynamic Host Configuration Protocol (DHCP) message. Set to 1 in messages sent by a client (requests) and 2 in messages sent by a server (response). Hardware TypeSpecifies the network LAN architecture. For example, the ethernet type is specified when htype is set to 1. Hardware Address Length Link-layer address length (in bytes); defines the length of hardware address in the chaddr field. For Ethernet, this value is 6. hardware address HopsNumber of relay agents that have forwarded this message. Transaction identifier Used by clients to match responses from servers with previously transmitted requests. secondsElapsed time (in seconds) since the client began theDynamic Host Configuration Protocol (DHCP)process. FlagsFlags field is called the broadcast bit, can be set to 1 to indicate that messages to the client must be broadcast ciaddrClient’s IP address ; set by the client when the client has confirmed that its IP address is valid. IP address yiaddrClient’s IP address; set by the server to inform the client of the client’s IP address. siaddr IP address of the next server for the client to use in the configuration process (for example, the serverto contact for TFTP download of an operating system kernel). giaddr Relay agent (gateway) IP address; filled in by the relay agent with the address of the interface through which Dynamic Host Configuration Protocol (DHCP) message was received. chaddrClient’s hardware address. (Layer 2 address) snameName of the next server for client to use in the configuration process. file Name of the file for the client to request from the next server (for example the name of the file that contains the operating system for this client).


Download ppt "TCP/IP Protocol Suite 1 16.2 DHCP The Dynamic Host Configuration Protocol (DHCP) provides static and dynamic address allocation that can be manual or automatic."

Similar presentations


Ads by Google