Tested on 23 May 2003 on Red Hat9
The Internet Software Consortium DHCP Server, dhcpd, implements the Dynamic Host Configuration Protocol (DHCP). DHCP allows hosts on a TCP/IP network to request and be assigned IP addresses, and also to discover information about the network to which they are attached.
|
# rpm -ihv dhcp-3.0PL1-23.i386.rpm |
|
# cp /usr/share/doc/dhcp-3.0pl1/dhcpd.conf.sample /etc/dhcpd.conf |
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 192.168.0.1;
# Eastern Standard Time GMT -05:00 = -5x60x60 = -18000
# option time-offset -18000;
# Eastern Standard Time GMT +06:00 = 6x60x60 = 21600
option time-offset 21600;
option ntp-servers 192.168.0.1;
option netbios-name-servers 192.168.0.2;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# option netbios-node-type 2;
range dynamic-bootp 192.168.0.128 192.168.0.255;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host ns {
next-server ns.domain.org;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 192.168.0.3;
}
}
# /etc/rc.d/init.d/dhcpd start
# chkconfig dhcpd on
Run winipcfg.exe to check IP Address
Open DOS Command Prompt and type ipconfig. example
| Sample | Discription |
|---|---|
| ipconfig | Show information |
| ipconfig /all | Show detailed information |
| ipconfig /renew EL* | renew all adapters |
| ipconfig /release *ELINK?21* | release all matching adapters |
| Sample | Discription |
|---|---|
| ifconfig | Show information |
| dhclient | Get IP Address |
| dhclient -r | Release |
| dhclient -1 | Try once to get a lease |
| Sample | Discription |
|---|---|
| ifconfig | Show information |
| pump | Get IP Address |
| pump -k | End pump daemon and return IP Address to DHCP Server |
| pump -s | Show information |
|
<html> |
Copyright © [- SroNey / JohN -]. All rights reserved