[opensuse] dhcpd mystery on openSUSE 11.2
I have a few networks on which I want to provide dhcp services. These are instrumentation networks for networked transducers. I am guessing I am just brain-dead this morning, but I can't see what I am doing wrong. I have two networks, that are configured as follows: inet 192.168.99.99/24 brd 192.168.99.255 inet 10.2.10.41/28 brd 10.2.10.47 So, I enter the following in my dhcpd.conf file: subnet 10.2.10.41 netmask 255.255.255.240 { default-lease-time 345600; } subnet 192.168.99.99 netmask 255.255.255.0 { default-lease-time 345600; } The netmasks are indeed the ones I have configured for the networks. But I get this error on startup: /etc/dhcpd.conf line 10: subnet 10.2.10.41 netmask 255.255.255.240: bad subnet number/mask combination. subnet 10.2.10.41 netmask 255.255.255.240 ^ /etc/dhcpd.conf line 13: subnet 192.168.99.99 netmask 255.255.255.0: bad subnet number/mask combination. subnet 192.168.99.99 netmask 255.255.255.0 ^ Configuration file errors encountered -- exiting Is my coffee too weak this morning? -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Forgot to add that I checked bugzilla and did not see anything that looked like this. Surely someone else has more than one interface, each with a different netmask, and each used by dhcpd. No? -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 04 May, 2010 at 09:32:04 +0200, Roger Oberholtzer wrote:
I have a few networks on which I want to provide dhcp services. These are instrumentation networks for networked transducers. I am guessing I am just brain-dead this morning, but I can't see what I am doing wrong.
I have two networks, that are configured as follows:
inet 192.168.99.99/24 brd 192.168.99.255
inet 10.2.10.41/28 brd 10.2.10.47
This is fine for *host* ip/netmask, but not for *network* ip/mask
So, I enter the following in my dhcpd.conf file:
subnet 10.2.10.41 netmask 255.255.255.240 { default-lease-time 345600; } subnet 192.168.99.99 netmask 255.255.255.0 { default-lease-time 345600; }
The *networks* are: 10.2.10.32/28 192.168.99.0/24 (courtesy of http://jodies.de/ipcalc)
Is my coffee too weak this morning?
I'd think so... hth /jon -- YMMV -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Jon Clausen
-
Roger Oberholtzer