| Previous | Home | Next | 
| Version: | - dhcpd 3.0.3 | 
| [bash]# vi /etc/dhcpd.conf | 
|  | Be sure to change
parameters to suit your network and domain
name. | 
| # # DHCP Server Config File # ddns-update-style none; ignore client-updates; lease-file-name "/var/lib/dhcpd/dhcpd.leases"; authoritative; option domain-name "example.com"; default-lease-time 86400; # 24 hours max-lease-time 172800; # 48 hours subnet 192.168.1.0 netmask 255.255.255.0 { option routers 192.168.1.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; option domain-name-servers 192.168.1.1; option ntp-servers 192.168.1.1; option netbios-name-servers 192.168.1.1; option netbios-node-type 8; range 192.168.1.101 192.168.1.200; } | 
| Parameter | Definition | 
| ddns-update-style | Type of DDNS update to
use with local DNS Server | 
| ignore
client-updates | Ignore all client
requests for DDNS update | 
| lease-file-name | Filename that stores
list of active IP lease allocations | 
| authoritative | Set as master server,
protects against rogue DHCP servers and
misconfigured clients | 
| option
domain-name | Specifies the Internet
Domain Name to append to a client's
hostname | 
| option
domain-name-servers | The DNS servers the
clients should use for name resolution | 
| default-lease-time | The default time in
seconds that the IP is leased | 
| max-lease-time | The max time in seconds
that the IP is leased | 
| option
routers | Specifies the Gateway
for the client to use | 
| option
subnet-mask | The subnet mask specific
to the lease range | 
| option
broadcast-address | The broadcast address
specific to the lease range | 
| option
ntp-servers | Network Time Protocol
servers available to the clients | 
| option
netbios-name-server | The NetBIOS name server
(WINS) | 
| option
netbios-node-type | The NetBIOS name
resolution method (8=hybrid) | 
| range | The range of valid IP
addresses available for client offer | 
| host wkstn1 { hardware ethernet 00:0d:62:d7:a0:12; fixed-address 192.168.1.5; } | 
| [bash]# vi
/etc/sysconfig/dhcpd | 
| # Command line options
here DHCPDARGS=eth1 | 
| [bash]# cp /etc/dhcpd.conf /etc/dhcpd.conf.original | 
| [bash]# touch
/var/lib/dhcpd/dhcpd.leases | 
| [bash]# chkconfig
--level 2345 dhcpd on [bash]# /etc/init.d/dhcpd restart | 
| [bash]# chkconfig --list
dhcpd | 
| [bash]# grep dhcpd /var/log/messages | 
| galaxy dhcpd: Listening
on LPF/eth1/00:40:05:51:20:e7/192.168.1.0/24 galaxy dhcpd: Sending on LPF/eth1/00:40:05:51:20:e7/192.168.1.0/24 galaxy dhcpd: Sending on Socket/fallback/fallback-net galaxy dhcpd: dhcpd startup succeeded | 
| [bash]# dhclient
eth0          
(EXECUTED ON CLIENT WORKSTATION) | 
| Internet Systems
Consortium DHCP Client V3.0.1 Copyright 2004 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/products/DHCP Listening on LPF/eth0/00:0d:62:d7:a0:12 Sending on LPF/eth0/00:0d:62:d7:a0:12 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4 DHCPOFFER from 192.168.1.1 DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPACK from 192.168.1.1 bound to 192.168.1.5 -- renewal in 20509 seconds. | 
| [bash]# grep dhcpd
/var/log/messages           
(EXECUTED ON DHCP SERVER) | 
| galaxy dhcpd:
DHCPDISCOVER from 00:0d:62:d7:a0:12 via eth0 galaxy dhcpd: DHCPOFFER on 192.168.1.5 to 00:0d:62:d7:a0:12 via eth0 galaxy dhcpd: DHCPREQUEST for 192.168.1.5 (192.168.1.1) from 00:0d:62:d7:a0:12 via eth0 galaxy dhcpd: DHCPACK on 192.168.1.5 to 00:0d:62:d7:a0:12 via eth0 | 
| [bash]# pump -i eth0 [bash]# pump -i eth0 --release [bash]# pump -i eth0 --status | 
| C:\>ipconfig
/release Windows IP Configuration Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : 0.0.0.0 Subnet Mask . . . . . . . . . . . : 0.0.0.0 Default Gateway . . . . . . . . . : | 
| C:\>ipconfig
/renew Windows IP Configuration Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : example.com IP Address. . . . . . . . . . . . : 192.168.1.5 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1 | 
| C:\>ipconfig
/all | 
|  | Some Windows based
antivirus and firewall applications
restrict the local workstation from broadcasting for an IP address, and
may need to be configured to allow such requests. | 
| Previous | Home | Next |