On Tue, 29 Jun 2004, Jason DeWitt wrote:
> I've seen a good bit of smoothwall talk on here, so I though I would
> pose this question to you guys.
>
> I need to set up a DHCP server, I messed around with smoothwall and I
> thought this would be an ideal solution for this. All this box need do
> is sit and hand out the addresses. The problem comes in that in my dhcp
> setup in smoothwall, it never asks me what netmask to use. Does
> smoothwall automatically hand out the netmask of it's ethernet interface
> when giving out dhcp addresses?
>
> I would like this box to sit behind my firewall (a /24 network) and hand
> out addresses on a differnet network (/16).
>
> Thanks
> Jason DeWitt
It seems that smoothwall is a bit of overkill for a simple dhcp server.
It's VERY easy to setup dhcp on your vanilla installation of your
favorite distro. I'd suggest you do that!
Start dhcpd with whichever interface you want dhcpd to run on:
/usr/sbin/dhcpd eth1
Here is my dhcpd.conf file:
# Network: 192.168.1.0/255.255.255.0
# Domain name: my.domain
# Name servers: 192.168.1.3 and 192.168.1.5
# Default router: 192.168.1.1
# Addresses: 192.168.1.32 - 192.168.1.127
#
ddns-update-style ad-hoc;
shared-network LOCAL-NET {
option domain-name "br.no.cox.net";
option domain-name-servers 68.109.202.25, 68.109.202.30, 68.11.16.30;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.99;
#option subnet-mask 255.255.255.0;
#option broadcast-address 192.168.0.255;
range 192.168.0.200 192.168.0.250;
# Werd. Statically assigned.
host brad {hardware ethernet 00:48:54:3D:19:4D;
fixed-address 192.168.0.26;}
# Werd. Statically assigned.
host erin {hardware ethernet 00:C0:4F:96:59:E4;
fixed-address 192.168.0.57;}
# Werd. Statically assigned.
host linux {hardware ethernet 00:10:5a:a6:8a:fc;
fixed-address 192.168.0.60;}
}
}