Free 102-500 Exam Braindumps
LPIC-1 Exam 102, Part 2 of 2, version 5.0 Questions 116–120 (page: 25)

Updated On: 10-Feb-2026

What entry can you add to syslog.conf file to have all syslog messages generated by your system go to virtual console 12?

  1. *.* /dev/tty12
  2. /var/log/messages | /dev/tty12
  3. | /dev/tty12
  4. syslog tty12
  5. mail.* /dev/tty12

Answer(s): A

Explanation:

The syslog.conf file is the main configuration file for the syslogd daemon, which logs system messages on Linux systems. This file specifies rules for logging, using a selector field and an action field. The selector field consists of a facility and a priority, separated by a period. The facility indicates the subsystem that produced the message, such as mail, auth, or kern. The priority indicates the severity of the message, such as debug, info, or emerg. An asterisk (*) stands for all facilities or all priorities, depending on where it is used. The action field specifies where the message should be logged, such as a file, a user, or a device.
To have all syslog messages generated by the system go to virtual console 12, which is represented by the device file /dev/tty12, the following entry can be added to the syslog.conf file:
. /dev/tty12
This means that any facility and any priority (.) should be logged to the device /dev/tty12. This will redirect all the messages that would normally go to /var/log/messages to the console 12. To see the messages, the user can press Ctrl-Alt-F12 to switch to that console.


Reference:

syslog.conf (5) - Linux man page
Beginner's Guide to Syslogs in Linux [Real World Examples] Configuration Formats -- rsyslog 8.33-20180109-54df0f2 documentation



What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)

  1. route del default
  2. ifconfig unset default
  3. netstat -r default
  4. ip route del default
  5. sysctl ipv4.default_gw=0

Answer(s): A,D

Explanation:

The command to delete the default gateway from the system IP routing table is either route del default or ip route del default. Both commands will remove the default route that matches the specified parameters. The route command is the older and more widely supported tool, while the ip command is the newer and more powerful tool that can manipulate various aspects of the network configuration. The other options are either invalid or do not affect the default gateway.


Reference:

1: How to Remove Default Gateways via ip | Baeldung on Linux
2: How to remove all default gateways - Unix & Linux Stack Exchange
4: How to Add or Change the Default Gateway in Linux: 9 Steps - wikiHow



What is the purpose of the nsswitch.conf file?

  1. It is used to configure where the C library looks for system information such as host names and user passwords.
  2. It is used to configure network protocol port numbers such as for HTTP or SMTP.
  3. It is used to configure LDAP authentication services for the local system.
  4. It is used to configure which network services will be turned on during the next system boot.

Answer(s): A

Explanation:

The nsswitch.conf file is a configuration file that determines the sources and the order of the sources that are queried for various system databases, such as user information, group information, host names, network services, and more. The C library uses this file to look up various system information when a program or a command requests it. For example, when a user logs in, the C library will use the nsswitch.conf file to determine where to find the user's password, whether it is in the local /etc/passwd file, or in a remote LDAP server, or both. The nsswitch.conf file allows the system administrator to configure the system databases in a flexible and modular way.


Reference:

[LPI Linux Essentials - Topic 106: The Linux Operating System] [LPI Linux Administrator - Exam 102 Objectives - Topic 110: Security] [Linux man page for nsswitch.conf]



With IPv6, how many bits have been used for the interface identifier of an unicast address? (Specify the number using digits only.)

  1. 64

Answer(s): A

Explanation:

With IPv6, the interface identifier of an unicast address is typically a 64-bit value that is used to identify a host's network interface. The interface identifier can be derived from the MAC address of the network card, or it can be randomly generated or manually configured. The interface identifier is the rightmost 64 bits of the most commonly encountered address types, such as global unicast (2000::/3) and link-local (fe80::/10). The interface identifier is different from the network prefix, which is the leftmost bits of the address that indicate the network or subnet to which the host belongs. The network prefix can vary in length, depending on the address type and the subnetting scheme. The network prefix and the interface identifier are separated by a double colon (::) in the IPv6 address notation. For example, in the address 2001:db8:1234:5678:abcd:ef12:3456:7890, the network prefix is 2001:db8:1234:5678 and the interface identifier is abcd:ef12:3456:7890.


Reference:

https://study-ccna.com/ipv6-interface-identifier/
https://networklessons.com/ipv6/ipv6-eui-64-explained



Which of the following commands will help identify a broken router between the local and the remote machine?

  1. ps
  2. netstat
  3. nslookup
  4. ifconfig
  5. traceroute

Answer(s): E

Explanation:

The traceroute command will help identify a broken router between the local and the remote machine. The traceroute command sends a series of packets with increasing time-to-live (TTL) values to a destination and displays the routers that the packets pass through along the way. If a router is broken or unreachable, the traceroute command will show a * symbol or a timeout message. The traceroute command is part of the topic 109.1: Fundamentals of internet protocols, which is one of the objectives of the LPI Linux Administrator - 102 exam12.


Reference:

1:
https://learning.lpi.org/en/learning-materials/102-500/ 2: https://www.lpi.org/our- certifications/exam-102-objectives/



Viewing page 25 of 48
Viewing questions 121 - 125 out of 234 questions


Post your Comments and Discuss LPI 102-500 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!