Вы находитесь на странице: 1из 6

Dynamic Host Configuration Protocol (DHCP)

The Dynamic Host Configuration Protocol (DHCP) is a network service that enables host computers to be automatically assigned settings from a server as opposed to manually configuring each network host. Computers configured to be DHCP clients have no control over the settings they receive from the DHCP server and the configuration is transparent to the computer!s user.

Installation

"t a terminal prompt enter the following command to install dhcpd# sudo apt-get install dhcp3-server

$ou will probably need to change the default configuration by editing %etc%dhcp&%dhcpd.conf to suit your needs and particular configuration. $ou also need to edit %etc%default%dhcp&'server to specify the interfaces dhcpd should listen to. (y default it listens to eth).

Configuration

The error message the installation ends with might be a little confusing but the following steps will help you configure the service# *ost commonly what you want to do is assign an +P address randomly. This can be done with settings as follows#

Configuration

nano 'w %etc%dhcp&%dhcpd.conf


, -ample %etc%dhcpd.conf , (add your comments here) default'lease'time .))/ ma0'lease'time 12))/ option subnet'mask 233.233.233.)/ option broadcast'address 452.4.6.4.233/ option routers 452.4.6.4.237/ option domain'name'servers 452.4.6.4.4 452.4.6.4.2/ option domain'name 8mydomain.e0ample8/ subnet 452.4.6.4.) netmask 233.233.233.) 9 range 452.4.6.4.4) 452.4.6.4.4))/ range 452.4.6.4.43) 452.4.6.4.2))/ :

Configuration

This will result in the DHCP server giving a client an +P address from the range

452.4.6.4.4)'452.4.6.4.4)) or 452.4.6.4.43)'452.4.6.4.2)).

+t will lease an +P address for .)) seconds if the client doesn!t ask for a specific time frame. ;therwise the ma0imum (allowed) lease will be 12)) seconds.

Configuration

The server will also 8advise8 the client that it should use

233.233.233.) as its subnet mask 452.4.6.4.233 as its broadcast address 452.4.6.4.237 as the router%gateway and 452.4.6.4.4 and 452.4.6.4.2 as its D<- servers.

Вам также может понравиться