Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Feb 2003 18:14:02 -0800
From:      Paul Hoffman <phoffman@proper.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   dhcpd subnets?
Message-ID:  <p05210313ba6a1741934a@[165.227.249.18]>

next in thread | raw e-mail | index | archive | help
Greetings again. I have a DSL connection with 32 addresses. My 
ifconfig line in rc.conf looks like:
ifconfig_tx0="inet a.b.c.130  netmask 255.255.255.224"
defaultrouter="a.b.c.158"

This works fine. I am trying to configure dhcpd (from the ports 
collection). My config file says:

default-lease-time 86400;
option subnet-mask 255.255.255.224;
option routers a.b.c.158;
option domain-name-servers a.b.c.130;
ddns-update-style none;

subnet a.b.c.158 netmask 255.255.255.224 {
         range a.b.c.150 a.b.c.157;
}

This gets the fatal startup error:

/etc/dhcpd.conf line 7: subnet a.b.c.158: bad subnet number/mask combination.
subnet a.b.c.158 netmask 255.255.255.224
                                      ^
Configuration file errors encountered -- exiting

This is a valid subnet, and it works just fine for everything else. 
What is dhcpd wanting?

--Paul Hoffman

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05210313ba6a1741934a>