Lab 11.1
Hello,
I’d like to comment on some questions regarding the exercise 11.1.
Firstly, to say that, although I try, from time to time, to do the exercises with CentOS and Opensuse, I am choosing to do it with Ubuntu mainly. I do this because, supposedly for the exam we will have to choose one of them. So, if I’m not doing wrong, it’s better to be specialized on one of this Linux families than having a slight idea of all of them. The reason I choose Debian/Ubuntu family is that is what I use mainly and I have previous knowledge.
I noticed on several labs that, on some cases, Debian and Ubuntu are treated as if they worked in the same way. This could be right on some cases, perhaps it is right most of the time, but sometimes like on this exercise it’s not true.
The networking tools on Ubuntu are now (from 18.04 onward) different from Debian ones. The main configuration file it’s not /etc/network/interfaces and it has a tool called netplan instead.
The easiest and more logical way to do many of the labs on an Ubuntu machine is using this tool that is the default one on recent Ubuntu installations. If I choose to do my certifications tests with an Ubuntu machine what am I supposed to do then?
Should I use the default tools provided by the machine that are not covered on this course?
Or should I mess with the default configuration installing other software or changing the default configuration adding potential problems to the scenario that I will have to work with in the test?
The confusion I have is greater when I saw that, specifically in this exercise 11.1, the solution indicated in the lab does not work for me using /etc/networking/interfaces way of doing. What does not work is that I can’t make changes persistent across reboots. And that is the purpose of doing in that way. If I create a Vlan-trunked interface with ip command it works, but if I try to configure it on /etc/network/interfaces it doesn’t work. I test this on a Debian 10 virtual machine.
If I do it on an Ubuntu 20.04 machine using the netplan tools following for instance this instructions it works perfectly.
What am I supposed to do if I decide to pass the test with an Ubuntu machine? Do it with its default settings and tools and study them and learn how to handle them on my own? Taking risks configuring the machine for using Network Manager or networking scripts having that this could lead to have an unstable machine? Different networking tools can interfere with each others.
Also, I would like to take the opportunity to ask why it does not work for me in Debian.
What I do is the following:
- Install vlan :
apt install vlan
. - Load module :
modprobe 8021q
(I try adding 8021q to/etc/modules
too) - And my
/etc/network/interface
file is:
auto lo iface lo inet loopback allow-hotplug enp0s3 iface enp0s3 inet static address 192.168.0.251 netmask 255.255.255.0 gateway 192.168.0.1 dns-nameservers 8.8.8.8 1.1.1.1 auto enp0s03.7 iface enp0s3.7 inet static address 192.168.0.100 netmask 255.255.255.0 vlan-raw-device enp0s3
It’s the same if I reboot the machine or if I use the ifup command ou if I use systemctl. It always fails. The output of systemctl status networking:
root@dserver:~# systemctl status networking ● networking.service - Raise network interfaces Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sat 2021-05-15 11:55:51 CEST; 3min 15s ago Docs: man:interfaces(5) Process: 320 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE) Main PID: 320 (code=exited, status=1/FAILURE) Mai 15 11:55:51 dserver systemd[1]: Starting Raise network interfaces... Mai 15 11:55:51 dserver ifup[320]: ifup: unknown interface enp0s03.7 Mai 15 11:55:51 dserver systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE Mai 15 11:55:51 dserver systemd[1]: networking.service: Failed with result 'exit-code'. Mai 15 11:55:51 dserver systemd[1]: Failed to start Raise network interfaces.
Comments
-
I am not the SME for this course and I do not compose or review the exams. However, the question of netplan and the idiosyncratic use of netplan on Ubuntu has repeatedly come up in the forums before. Both how to configure with it, and more importantly, how to shove it out of the way have been thoroughly explained. My well-founded understanding is that the certification exam designers try to use tools that are universal whenever possible, and avoid others. So you can't avoid rpm vs dpkg, but you can avoid netplan as it is not needed for anything. No other distro,to my knowledge, has shown any interest in netplan. It is true you are likely to encounter it in the wild unfortunately, so learning it is still extra credit.
As far as Debian goes, other than netplan you have to work to find real CLI differences. Note we don't teach "snap" either. It can also be avoided (not obliterated) with a one line command, much like netplan
0 -
I do not want to start any controversy about which tools should or should not be considered. What I want is to point out that I have paid a good amount of money for this course and I think that gives me the right to, at least, suggest as a student some aspects that I think would improve the training given.
If, apparently, in the course the netplan tool is going to be ignored because it is not widely used, perhaps that should be taken into account throughout the course and indicate the steps in the course material, not in a forum thread, that must be given to configure the equipment with network manager, networking scripts or whatever. So that the exercises and, finally, the certification test can be carried out successfully.
I have repeated the exercise on an Ubuntu 20.04 machine but this time using the method described in the exercise for a Debian / Ubuntu machine.
The first thing to keep in mind is that in Ubuntu 20.04 you must first do some changes because if not you can’t do the exercise as is described on the solution. Here are some valid instructions for doing that (I follow all the instructions except the step involving interfaces names)
I also have to say that on Debian, the exercise did not work because of a typo of mine in line 9 of the interfaces file in the previous post so I apologize for the error.
In summary, I think that these aspects should be clarified a little better in the course because, although it is true that many times you learn by going around a thousand times, you also lose a lot of time and one of the reasons why I joined this bootcamp was to give me a well-prepared material on which to focus without taking too many detours.
Thank you for the reply and I am sorry for the inconvenience caused by bringing up a topic already discussed before.1
Categories
- All Categories
- 217 LFX Mentorship
- 217 LFX Mentorship: Linux Kernel
- 788 Linux Foundation IT Professional Programs
- 352 Cloud Engineer IT Professional Program
- 177 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 146 Cloud Native Developer IT Professional Program
- 137 Express Training Courses
- 137 Express Courses - Discussion Forum
- 6.1K Training Courses
- 46 LFC110 Class Forum - Discontinued
- 70 LFC131 Class Forum
- 42 LFD102 Class Forum
- 226 LFD103 Class Forum
- 18 LFD110 Class Forum
- 36 LFD121 Class Forum
- 18 LFD133 Class Forum
- 7 LFD134 Class Forum
- 18 LFD137 Class Forum
- 71 LFD201 Class Forum
- 4 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 2 LFD233 Class Forum
- 4 LFD237 Class Forum
- 24 LFD254 Class Forum
- 693 LFD259 Class Forum
- 111 LFD272 Class Forum
- 4 LFD272-JP クラス フォーラム
- 12 LFD273 Class Forum
- 144 LFS101 Class Forum
- 1 LFS111 Class Forum
- 3 LFS112 Class Forum
- 2 LFS116 Class Forum
- 4 LFS118 Class Forum
- 4 LFS142 Class Forum
- 5 LFS144 Class Forum
- 4 LFS145 Class Forum
- 2 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 2 LFS157 Class Forum
- 25 LFS158 Class Forum
- 7 LFS162 Class Forum
- 2 LFS166 Class Forum
- 4 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 3 LFS178 Class Forum
- 3 LFS180 Class Forum
- 2 LFS182 Class Forum
- 5 LFS183 Class Forum
- 31 LFS200 Class Forum
- 737 LFS201 Class Forum - Discontinued
- 3 LFS201-JP クラス フォーラム
- 18 LFS203 Class Forum
- 130 LFS207 Class Forum
- 2 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 302 LFS211 Class Forum
- 56 LFS216 Class Forum
- 52 LFS241 Class Forum
- 48 LFS242 Class Forum
- 38 LFS243 Class Forum
- 15 LFS244 Class Forum
- 2 LFS245 Class Forum
- LFS246 Class Forum
- 48 LFS250 Class Forum
- 2 LFS250-JP クラス フォーラム
- 1 LFS251 Class Forum
- 150 LFS253 Class Forum
- 1 LFS254 Class Forum
- 1 LFS255 Class Forum
- 7 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.2K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 118 LFS260 Class Forum
- 159 LFS261 Class Forum
- 42 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 24 LFS267 Class Forum
- 22 LFS268 Class Forum
- 30 LFS269 Class Forum
- LFS270 Class Forum
- 202 LFS272 Class Forum
- 2 LFS272-JP クラス フォーラム
- 1 LFS274 Class Forum
- 4 LFS281 Class Forum
- 9 LFW111 Class Forum
- 259 LFW211 Class Forum
- 181 LFW212 Class Forum
- 13 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 795 Hardware
- 199 Drivers
- 68 I/O Devices
- 37 Monitors
- 102 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 85 Storage
- 758 Linux Distributions
- 82 Debian
- 67 Fedora
- 17 Linux Mint
- 13 Mageia
- 23 openSUSE
- 148 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 353 Ubuntu
- 468 Linux System Administration
- 39 Cloud Computing
- 71 Command Line/Scripting
- Github systems admin projects
- 93 Linux Security
- 78 Network Management
- 102 System Management
- 47 Web Management
- 63 Mobile Computing
- 18 Android
- 33 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 370 Off Topic
- 114 Introductions
- 173 Small Talk
- 22 Study Material
- 805 Programming and Development
- 303 Kernel Development
- 484 Software Development
- 1.8K Software
- 261 Applications
- 183 Command Line
- 3 Compiling/Installing
- 987 Games
- 317 Installation
- 96 All In Program
- 96 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)