[TriLUG] DHCP examples

Chuck Mead csm at MoonGroup.com
Mon Oct 8 15:30:51 EDT 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 8 Oct 2001, Vestal, Roy L. posted the following:

VRL>I'm trying to setup my first DHCP firewall.  Question, is there an example
VRL>file of the dhcpd.conf that is outhere that I could modify? I installed
VRL>DHCPCD and DHCP, but neither has it.  I'm not sure looking at the man pages
VRL>if I can set it up correctly.

# /etc/dhcpd.conf
default-lease-time 3600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
option domain-name "moongroup.org";

subnet 192.168.0.0 netmask 255.255.255.0 {
   range 192.168.0.115 192.168.0.120;
}

host warbird {
        hardware ethernet 00:e0:98:74:69:51;
        fixed-address 192.168.0.102;
}

host rem {
        hardware ethernet 00:10:4B:9C:56:EE;
        fixed-address 192.168.0.109;
}

host lucas {
        hardware ethernet 00:a0:cc:36:6a:82;
        fixed-address 192.168.0.108;
}
# end

Since this is for a firewall you will need to tell the daemon to only 
listen on the internal interface.

- -- 
csm
Free Dmitry!
Boycott Adobe!
Repeal the DMCA!
Stop the SSSCA!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjvB/u0ACgkQv6Gjsf2pQ0p+SgCgoVApN2RY6kj4zt5W0uUxxbyL
nv4An0O2KROcEqecZB3k82Mn9euLLCSa
=lsTR
-----END PGP SIGNATURE-----




More information about the TriLUG mailing list