nerdexam
CompTIA

LX0-104 · Question #97

Which of the following may occur as a consequence of using the command ifconfig? (Choose THREE correct answers.)

The correct answer is B. Network interfaces may become active or inactive. C. The routing table may change. D. IP addresses may change. The ifconfig command is a legacy tool for configuring network interfaces, allowing administrators to change their status, assign IP addresses, and consequently affect the system's routing table.

Networking Fundamentals

Question

Which of the following may occur as a consequence of using the command ifconfig? (Choose THREE correct answers.)

Options

  • ANew name servers may be added to the resolver configuration.
  • BNetwork interfaces may become active or inactive.
  • CThe routing table may change.
  • DIP addresses may change.
  • EThe system's host name may change.

How the community answered

(21 responses)
  • A
    10% (2)
  • B
    71% (15)
  • E
    19% (4)

Why each option

The `ifconfig` command is a legacy tool for configuring network interfaces, allowing administrators to change their status, assign IP addresses, and consequently affect the system's routing table.

ANew name servers may be added to the resolver configuration.

Adding new name servers to the resolver configuration is handled by modifying `/etc/resolv.conf` or using utilities like `nmcli` or `resolvectl`, not by `ifconfig`.

BNetwork interfaces may become active or inactive.Correct

The `ifconfig` command can bring a network interface up or down using the `up` or `down` options, directly controlling whether the interface is active or inactive.

CThe routing table may change.Correct

When an IP address or network configuration is applied to an interface via `ifconfig`, the kernel automatically updates its routing table to reflect the new directly connected network and ensure correct traffic flow.

DIP addresses may change.Correct

One of the primary uses of `ifconfig` is to assign or modify the IPv4 address and netmask for a specific network interface, changing its network identity.

EThe system's host name may change.

The system's hostname is changed using commands such as `hostname` or `hostnamectl`, not through the `ifconfig` utility.

Concept tested: ifconfig command usage and network interface configuration

Topics

#ifconfig command#network interface#IP addressing#routing table

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice