Difference between revisions of "Dhcp"

From CBLFS
Jump to navigationJump to search
(64Bit)
(Non-Multilib)
Line 26: Line 26:
 
Install the package
 
Install the package
  
  make LIBDIR=/usr/lib INCDIR=/usr/include install  
+
  make LIBDIR=/usr/lib INCDIR=/usr/include install
+
 
 
== Multilib ==
 
== Multilib ==
  

Revision as of 20:06, 4 September 2006

Download Source: http://gd.tuwien.ac.at/infosys/servers/isc/dhcp/dhcp-3.0.4.tar.gz
Download Patch: http://www.linuxfromscratch.org/patches/blfs/svn/dhcp-3.0.4-iproute2-1.patch



Dependencies

Non-Multilib

Compile the package:

patch -Np1 -i ../dhcp-3.0.4-iproute2-1.patch &&
./configure &&
make

Install the package

make LIBDIR=/usr/lib INCDIR=/usr/include install

Multilib

32Bit

Compile the package:

patch -Np1 -i ../dhcp-3.0.4-iproute2-1.patch &&
./configure &&
make CC="gcc ${BUILD32}" &&

Install the package

make LIBDIR=/usr/lib INCDIR=/usr/include install

N32

TO BE DONE

64Bit

Compile the package

patch -Np1 -i ../dhcp-3.0.4-iproute2-1.patch
./configure &&
make CC="gcc ${BUILD64}"

Install the package

make LIBDIR=/usr/lib64 INCDIR=/usr/include install

Configuring

touch /var/state/dhcp/dhcpd.leases

cat > /etc/dhcpd.conf << "EOF"
allow unknown-clients;
server-identifier 192.168.1.254;
ddns-update-style interim;
subnet 192.168.1.0 netmask 255.255.255.0 {
option broadcast-address 192.168.1.255;
range 192.168.1.100 192.168.1.200;
default-lease-time 86400;
max-lease-time 86400;
option subnet-mask 255.255.255.0;
option domain-name-servers DNS_SERVER_NAMES;
option routers 192.168.1.254;
}
EOF


BootScript

Install the init script included in the blfs-bootscripts package.

make install-dhcp
Retrieved from "?title=Dhcp&oldid=1576"