1-install pack dhcp
rpm –q dhcp
Rpm –ivh dhcp-(version).rpm
rpm –q dhcp
Rpm –ivh dhcp-(version).rpm
2-ndokhlo fichier dhcpd b cmd
vi /etc/dhcp/dhcpd.conf
vi /etc/dhcp/dhcpd.conf
3-modifie @ w domain .....
subnet 192.168.20.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.20.254;
option subnet-mask 255.255.255.0;
option routers 192.168.20.254;
option subnet-mask 255.255.255.0;
option nis-domain "domain
.org";option domain-name "Reseaux01Informatique.ma";
option domain-name-servers 192.168.20.1;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.20.150 192.168.20.200;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host poste1 {
host poste1 {
hardware ethernet 11-bb-cc-22-ee-44;
fixed-address 192.168.20.2;
};
Host poste2 {
hardware ethernet 11-dd-aa-22-44-44;
fixed-address 192.168.20.3;
};
fixed-address 192.168.20.2;
};
Host poste2 {
hardware ethernet 11-dd-aa-22-44-44;
fixed-address 192.168.20.3;
};
4-redémarrer service b cmd
service dhcpd restart