Configuración del servicio DHCP

De Wiki Educalibre

# Sample configuration file for ISCD dhcpd
#
# Don't forget to set run_dhcpd=1 in /etc/init.d/dhcpd
# once you adjusted this file and copied it to /etc/dhcpd.conf
# (for dhcpd v. 2) or /etc/dhcp3/dhcpd.conf (for dhcpd v. 3).
#
# For dhcpd v. 3, you need to uncomment the following two lines:
#option option-128 code 128 = string;
#option option-129 code 129 = text;
#

default-lease-time            21600;
max-lease-time                21600;

option subnet-mask            255.255.255.0;
option broadcast-address      192.168.0.255;
option routers                192.168.0.1;
option domain-name-servers    192.168.0.1;
option domain-name            "yamil.local";
option root-path              "192.168.0.203:/opt/ltsp/i386";

shared-network WORKSTATIONS {
    subnet 192.168.0.0 netmask 255.255.255.0 {
    range 192.168.0.200 192.168.0.254;  
  }
}

group	{
    use-host-decl-names       on;
    option log-servers        192.168.0.203;
# The following is _NOT_ a MAC address!
    option option-128         e4:45:74:68:00:00;

    host ws001 {
        hardware ethernet     00:D0:09:9C:EE:CA;
        fixed-address         192.168.0.216;
       filename              "/tftpboot/lts/vmlinuz-2.4.22-ltsp-1";
      option option-129     "NIC=sis900";
    }
   
    host ws002 {
 	hardware ethernet     00:40:C7:82:02:8A;
 	fixed-address		192.168.0.217;
      option option-129     "NIC=8139too";
       filename              "/tftpboot/lts/vmlinuz-2.4.22-ltsp-1";
     }
    host ws003 {
         hardware ethernet      00:D0:09:9C:A5:07; 
         fixed-address            192.168.0.218;
         option option-129        "NIC=sis900";         
         filename               "/tftpboot/lts/vmlinuz-2.4.22-ltsp-1";
     }   
    host ws004 {
         hardware ethernet      00:D0:09:9C:A4:5D; 
         fixed-address            192.168.0.201;
         option option-129        "NIC=sis900";         
         filename               "/tftpboot/lts/vmlinuz-2.4.22-ltsp-1";
     }   
    host tarro5 {
         hardware ethernet      00:D0:09:9E:39:53; 
         fixed-address            192.168.0.202;
         option option-129        "NIC=sis900";         
         filename               "/tftpboot/lts/vmlinuz-2.4.22-ltsp-1";
     }   
    host tarro6 {
         hardware ethernet      00:D0:09:9C:EA:2C; 
         fixed-address            192.168.0.204;
         option option-129        "NIC=sis900";         
         filename               "/tftpboot/lts/vmlinuz-2.4.22-ltsp-1";
     }   



}
Herramientas personales