DHCP Server Configuration
Step-1: To check dhcp rpm package is installed or not by following this command:
(if installed then it will show dhcp packages)
[root@dhcp ~]# rpm -qa | grep –i dhcp* or
[root@dhcp ~]# rpm –qa dhcp*
dhcp-3.0.5-21.el5
dhcp-devel-3.0.5-21.el5
libdhcp-devel-1.20-10.el5
dhcpv6-client-1.0.10-17.el5
libdhcp-1.20-10.el5
libdhcp4client-3.0.5-21.el5
libdhcp6client-devel-1.0.10-17.el5
libdhcp4client-devel-3.0.5-21.el5
dhclient-3.0.5-21.el5
If not installed, then installed the packages using Yum command:
[root@dhcp ~]# Yum Install dhcp* lib*
Step-2: Check and Configure the Network Card:
[root@dhcp ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
(Original File):
#Broadcom Corporation Net link BCM57875 Gigabyte Ethernet PCI Express
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:0C:29: EB: B2: CA
ONBOOT=yes
BOOTPROTO=dhcp
HWADDR=00:0C:29: EB: B2: CA
ONBOOT=yes
(Modified File):
#Broadcom Corporation Net link BCM57875 Gigabyte Ethernet PCI Express
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:0C:29: EB: B2: CA
ONBOOT=yes
TYPE=Ethernet
PEERDNS=no
USERCTL=no
IPV6INIT=no
IPADDR=210.207.201.4
NETMASK=255.255.255.0
NETWORK=210.207.201.0
BROADCAST=210.207.201.255
Press Esc → Shift + : → x! → Enter (For Save and Exit the Vi Editor).
After changing you have to reload/restart the NIC(eth0) card by following command:
[root@dhcp ~]# ifdown eth0
[root@dhcp ~]# ifup eth0
[root@dhcp ~]# service network restart
Step-3: After complete the NIC configure you have to change the host name by following this command:
[root@dhcp ~]# vi /etc/sysconfig/network
(Original File):
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
(Modified File):
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=dhcp
Press Esc → Shift + : → x! → Enter
Step-3: Edit the resolv.conf file by following this command
[root@dhcp ~]# vi /etc/resolv.conf
search alphabd.net
nameserver 210.207.201.1
nameserver 210.207.201.2
Step-4: Copy & Rename the DHCP configuration file & Change the permission by following this command:
[root@dhcp ~]# cd /usr/share/doc/dhcp-3.0.5/
[root@dhcp dhcp-3.0.5]# cp dhcpd.conf.sample /etc/dhcpd.conf
[root@dhcp dhcp-3.0.5]# chmod 777 /etc/dhcpd.conf
Now Edit this file using vi editor & make some change in to this file.
[root@dhcp ~]# vi /etc/dhcpd.conf
(Original File):
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.1.1;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.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.0.128 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}
(Modified File):
ddns-update-style interim;
ignore client-updates;
subnet 210.207.201.0 netmask 255.255.255.0 {
# --- default gateway
option routers 210.207.201.4;
option subnet-mask 255.255.255.0;
# option nis-domain "domain.org";
option domain-name "alphabd.net";
option domain-name-servers 210.207.201.1;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.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 210.207.201.50 210.207.201.254;
default-lease-time 43200;
max-lease-time 86400;
# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
host pc01 {
hardware ethernet 00:1E:68:91:BB:EC;
fixed-address 210.207.201.100;
}
host client01 {
hardware ethernet 00:0C:29:8C:95:01;
fixed-address 210.207.201.150;
}
}
Esc → Shift + : → x! → Enter
Step-5: Create a dhcp.leases file that the DHCP server grants to the DHCP client to use a particular IP address. If it does not exist dhcp server will fail to provide IP address for dhcp cient.
[root@dhcp ~]# touch /var/lib/dhcpd/dhcpd.leases
[root@dhcp ~]# service network restart
[root@dhcp ~]# service dhcpd restart
Step-6: Client Configuration for using DHCP.
Linux Client
[root@dhcp ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
#Broadcom Corporation Net link BCM57875 Gigabyte Ethernet PCI Express
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:0C:29: EB: B2: CA
ONBOOT=yes
BOOTPROTO=dhcp
HWADDR=00:0C:29: EB: B2: CA
ONBOOT=yes
TYPE=Ethernet
Windows Client
From NIC Properties =>> set Obtain an IP Address Automatically
Step-7: Renewing IP Address
Renew an IP Address in Linux
The -r flag explicitly releases the current lease, and once the lease has been released, the client exits. For example, open terminal and type the command:
[root@dhcp ~]#
dhclient –r
Now obtain fresh IP:
[root@client1 ~]#
dhclient
Or you can put the two commands on a single line:
[rnbsp; oot@client1 ~]#
dhclient -r; dhclient
There is no need to restart network service. Above command should work with any Linux distro such as RHEL, Fedora, and others. On a related note you can also try out the following commands:
[root@client1 ~]#
[root@client1 ~]#
[root@client1 ~]#
ifdown eth0
[root@client1 ~]#
ifup eth0
[root@client1 ~]#
/etc/init.d/network restart
Renew an IP Address in Windows
Open Command Prompt → Then Type The following command
C:\Documents and Settings\Administrator> Ipconfig /release
C:\Documents and Settings\Administrator> Ipconfig /renew
C:\Documents and Settings\Administrator> Ipconfig /all
thanks. could you also please post DHCP Server configuration for red hat enterprose linux 6.
ReplyDeletehttps://bayanlarsitesi.com/
ReplyDeleteEskişehir
Erzincan
Ardahan
Erzurum
R76
Aydın
ReplyDeleteElazığ
Osmaniye
izmir
Bingöl
İBZ8HP
yozgat
ReplyDeletetunceli
hakkari
zonguldak
adıyaman
X0MU
van evden eve nakliyat
ReplyDeletesivas evden eve nakliyat
çankırı evden eve nakliyat
bartın evden eve nakliyat
erzincan evden eve nakliyat
8JT1
ordu evden eve nakliyat
ReplyDeletebursa evden eve nakliyat
konya evden eve nakliyat
osmaniye evden eve nakliyat
bitlis evden eve nakliyat
JMSR
F1FEC
ReplyDeleteAfyon Evden Eve Nakliyat
Tekirdağ Cam Balkon
Silivri Fayans Ustası
Çerkezköy Evden Eve Nakliyat
Ordu Evden Eve Nakliyat
CD8BA
ReplyDeleteBilecik Şehirler Arası Nakliyat
Kilis Evden Eve Nakliyat
Yalova Parça Eşya Taşıma
Yobit Güvenilir mi
Çerkezköy Korkuluk
Hatay Şehirler Arası Nakliyat
Elazığ Lojistik
Çerkezköy Petek Temizleme
Adıyaman Lojistik
05EC8
ReplyDeletebuy sarms
Çanakkale Evden Eve Nakliyat
order pharmacy steroids
trenbolone enanthate
Denizli Evden Eve Nakliyat
Ankara Evden Eve Nakliyat
deca durabolin
fat burner for sale
winstrol stanozolol for sale
77FA6
ReplyDeleteÇerkezköy Motor Ustası
Samsun Lojistik
Çerkezköy Oto Boya
Bayburt Evden Eve Nakliyat
Çanakkale Şehir İçi Nakliyat
Bitci Güvenilir mi
Tekirdağ Lojistik
Çerkezköy Oto Elektrik
Ardahan Lojistik
AAB0E
ReplyDeleteBinance Referans Kodu
sarms
order dianabol methandienone
Uşak Evden Eve Nakliyat
winstrol stanozolol for sale
buy winstrol stanozolol
order turinabol
Denizli Evden Eve Nakliyat
Çerkezköy Cam Balkon
C7522
ReplyDeletebinance referans
42E36
ReplyDeleteuşak mobil sesli sohbet
sivas mobil sohbet siteleri
sesli sohbet siteleri
canlı sohbet siteleri
Bayburt Canlı Görüntülü Sohbet Odaları
isparta nanytoo sohbet
çankırı canlı sohbet et
Antep Yabancı Görüntülü Sohbet Siteleri
parasız sohbet siteleri
3AB03
ReplyDeleteDenizli Canlı Sohbet Siteleri Ücretsiz
uşak kadınlarla ücretsiz sohbet
çanakkale telefonda sohbet
karabük parasız sohbet
Ağrı Sohbet Uygulamaları
görüntülü sohbet kadınlarla
diyarbakır mobil sesli sohbet
van telefonda kızlarla sohbet
niğde mobil sohbet odaları
0B0BB
ReplyDeleteKeep Coin Hangi Borsada
Youtube Abone Satın Al
Raca Coin Hangi Borsada
Tiktok Beğeni Satın Al
Xcn Coin Hangi Borsada
Bitcoin Kazanma
Nexa Coin Hangi Borsada
Jns Coin Hangi Borsada
Referans Kimliği Nedir
10C2C
ReplyDeleteraydium
shiba
roninchain
uwu lend
trust wallet
poocoin
looksrare
quickswap
aave
FGHBXTFBX
ReplyDeleteشركة صيانة افران بالاحساء
شركة تسليك مجاري بالدمام TQD7IIQhbf
ReplyDeleteافضل شركة تسليك مجاري بالاحساء qdPGuPeU4j
ReplyDeleteشركة تنظيف سجاد بالجبيل 96YpeJU2US
ReplyDeleteتسليك مجاري بالاحساء wK60CMvX3s
ReplyDeleteشركة تنظيف خزانات v879Moqyov
ReplyDeleteشركة تسليك مجاري بالاحساء KK42tlH5Xw
ReplyDeleteشركة رش حشرات بالاحساء xKHJETkVD2
ReplyDeleteرقم مصلحة المجاري بالاحساء 9mYSnIlzOK
ReplyDelete8C5551A900
ReplyDeleteinstagram bayan beğeni satın al
https://pastelurilenaturii.blogspot.com/2012/04/bananierul-pitic-musa.html?sc=1733829589525#c6911224259100419516 tH4sQt7fYU
ReplyDeleteشركة صيانة افران بالسوده BcC6ktVILE
ReplyDelete