- dhcpd + no subnet declaration

PDA

View Full Version : dhcpd + no subnet declaration


Zack Odell
07-24-2004, 10:06 PM
I have a linux 9.0 box with dhcp running. My linux box has an IP
address of 192.168.4.132 (eth0). What I want to do is offer
65.192.106.0/24 to my customers. I started off with only one subnet
declaration for the 106 network, but the server complained about not
having a subnet dec. for the 4.132 network. So I put in the
following:

subnet 192.168.4.0 netmask 255.255.255.0 {
}

I don't want any IP's issued out of this network. I want 100% of the
IPs to be the 65.192.106.0/24. But in /var/log/messages I get an
error:

dhcpd: DHCPDISCOVER from 08:00:46:40:9c:68 via eth0: network
192.168.4.0/24: no free leases.

But that's just it, I don't want any of my customers to get
192.168.4.0 IPs just 65.192.106.0/24.


server ip - 192.168.4.132 (public IP = 65.192.104.16)
server pool - 65.192.106.2 - 65.192.106.250

dhcpd.conf
option domain-name-servers 65.192.104.2 65.192.104.3;
option domain-name "sctelcom.net";
option broadcast-address 65.192.106.255;
option routers 65.192.106.1
ddns-update-style ad-hoc
#osi_main
subnet 65.192.106.0 netmask 255.255.255.0 {
range 65.192.106.2 - 65.192.106.250
}
subnet 192.168.4.0 netmask 255.255.255.0 {
}

Is this possible?

Jeroen Geilman
07-24-2004, 10:07 PM
Zack Odell <zodell@sctelcom.com> randomly warbled in
comp.os.linux.networking:

> I have a linux 9.0 box with dhcp running.

No, you don't - really.

<snip commercialism>

Yesss...

<snip>

> option domain-name "sctelcom.net";

Hmmm...wireless, eh ? you *might* have mentioned this...

<more snip>

> range 65.192.106.2 - 65.192.106.250

Lose the dash - it will not work.

man dhcpd.conf and read the **** log files!

--
Jeroen Geilman

All your bits are belong to us.