nerdexam
Linux_Foundation

LFCS · Question #101

What of the following can be done by the command ifconfig? (Choose TWO correct answers.)

The correct answer is A. Set a network interface active or inactive. D. Change the netmask used on a network interface. The ifconfig command is a legacy tool for configuring network interfaces, allowing users to enable or disable them and modify network parameters like the netmask.

Submitted by olafpl· Apr 18, 2026Networking

Question

What of the following can be done by the command ifconfig? (Choose TWO correct answers.)

Options

  • ASet a network interface active or inactive.
  • BSpecify the kernel module to be used with a network interface.
  • CAllow regular users to change the network configuration of a network interface.
  • DChange the netmask used on a network interface.
  • ESpecify which network services are available on a network interface.

How the community answered

(60 responses)
  • A
    92% (55)
  • B
    2% (1)
  • C
    5% (3)
  • E
    2% (1)

Why each option

The `ifconfig` command is a legacy tool for configuring network interfaces, allowing users to enable or disable them and modify network parameters like the netmask.

ASet a network interface active or inactive.Correct

The `ifconfig` command can activate or deactivate a network interface using the `up` and `down` keywords, respectively, controlling its operational state.

BSpecify the kernel module to be used with a network interface.

`ifconfig` does not specify kernel modules; module loading is typically handled by `modprobe` or system boot processes.

CAllow regular users to change the network configuration of a network interface.

`ifconfig` requires root privileges to modify network configurations, so regular users cannot make such changes.

DChange the netmask used on a network interface.Correct

`ifconfig` allows administrators to change the subnet mask (netmask) associated with an IP address on a specific network interface, defining the network portion of the address.

ESpecify which network services are available on a network interface.

`ifconfig` configures interfaces, not network services; services are configured separately through their own configuration files or daemons.

Concept tested: Linux network interface configuration with ifconfig

Source: https://man7.org/linux/man-pages/man8/ifconfig.8.html

Topics

#ifconfig#Network Configuration#Network Interfaces#Netmask

Community Discussion

No community discussion yet for this question.

Full LFCS Practice