Categories
How-To's

Alcatel Speedtouch under Gentoo linux


Adding a bit of luxury: DHCP server

Start by emerging the dhcp server:

emerge dhcp

Edit the configuration in /etc/conf.d/dhcpd.conf and make it look something like this:

File: /etc/conf.d/dhcpd.conf

# This is the only DCHP server on the network
authoritative

# Set the dns servers
option domain-name-servers xxx.xxx.0.6, xxx.xxx.0.7;

# Set the lease time to one day
default-lease-time 86400;
max-lease-time 86400;

# How the DNS should be updated
ddns-update-style interim;

# Change the domain name to whatever you want your domain to be.
option domain-name "local.lan";

# Our internal lan will use the 192.168.0.x class
subnet 192.168.0.0 netmask 255.255.255.0 {
# This will be us as we are the internet gateway
routers 192.168.0.1;

# Tell the clients what range to broadcast
option broadcast-address 192.168.0.255;

# Determine the range to manage, we leave room for 48 static addresses which
# can be used for servers (you don't want them to switch address because of dhcp)
range 192.168.0.50 192.168.0.254;
}

 

And start the dhcp:

/etc/init.d/dhcp start

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *