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.
Question
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)- A10% (2)
- B71% (15)
- E19% (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.
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`.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.