On Fri, 24 Aug 2007 17:11:28 +0700, Fajar Priyanto wrote > Hello all, > I took this part of dhcpd.conf from Jim Kronebusch yesterday :) > I have a situation where the LTSP5 clients is located in the same network as > the non-LTSP clients. Therefore I believe we can use the host declaration > based on MAC address. > > But, I'm sure about the correct syntax. I need to setup DHCP on this case: > Clients are divided into 3 groups: > Group A: 192.168.0.1-192.168.0.10 (Non-LTSP clients) > Group B: 192.168.0.50-192.168.0.60 (Non-LTSP clients, notice the gap of IP > range from Group A). > Group C: 192.168.0.100-192.168.0.130 (LTSP clients).
I believe the following should do what you want. Of course use your domain name server, your router ip, and change mac addresses for fixed hosts. To add the other 28 LTSP clients duplicate this portion for all needed clients: host client1 { hardware ethernet 00:1A:4D:2F:A5:78; fixed-address 192.168.0.100; } I hope this helps you out. Jim --------------dhcpd.conf------------------------------- # Main LAN IP Range subnet 192.168.0.0 netmask 255.255.255.0 { option domain-name "yourdomain.org"; option domain-name-servers 192.168.0.254; option routers 192.168.0.254; option subnet-mask 255.255.255.0; pool { allow unknown-clients; range 192.168.0.1 192.168.0.10; } pool { allow unknown-clients; range 192.168.0.50 192.168.0.60; } } # LTSP5 Clients by Mac address group { use-host-decl-names on; deny unknown-clients; if substring( option vendor-class-identifier , 0 , 9 ) = "PXEClient" { filename "/ltsp/i386/pxelinux.0"; } else { filename "/ltsp/i386/nbi.img"; } option root-path "/opt/ltsp/i386"; host client1 { hardware ethernet 00:1A:4D:2F:A5:78; fixed-address 192.168.0.100; } host client2 { hardware ethernet 00:1A:4D:GF:HR:56; fixed-address 192.168.0.101; } } -- This message has been scanned for viruses and dangerous content by the Cotter Technology Department, and is believed to be clean. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net