DHCP

DHCP - Dynamic Host Configuration Protocol

Type: System V-Service

Package: DHCP

Srcipt: \etc\init.d\dhcp

Port: 67,68

Configuration: \etc\dhcpd.conf

Configuring the DHCP

1) Rpm -q DHCP

2) cp /usr/share/doc/dhcp-3.0.1/dhcpd.conf.sample /etc/dhcpd.conf

(This is the sample DHCP file)

3) vi /etc/dhcp.conf

in the line

Option domain-name "sandip.com";

Option domain-name-server 192.168.0.10;

range dynamic-bootp 192.168.0.12 192.168.0.24;

4) save the file

5) Service dhcpd restart

For giving a static ip to a particular machine

host station2.example.com

{

hardware ethernet 52:54:ab:if:eb:62; (this is the MAC address of the ethernet card)

fixed-address 192.168.0.2;

}

}