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

At 14:43 19.05.99 -0700, Patrick Greenwell wrote:
>like:
>
>"/etc/dhcpd.conf line 12: Expecting class name 
>class customer 
>      ^       "
>What painfully obvious thing am I missing?

Don't know about obvious (I was bitten by the same thing) but the
solution is to enclose the class name in double quotes, thus

class "customer" { ... }

>Does anyone have a sample conf file that uses classes?

I can offer my "RAS jail" configuration as a real life example.
This will serve rogue Windows NT RAS servers IP addresses from
a separate, unrouted range:

--------8<--------8<--------8<--------8<--------8<--------8<--------8<
class "ras-clients" {
  match if substring (option dhcp-client-identifier, 0, 5) = 01:52:41:53:20;
}

shared-network SEMACGN-ETHER {
  authoritative;

  subnet 192.168.70.0 netmask 255.255.254.0 {
    option subnet-mask 255.255.254.0;
    option routers 192.168.70.2;
    option netbios-name-servers 192.168.70.3;
    option netbios-node-type 8;
    pool {
      deny members of "ras-clients";
      range 192.168.70.101 192.168.70.254;
    }
    # add fixed-address declarations to taste
  }

  subnet 192.168.0.0 netmask 255.255.255.0 {
    option subnet-mask 255.255.255.0;
    pool {
      allow members of "ras-clients";
      range 192.168.0.1 192.168.0.254;
    }
  }
}

-- 
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.

Archives for this mailing list are available at 
http://www.webnology.com/list-archives/dhcp/dhcp-server

------------------------------------------------------------------------------

Reply via email to