Thursday, July 20, 2006

Movies Camel Toe Spandex

Install and configure a DHCP server

# apt-get install dhcp3-server


Note: the machine that hosts the DHCP server must be configured for static IP. To configure the server, edit / etc/dhcp3/dhcpd.conf :

# dhcpd.conf ddns -update-style none;
default-lease-time 259200;
max -lease-time 518400;

subnet 192.168.1.0 netmask 255.255.255.0 {

option routers 192.168.1.1;

option broadcast-address 192.168.1.255;
option domain-name-servers 213.36.80.1;
option domain-name "tiscali.fr" range 192.168.1.16 192.168.1.252
;
}

It is possible to assign IP addresses to certain machines invariable, based on the MAC address of the NIC. To do this, add stanzas like this:
host fujitsu

{
hardware ethernet 00:00: e2: 93:07:00

fixed-address 192.168.1.5
}
Then :

# / etc/init.d/dhcp3-server restart

If the file contains a shell (as, for example, a semicolon forgotten: oD), the server simply refuses restart.

client side, an Ethernet card configuration would look like this:


auto eth0 iface eth0 inet dhcp


To obtain an IP address of the server, simply restart the network:

# / etc / init.d / networking restart

server side, you can see the queries DHCP through tail-f / var / log / syslog.

0 comments:

Post a Comment