DHCP

:
*)mise en reseau
**)copier le ficheir de configuaration /etc/dhcpd.conf (/etc/dhcp/dhcpd.conf)7
***)configuration de fichier /etc/dhcpd.conf
cat /usr/share/doc/dhcp*/dhcpd.conf.sample
==> declaration d'une etendue:
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.254;
option subnet mask 255.255.255.0;
option "cfmoti.ma";
option domaine name server 192.168.1.1;
option netbios server 192.168.1.2;
range 192.168.1.10 192.168.1.100;
default-lease-time 3600;
max-lease_time 86400;
}
Reservation :
host nom de machine {
hardware ethernet @MAC;
fixed-address 192.168.1.20;
}
****)demarrer le service ==> service dhcpd start
reservation pour groupe des machines:
group {
option router......==> passerelle
option domaine name .....==>nom de domaine
host nmo machine1 {
hardware ethernet @MAC1;
fixed-address @ip1;
}
host nmo machine2 {
hardware ethernet @MAC2;
fixed-address @ip3;
}
host nmo machine3 {
hardware ethernet @MAC3;
fixed-address @ip3;
}
}