Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Sep 1999 19:35:22 +0200
From:      Barry Irwin <bvi@rucus.ru.ac.za>
To:        gag@itn.is
Cc:        questions@FreeBSD.ORG
Subject:   Re: dhcp on freebsd
Message-ID:  <19990929193522.I23989@rucus.ru.ac.za>
In-Reply-To: <199909271937.TAA115062@aegir.itn.is>
References:  <199909271937.TAA115062@aegir.itn.is>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon 1999-09-27 (19:37), gag@itn.is wrote:
> Hello,
> 
> I'm trying to config my FreeBSD server as a DHCP server, but have not seen any 
> info on the subject yet.
> I'd like to know if there is some information about this that I can access to 
> set this service up on my current server.


http://www.isc.org

Has some documentation and examples.  The dhcpd.conf manpage is also quite
enlightening.

Attached below is my dhcpd.conf which covers both static IP allocation
basedon MAC address and dynamic allocation from a pool

--snip--
# dhcpd.conf
#
# Configuration file for ISC dhcpd
#
# Updated by Barry Irwin
# Interface/IP of the server

server-identifier balrog.moria.org;

# option definitions common to all supported networks...
option domain-name "moria.org";
option domain-name-servers 192.168.1.1, 146.231.128.5, 146.231.29.2 ;
option subnet-mask 255.255.255.00;
option routers 192.168.1.1;
default-lease-time 72000;
max-lease-time 144000;

#Dynamic allocation to non registered machines from a pool
subnet 192.168.1.0 netmask 255.255.255.0 {
        range 192.168.1.10 192.168.1.50;
  }

# Fixed IP addresses can also be specified for hosts.
host smaug {
  hardware ethernet 00:C0:DF:50:0B:0C;
  fixed-address smaug.moria.org;
}

--snip--

Barry

-- 
--------------------------------------------------------------------------
Barry Irwin 				 	IRC:  balin@zanet (#linux)
bvi@moria.org  					http://rucus.ru.ac.za/~bvi
Whois BI414		- PMPN8EZ -		http://moria.org
--------------------------------------------------------------------------


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?19990929193522.I23989>