ecmm6018 enterprise networking for electronic commerce tutorial 7 dynamic host protocol

10
ECMM6018 ECMM6018 Enterprise Networking for Enterprise Networking for Electronic Commerce Electronic Commerce Tutorial 7 Tutorial 7 Dynamic Host Protocol

Upload: nathan-anderson

Post on 13-Dec-2015

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7 Dynamic Host Protocol

ECMM6018ECMM6018Enterprise Networking for Electronic Enterprise Networking for Electronic

CommerceCommerceTutorial 7Tutorial 7

Dynamic Host Protocol

Page 2: ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7 Dynamic Host Protocol

What Is ItWhat 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

Page 3: ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7 Dynamic Host Protocol

Why Use ItWhy Use It

The Growing size of Networks

Requires Less Human Interaction

Less Prone To Error

Portability

Page 4: ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7 Dynamic Host Protocol

Who Uses ItWho Uses It

Internet Service Providers

Universities

Large Corporations and Organizations

Anyone who has to deal with a large range of Internet Addresses

Page 5: ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7 Dynamic Host Protocol

DHCP ServerDHCP 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

Page 6: ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7 Dynamic Host Protocol

DHCP Server Configuration FileDHCP Server Configuration File

subnet 192.168.1.0 netmask 255.255.255.0 { # The range of IP addresses the server# will issue to DHCP enabled PC clients# booting up on the network range 192.168.1.201 192.168.1.220; # Set the amount of time in seconds that# a client may keep the IP address

default-lease-time 86400;max-lease-time 86400;

 

Page 7: ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7 Dynamic Host Protocol

DHCP Server DHCP Server Configuration FileConfiguration File

# Set the default gateway to be used by# the PC clients option routers 192.168.1.1;

 # 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 192.168.1.255;option subnet-mask 255.255.255.0;

 

Page 8: ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7 Dynamic Host Protocol

DHCP Server Configuration FileDHCP Server Configuration File

Set the DNS server to be used by the # DHCP clients

option domain-name-servers 192.168.1.100; # Set the NTP server to be used by the # DHCP clients option nntp-server 192.168.1.100;  # 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 192.168.1.100;

}

Page 9: ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7 Dynamic Host Protocol

DHCP Server Configuration FileDHCP Server Configuration File

host MEC-1 {

hardware ethernet 08:00:2b:4c:59:23;fixed-address 192.168.1.222;

}

Page 10: ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7 Dynamic Host Protocol

DHCP ClientDHCP 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