New User? Register here - Existing Users: Username: Password: [Advanced Login]

 

 

Current Poll

What language for system administration do you use ?







( 732 votes ~ 3 comments )

 

Weblogs for tonyfreeman

Posted by tonyfreeman on Tue 6 Jul 2010 at 05:13
Tags: none.
My DHCP Server setup. Handle's PXEboot setup and also gives out some fixed IP addresses to some local machines
apt-get dhcp3-server

/etc/dhcp/dhcp3/dhcpd.conf:

ddns-update-style none;

authoritative;
log-facility local7;

option domain-name "xxxxxxxxxxx.xx";
option domain-name-servers 10.1.10.5, 10.1.10.1;

default-lease-time 7200;
max-lease-time 10800;

allow booting;
allow bootp;

subnet 10.1.10.0 netmask 255.255.255.0 {
  range 10.1.10.100 10.1.10.110;
  option subnet-mask 255.255.255.0;
  option broadcast-address 10.1.10.255;
  option routers 10.1.10.1;
}

class "pxeclients" {
	match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
	filename "pxelinux.0";
	next-server 10.1.10.5;
}

group {
  host monarch.xxxxxxxxxxx.xx {
	hardware ethernet 00:e0:81:57:3d:5e;
	fixed-address 10.1.10.5;
  }

  host xxxxxx.xxxxxxxxxxx.xx {
	hardware ethernet 00:1f:c6:05:61:e7;
	fixed-address 10.1.10.10;
  }

  host toshiba.xxxxxxxxxxx.xx {
	hardware ethernet 00:1b:38:b0:76:65;
	fixed-address 10.1.10.15;
  }
}

MAKE SURE DHCP SERVER STARTS AT BOOT TIME

/etc/default/dhcp3-server:
INTERFACES="eth0"
Run the command:
update-rc.d -f dhcp3-server remove
Edit /etc/init.d/dhcp3-server and make sure the 'Default-Stop' line matches the following:
# Default-Stop:      0 1 6
Run the command:
update-rc.d dhcp3-server defaults


HANDLE THE DHCP LOG FACILITY STUFF

/etc/rsyslog.d/dhcp3-server.conf:

local7.*     -/var/log/dhcp3-server.log
/etc/logrotate.d/dhcp3-server:
/var/log/dhcp3-server.log {
       daily
       rotate 7
       copytruncate
       delaycompress
       compress
       notifempty
       missingok
}

  The PXEBoot setup may be posted in another weblog entry later ...

-- Tony

 

 

 

 

Flattr