Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet368/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   364   365   366   367   368   369   370   371   ...   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)

[
 280 
]
We can start it as soon as we've finished adding our configuration:
sudo systemctl stop isc-dhcp-server
Configuring an IPv6 network is beyond the scope of this chapter, but the DHCP 
server package we've just installed also comes with an IPv6 equivalent. Let's stop 
and disable this service, since we won't be using it:
sudo systemctl stop isc-dhcp-server6
sudo systemctl disable isc-dhcp-server6
Now that you've installed the 
isc-dhcp-server
 package, you'll have a default 
configuration file for it at 
/etc/dhcp/dhcpd.conf
. This file will contain some default 
configuration, with some example
 settings that are commented out. Feel free to take 
a look at this file to get an idea of some of the settings you can configure. We'll create 
our own 
dhcpd.conf
 file from scratch. So when you're done looking at it, copy the 
existing file with a new name so we can refer to it later if we ever need to:
sudo mv /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.orig 
Now, we're ready to create our own 
dhcpd.conf
 file. Open 
/etc/dhcp/dhcpd.conf
 in 
your preferred text editor. Since the file no longer exists (we moved it), we should 
start with an empty file. Here's an example 
dhcpd.conf
 file that I will explain so 
that you understand how it works:
default-lease-time 43200; 
max-lease-time 86400; 
option subnet-mask 255.255.255.0; 
option broadcast-address 192.168.1.255; 
option domain-name "local.lan"; 
authoritative; 
subnet 192.168.1.0 netmask 255.255.255.0 { 
    range 192.168.1.100 192.168.1.240; 
    option routers 192.168.1.1;   
    option domain-name-servers 192.168.1.1; 

As always, change the values I've used to those that match your network. I'll explain 
each line so that you'll understand how it affects the configuration of your DHCP 
server.
default-lease-time 43200; 


Chapter 11

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   364   365   366   367   368   369   370   371   ...   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