*** From dhcp-server -- To unsubscribe, see the end of this message. ***

I am trying to set up dhcpd-3.0-alpha-19990412 on a Linux server
(kernel version 2.0.36) in such a way that it denies the notorious
Windows NT RAS requests, but I can't figure out the correct syntax
for the class declaration.

I started with the working configuration file of my trusty old
production server (dhcpd-2.0b1pl6 with "no RAS" patch on Solaris
2.4/Sparc - yes I know, way obsolete, but rock solid), commenting
out all the range statements in order to avoid lease conflicts
between the old server and the new one. I then added the lines:

--------8<--------8<--------8<--------8<--------8<--------8<--------
class ras-clients {
  match if substring (option dhcp-client-identifier, 0, 4) = "RAS ";
  deny booting;
}
--------8<--------8<--------8<--------8<--------8<--------8<--------

just before the single shared-network declaration enclosing all my
subnet declarations. (Yes, these do all run on the same wire.) This
earned me the error message:

--------8<--------8<--------8<--------8<--------8<--------8<--------
arachne:/sbin/init.d/rc2.d # dhcpd -f -d eth0
Internet Software Consortium DHCP Server V3.0-alpha 980412
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.

Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html

/etc/dhcpd.conf line 13: Expecting class name
class ras-clients
      ^
Configuration file errors encountered -- exiting
exiting.
arachne:/sbin/init.d/rc2.d #
--------8<--------8<--------8<--------8<--------8<--------8<--------

However, "ras-clients" is supposed to _be_ the class name.
What am I doing wrong?

PS: I also encountered the "No subnet declaration for lo (0.0.0.0)." bug
before I inserted the class declaration, that's why I'm specifying the
Ethernet interface on the command line.

-- 
Tilman Schmidt          E-Mail: [EMAIL PROTECTED] (office)
Sema Group Koeln, Germany       [EMAIL PROTECTED] (private)
"newfs leaves the filesystem in a well known state (empty)."
                                                - Henrik Nordstrom



------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dhcp/lists
If you are without web access, or if you are having trouble with the web page,
please send mail to [EMAIL PROTECTED]   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------

Reply via email to