الفلاتر
طريقة البحث
  • الكلمات العادية تجد الأسماء والنصوص والأمثلة.
  • "كلمتان" تجد العبارة بالضبط.
  • --name أو -x تجد خيارًا.
  • #كلمة تبحث داخل الأوامر فقط.
  • @grep تجد الدروس والمعامل التي تستخدم grep.
  • الفلاتر: cat:network · in:labs · level:rhcsa · ch:8 · root:yes. ضع ! قبل كلمة لاستبعادها. OR بين الكلمات تعني إحداها.
  • ↑ ↓ للتنقل · Enter للفتح · Esc للإغلاق · / للبحث

معمل 16.1RHCSA 10, الفصل 16

Modules, parameters and kernel settings

المستوى
متوسط
30 دقيقة
الأجهزة
server1
الحالة
لم يبدأ

هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.

الهدف

Inspect the kernel, load and block modules, set a module parameter for good, and change a kernel setting that survives a reboot.

قبل أن تبدأ

  • Work on server1 as root.

المهام

  1. Show the running kernel version, the boot options the kernel got, and all kernel messages of priority warning or worse from this boot.
  2. Show if the module vfat is loaded. Load it, show its dependencies, then unload it.
  3. Make sure the module vfat is loaded at every boot.
  4. Make sure the module usb-storage can never be loaded.
  5. Show the parameters of the module loop. Set max_part=8 for it permanently.
  6. Turn on IP forwarding permanently and check it.
  7. List the installed kernels and show which one boots by default.

تحقّق من عملك

cat /etc/modules-load.d/vfat.conf
modprobe usb-storage; lsmod | grep usb_storage
cat /etc/modprobe.d/*.conf
sysctl net.ipv4.ip_forward
grubby --default-kernel

تلميحات

اعرض التلميحات

الحل

اعرض الحل
  1. Kernel information.
    uname -r
    cat /proc/cmdline
    journalctl -k -b -p warning
  2. vfat by hand.
    lsmod | grep vfat
    modprobe vfat
    lsmod | grep -E 'vfat|fat'
    modprobe -r vfat
  3. Load at boot.
    echo vfat > /etc/modules-load.d/vfat.conf
  4. Block usb-storage.
    printf 'blacklist usb-storage\ninstall usb-storage /bin/false\n' > /etc/modprobe.d/no-usb-storage.conf
  5. loop parameter.
    modinfo -p loop
    echo "options loop max_part=8" > /etc/modprobe.d/loop.conf
  6. IP forwarding.
    echo "net.ipv4.ip_forward = 1" > /etc/sysctl.d/90-forward.conf
    sysctl --system
    sysctl net.ipv4.ip_forward
  7. Kernels.
    rpm -q kernel
    grubby --default-kernel

ملاحظاتي

لا توجد ملاحظات بعد.

دروس هذا المعمل

الأوامر في هذا المعمل