Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet372/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   368   369   370   371   372   373   374   375   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 284 
]
Active and previous DHCP leases are stored in the 
/var/lib/dhcp/dhcpd.leases
 file, 
and a typical lease entry in that file would look similar to the following:
lease 192.168.1.138 { 
  starts 0 2020/10/05 16:37:30; 
  ends 0 2020/10/06 16:42:30; 
  cltt 0 2020/20/06 16:37:30; 
  binding state active; 
  next binding state free; 
  rewind binding state free; 
  hardware ethernet 32:6e:92:01:1f:7f; 

When a new device is added to your network and receives an IP address from your 
new DHCP server, you should see the lease information populate that file. This file 
can be incredibly helpful, because whenever you connect a new device, you won't 
have to interrogate the device itself to find out what its IP address is. You can just 
check the 
/var/lib/dhcp/dhcpd.leases
 file. If the device advertises its hostname, 
you'll see it within its lease entry. A good example of how this can be useful is 
connecting a Raspberry Pi to your network. Once you plug it in and turn it on, you'll 
see its IP address in the 
dhcpcd.leases
 file, and then you can connect to it via SSH 
with the IP without having to plug a monitor into it to find out which IP it was given. 
Similarly, you can view the temporary IP address of a new network appliance that 
you plug in so that you can connect to it and configure it.
If you have any trouble setting up the 
isc-dhcp-server
 daemon, double-check that 
you have set all the correct and matching values within your static IP assignment, 
as well as within your 
/etc/dhcp/dhcpd.conf
 file. For example, your server must be 
within the same network as the IPs you're assigning to clients. As long as everything 
matches, you should be fine and it should start properly.
Next, let's take a look at another important service within a network—DNS.

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   368   369   370   371   372   373   374   375   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish