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
- 139 LFX Mentorship
- 139 LFX Mentorship: Linux Kernel
- 816 Linux Foundation IT Professional Programs
- 367 Cloud Engineer IT Professional Program
- 184 Advanced Cloud Engineer IT Professional Program
- 83 DevOps Engineer IT Professional Program
- 151 Cloud Native Developer IT Professional Program
- 142 Express Training Courses & Microlearning
- 142 Express Courses - Discussion Forum
- Microlearning - Discussion Forum
- 6.6K Training Courses
- 48 LFC110 Class Forum - Discontinued
- 72 LFC131 Class Forum
- 49 LFD102 Class Forum
- 234 LFD103 Class Forum
- 21 LFD110 Class Forum
- 44 LFD121 Class Forum
- LFD123 Class Forum
- LFD125 Class Forum
- 18 LFD133 Class Forum
- 8 LFD134 Class Forum
- 18 LFD137 Class Forum
- 72 LFD201 Class Forum
- 5 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
- 719 LFD259 Class Forum
- 111 LFD272 Class Forum - Discontinued
- 4 LFD272-JP クラス フォーラム
- 13 LFD273 Class Forum
- 244 LFS101 Class Forum
- 2 LFS111 Class Forum
- 3 LFS112 Class Forum
- 3 LFS116 Class Forum
- 7 LFS118 Class Forum
- LFS120 Class Forum
- 9 LFS142 Class Forum
- 8 LFS144 Class Forum
- 4 LFS145 Class Forum
- 4 LFS146 Class Forum
- 16 LFS148 Class Forum
- 15 LFS151 Class Forum
- 5 LFS157 Class Forum
- 68 LFS158 Class Forum
- LFS158-JP クラス フォーラム
- 11 LFS162 Class Forum
- 2 LFS166 Class Forum
- 7 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
- 33 LFS200 Class Forum
- 737 LFS201 Class Forum - Discontinued
- 3 LFS201-JP クラス フォーラム - Discontinued
- 20 LFS203 Class Forum
- 135 LFS207 Class Forum
- 2 LFS207-DE-Klassenforum
- 2 LFS207-JP クラス フォーラム
- 302 LFS211 Class Forum
- 56 LFS216 Class Forum
- 53 LFS241 Class Forum
- 50 LFS242 Class Forum
- 38 LFS243 Class Forum
- 16 LFS244 Class Forum
- 5 LFS245 Class Forum
- LFS246 Class Forum
- LFS248 Class Forum
- 90 LFS250 Class Forum
- 2 LFS250-JP クラス フォーラム
- 1 LFS251 Class Forum
- 156 LFS253 Class Forum
- 1 LFS254 Class Forum
- 2 LFS255 Class Forum
- 12 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.3K LFS258 Class Forum
- 11 LFS258-JP クラス フォーラム
- 135 LFS260 Class Forum
- 162 LFS261 Class Forum
- 43 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 24 LFS267 Class Forum
- 25 LFS268 Class Forum
- 37 LFS269 Class Forum
- 7 LFS270 Class Forum
- 202 LFS272 Class Forum - Discontinued
- 2 LFS272-JP クラス フォーラム
- 4 LFS147 Class Forum
- 2 LFS274 Class Forum
- 4 LFS281 Class Forum
- 16 LFW111 Class Forum
- 262 LFW211 Class Forum
- 185 LFW212 Class Forum
- 15 SKF100 Class Forum
- 1 SKF200 Class Forum
- 2 SKF201 Class Forum
- 797 Hardware
- 199 Drivers
- 68 I/O Devices
- 37 Monitors
- 104 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 85 Storage
- 761 Linux Distributions
- 82 Debian
- 67 Fedora
- 17 Linux Mint
- 13 Mageia
- 23 openSUSE
- 149 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 355 Ubuntu
- 470 Linux System Administration
- 39 Cloud Computing
- 71 Command Line/Scripting
- Github systems admin projects
- 95 Linux Security
- 78 Network Management
- 102 System Management
- 47 Web Management
- 69 Mobile Computing
- 18 Android
- 38 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 379 Off Topic
- 115 Introductions
- 177 Small Talk
- 26 Study Material
- 808 Programming and Development
- 304 Kernel Development
- 486 Software Development
- 1.8K Software
- 263 Applications
- 183 Command Line
- 3 Compiling/Installing
- 988 Games
- 317 Installation
- 103 All In Program
- 103 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)