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.
Question
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)- A92% (55)
- B2% (1)
- C5% (3)
- E2% (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.
The `ifconfig` command can activate or deactivate a network interface using the `up` and `down` keywords, respectively, controlling its operational state.
`ifconfig` does not specify kernel modules; module loading is typically handled by `modprobe` or system boot processes.
`ifconfig` requires root privileges to modify network configurations, so regular users cannot make such changes.
`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.
`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
Community Discussion
No community discussion yet for this question.