[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] Re: Followup on prior discussion on dualing DHCP servers,MS and K12LTSP



John Hansknecht wrote:

I am not able to get the following to work on the Linux server; ------------ add this bit


[snip]

Have you been able to get this to work? Even with the above added to
/etc/dhcpd.conf the Linux server still gives an IP address to the
windows clients when they boot. Does this work for you as written? Or
does it work for you with some later modification you developed? Please
let me know.


FYI my clients are Windows NT 4.0.


8-) here's the whole conf file. I don't know if this is 100% but you will see the principle of operation.


I would be very interested in your comments/feedback/modifications.

I would also be very interested in a walk-through for W2K and NT4 setting up the same (but opposite) so ms DHCPd stayed out of Linux' way.
This would be enough information for me (hopefully) to provide a complete HOWTO for this rather convoluted procedure.





# Sample configuration file for ISCD dhcpd # Severely hacked by Steve Wright to share a subnet with windows. ugh. # # 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. #

authoritative;
#log-facility local7;
#set vendorclass = option vendor-class-identifier;
#set vendor-class option vendor-class-identifier;

default-lease-time            21600;
max-lease-time                21600;
ddns-update-style none;
allow booting;
allow bootp;

option subnet-mask            255.255.255.0;
option broadcast-address      192.168.0.255;
option routers                192.168.0.254;
option domain-name-servers    192.168.0.254;
option domain-name            "server.ltsp";
option root-path              "192.168.0.254:/opt/ltsp/i386";
option option-128     code 128 = string;
option option-129     code 129 = text;


class "eb-clients" {
match if substring (option vendor-class-identifier, 0, 9) = "Etherboot";
}


class "linux-dhcpc" {
match if substring (option vendor-class-identifier, 0, 5) = "Linux";
}


class "ms-clients" {
        match if substring (option vendor-class-identifier, 0, 4) = "MSFT";
       }


class "PXEClients" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
}





shared-network WORKSTATIONS { subnet 192.168.0.0 netmask 255.255.255.0 {



#    pool {
#          allow members of "eb-clients";
#          allow members of "linux-dhcpc";
#          allow members of "PXEClients";
#          deny members of "ms-clients";
#
#          range dynamic-bootp 192.168.0.100 192.168.0.253;
#     }
#
#    pool {
#      allow members of "ms-clients";
#      deny members of "eb-clients";
#      deny members of "linux-dhcpc";
#      deny members of "PXEClients";
#          range dynamic-bootp 192.168.0.100 192.168.0.120;
#     }



    range dynamic-bootp 192.168.0.100 192.168.0.253;
    use-host-decl-names       on;
    option log-servers        192.168.0.254;

#     allow members of "eb-clients";
#     allow members of "linux-dhcpc";

    # trick from Peter Rundle <peter rundle au interpath net>
    if substring (option vendor-class-identifier, 0, 9) = "PXEClient"
    {
       filename      "/lts/pxe/pxelinux.bin";
         # NOTE: kernels are specified in /tftpboot/lts/pxe/pxelinux.cfg/
    }
    else
    {
       filename    "/lts/vmlinuz-2.4.9-ltsp";
    }
 }
}

# example configurations for specifying specific kernels to specific clients
group    {
   use-host-decl-names       on;
   option log-servers        192.168.0.254;

# 486 Box
   host ws001 {
       hardware ethernet     00:40:95:33:13:19;
       fixed-address         192.168.0.1;
   option option-128     e4:45:74:68:00:00;
   option option-129     "NIC=ne IO=0x300";
       filename              "/lts/vmlinuz-2.4.9-ltsp";
   option root-path      "192.168.0.254:/opt/ltsp/i386";
   }
   host ws002 {
       hardware ethernet     00:D0:09:30:6A:1C;
       fixed-address         192.168.0.2;
       filename              "/lts/boot/bootp/vmlinuz.tulip.bootp";
   }
   host ws003 {
       hardware ethernet     00:D0:09:30:28:B2;
       fixed-address         192.168.0.3;
       # kernels are specified in /tftpboot/lts/boot/pxe/pxelinux.cfg/
       filename              "/lts/boot/pxe/pxelinux.bin";
   }

   host ws004 {
       hardware ethernet     00:05:1c:0c:22:aa;
       fixed-address         192.168.0.4;
       # kernels are specified in /tftpboot/lts/boot/pxe/pxelinux.cfg/
       filename              "/lts/vmlinuz-2.4.9-ltsp";

}

}






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]