Sunteți pe pagina 1din 16

DHCP

• Dynamic host configuration protocol


• Allow the hosts to get assigned an IP address from
pool of IP address automatically.

• Allow the clients also to receive IP address from


outside network segment.

• The server can be configured to accept requests


from only a specific set of MAC address.
DHC: Service profile

• Packages : dhcp

• Daemons : dhcpd

• Config file : /etc/dhcpd.conf,

• /var/lib/dhcp/dhcp.leases

• Ports : 67(bootps), 68(bootpc)


DHCP configuration

The package dhcp is


checked whether insatalled.
DHCP configuration

Dhcp configuration need a


single package called dhcp
which can be installed through
rpm command.
DHCP configuration

Command rpm -ql checks the


files present in the dhcp
package .

dhcp.conf.sample is a
configuration file, which must
be copied to the /etc directory.
DHCP configuration

Using cp command the


dhcp.conf.sample is copied to
/etc/dhcp.conf.

We get into the


configuration file copied
earlier.
DHCP configuration
Specify the network
here and subnet
mask.
Nis domain is
mentioned here.

The gateway and


subnet is
mentioned here.
DNS name is
mentioned here and
the DNS ip address.
DHCP configuration

Dynamic range ip is
mentioned here for
the client systems.
DHCP configuration

The ip
192.168.0.20 is
the gateway for
the client
machines.

Ipdomain
The ranges is specified
name for the
is mentioned
client
here machine to assign
as example.com and ip
automatically.
address.
DHCP configuration

ip is mentioned for the


particular system by
mac address.
DHCP configuration

ip is added to the host


station33 by mac
address.
DHCP configuration

In the client machine,


netconfig command is
used to assign the ip
address.
DHCP configuration

Using space bar the #


(hash) symbol is checked to
enable the dhcp service.
DHCP configuration

Network service is
restarted to enable
the dhcp service.

p is viewed to check
the dhcp services
enabled.
Now the gateway has
been assigned via
dhcp.
DHCP configuration

Open the
resolv.conf
file.
DHCP configuration

In the client machine the


above domain name and ip
address get assigned.