DHCP Setup
This document has been success fully implemented on Cantos5
DHCP
Configuration settings:
# vim /etc/dhcpd.conf
DHCP
Quote:
IP:192.168.20.3
login : root
password:********
login : root
password:********
Quote:
OS: CentOS-5
Code:
#rpm -qa |grep -i dhcp dhcpv6_client-0.10-33.el5 dhcpv6-0.10-33.el5 dhcp-3.0.5-3.el5
Code:
#yum -y intall dhcp* (if not already installed)
Code:
ddns-update-style interim;
ignore client-updates;
subnet 192.168.20.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.20.1;
option subnet-mask 255.255.255.0;
# option nis-domain "example.com";
# option domain-name "example.com";
option domain-name-servers 192.168.20.3;
# option domain-name-servers 59.144.127.16;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.20.1;
# option netbios-name-servers 192.168.20.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.20.102 192.168.20.190;
default-lease-time 86400;
max-lease-time 604800;
next-server 192.168.20.3;
# for PXE-boot
filename "pxelinux.0";
#for PXE-boot
# we want the nameserver to appear at a fixed address
host host01.example.com
{hardware ethernet 00:18:DE:09:18:88;
fixed-address 192.168.20.200;
}
# Fixed IP :mapping MAC to IP
host host02.example.com
{hardware ethernet 00:1D:92:DD:67:0D;
fixed-address 192.168.20.105;
}
Code:
# /etc/init.d/dhcpd restart # chkconfig dhcpd on # pgrep dhcpd
Total Comments 0



