Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet333/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   329   330   331   332   333   334   335   336   ...   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)

[
 254 
]
However, you don't always have a choice. As a Linux administrator, you may or may 
not be in charge of the DHCP server. It's often the case at many organizations that 
administrators that manage servers are not the same individuals that also manage 
the network. If you don't have authority over the design of the network, you'd use an 
IP address that would be provided to you by your network administrator, and then 
you'll proceed to configure your Ubuntu Server to use it by applying the parameters 
they give you.
Within the last several years, the method that we utilize to customize the IP address 
of our servers has changed from the way it was handled in the past. Since Ubuntu 
17.10, which was released back in 2017, configuring your IP address settings is now 
done via Netplan. In the past, we would configure networking via NetworkManager, 
but that's not installed by default anymore in Ubuntu. With Netplan, configuration 
files for your network interfaces now reside in the 
/etc/netplan
 directory, in YAML 
format. The YAML format itself is beyond the scope of this book, but the syntax is 
very easy to follow so you don't really need to thoroughly understand this format 
in order to configure your network interfaces. If you list the contents of the 
/etc/
netplan
 directory, you should see at least one file there, often named 
00-installer-
config.yaml
 or 
50-cloud-init.yaml
. It's possible the file could be saved with a 
different name, so check the contents of the 
/etc/netplan
 directory to see what the 
file is named on your end. On one of my servers, I see the following contents in the 
/
etc/netplan/00-installer-config.yaml
 file:
# This is the network config written by 'subiquity'
network:
  ethernets:
    enp0s3:
      dhcp4: true
  version: 2
We can already glean some obvious information from this default file. First, the 
comment at the beginning mentions 
subiquity
, which is the official name of the 
Ubuntu Server installer, which is used when you install the distribution from boot 
media created from the ISO file.
More importantly, we can see that this particular server is configured to utilize 
DHCP in order to grab an IP address, which we can tell from the following line:
      dhcp4: true


Chapter 10

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   329   330   331   332   333   334   335   336   ...   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