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
- 207 LFX Mentorship
- 207 LFX Mentorship: Linux Kernel
- 735 Linux Foundation IT Professional Programs
- 339 Cloud Engineer IT Professional Program
- 167 Advanced Cloud Engineer IT Professional Program
- 66 DevOps Engineer IT Professional Program
- 132 Cloud Native Developer IT Professional Program
- 122 Express Training Courses
- 122 Express Courses - Discussion Forum
- 5.9K Training Courses
- 40 LFC110 Class Forum - Discontinued
- 66 LFC131 Class Forum
- 39 LFD102 Class Forum
- 221 LFD103 Class Forum
- 17 LFD110 Class Forum
- 33 LFD121 Class Forum
- 17 LFD133 Class Forum
- 6 LFD134 Class Forum
- 17 LFD137 Class Forum
- 70 LFD201 Class Forum
- 3 LFD210 Class Forum
- 2 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 1 LFD233 Class Forum
- 3 LFD237 Class Forum
- 23 LFD254 Class Forum
- 689 LFD259 Class Forum
- 109 LFD272 Class Forum
- 3 LFD272-JP クラス フォーラム
- 10 LFD273 Class Forum
- 109 LFS101 Class Forum
- LFS111 Class Forum
- 2 LFS112 Class Forum
- 1 LFS116 Class Forum
- 3 LFS118 Class Forum
- 3 LFS142 Class Forum
- 3 LFS144 Class Forum
- 3 LFS145 Class Forum
- 1 LFS146 Class Forum
- 2 LFS147 Class Forum
- 8 LFS151 Class Forum
- 1 LFS157 Class Forum
- 14 LFS158 Class Forum
- 5 LFS162 Class Forum
- 1 LFS166 Class Forum
- 3 LFS167 Class Forum
- 1 LFS170 Class Forum
- 1 LFS171 Class Forum
- 2 LFS178 Class Forum
- 2 LFS180 Class Forum
- 1 LFS182 Class Forum
- 4 LFS183 Class Forum
- 30 LFS200 Class Forum
- 737 LFS201 Class Forum - Discontinued
- 2 LFS201-JP クラス フォーラム
- 17 LFS203 Class Forum
- 117 LFS207 Class Forum
- 1 LFS207-DE-Klassenforum
- LFS207-JP クラス フォーラム
- 301 LFS211 Class Forum
- 55 LFS216 Class Forum
- 50 LFS241 Class Forum
- 43 LFS242 Class Forum
- 37 LFS243 Class Forum
- 13 LFS244 Class Forum
- 1 LFS245 Class Forum
- 45 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- LFS251 Class Forum
- 145 LFS253 Class Forum
- LFS254 Class Forum
- LFS255 Class Forum
- 6 LFS256 Class Forum
- LFS257 Class Forum
- 1.2K LFS258 Class Forum
- 9 LFS258-JP クラス フォーラム
- 116 LFS260 Class Forum
- 154 LFS261 Class Forum
- 41 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 23 LFS267 Class Forum
- 18 LFS268 Class Forum
- 29 LFS269 Class Forum
- 200 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- LFS274 Class Forum
- 3 LFS281 Class Forum
- 7 LFW111 Class Forum
- 257 LFW211 Class Forum
- 178 LFW212 Class Forum
- 12 SKF100 Class Forum
- SKF200 Class Forum
- 791 Hardware
- 199 Drivers
- 68 I/O Devices
- 37 Monitors
- 98 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 85 Storage
- 754 Linux Distributions
- 82 Debian
- 67 Fedora
- 16 Linux Mint
- 13 Mageia
- 23 openSUSE
- 147 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 351 Ubuntu
- 465 Linux System Administration
- 39 Cloud Computing
- 71 Command Line/Scripting
- Github systems admin projects
- 91 Linux Security
- 78 Network Management
- 101 System Management
- 47 Web Management
- 56 Mobile Computing
- 17 Android
- 28 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 366 Off Topic
- 114 Introductions
- 171 Small Talk
- 20 Study Material
- 534 Programming and Development
- 293 Kernel Development
- 223 Software Development
- 1.1K Software
- 212 Applications
- 182 Command Line
- 3 Compiling/Installing
- 405 Games
- 311 Installation
- 79 All In Program
- 79 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)