ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7 Dynamic Host Protocol
What Is It A protocol for assigning dynamic IP addresses to devices on a network Devices can be workstations, servers, routers, printers A device can have a different IP address every time it connects to the network It supports a mix of static and dynamic IP addresses e.g. Web server needs a static IP address
Why Use It The Growing size of Networks Requires Less Human Interaction Less Prone To Error Portability
Who Uses It Internet Service Providers Universities Large Corporations and Organizations Anyone who has to deal with a large range of Internet Addresses
DHCP Server Server which issues IP addresses to devices when they connect to the network Configuration file - This contains a range of options to send to the client machine
DHCP Server Configuration File subnet netmask { # The range of IP addresses the server # will issue to DHCP enabled PC clients # booting up on the network range ; # Set the amount of time in seconds that # a client may keep the IP address default-lease-time 86400; max-lease-time 86400;
DHCP Server Configuration File # Set the default gateway to be used by # the PC clients option routers ; # Don't forward DHCP requests from this # NIC interface to any other NIC # interfaces option ip-forwarding off; # Set the broadcast address and subnet mask # to be used by the DHCP clients option broadcast-address ; option subnet-mask ;
DHCP Server Configuration File Set the DNS server to be used by the # DHCP clients option domain-name-servers ; # Set the NTP server to be used by the # DHCP clients option nntp-server ; # If you specify a WINS server for your Windows clients, # you need to include the following option in the dhcpd.conf file: option netbios-name-servers ; }
DHCP Server Configuration File host MEC-1 { hardware ethernet 08:00:2b:4c:59:23; fixed-address ; }
DHCP Client Broadcasts DHCPDISCOVER request on the network Listening DHCP Server issues a DHCPOFFER response The server then assigns an IP address to that DHCP client machine