LFCS · 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 can modify network interface states (active/inactive), alter IP addresses, and directly impact 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
(55 responses)- A5% (3)
- B91% (50)
- E4% (2)
Why each option
The `ifconfig` command can modify network interface states (active/inactive), alter IP addresses, and directly impact the system's routing table.
ifconfig manages network interfaces and their IP configurations, but it does not directly modify name server entries in the resolver configuration file (`/etc/resolv.conf`).
ifconfig can bring an interface `up` or `down`, changing its active or inactive status.
While `ifconfig` primarily manages interfaces, changing an interface's status or IP address can indirectly cause changes to be made to the kernel's routing table (e.g., adding or removing a direct route).
ifconfig is directly used to assign or change an IP address and netmask for a network interface.
The `ifconfig` command does not manage the system's hostname; that is typically handled by the `hostname` command or `sysctl`.
Concept tested: `ifconfig` command capabilities
Source: https://man7.org/linux/man-pages/man8/ifconfig.8.html
Topics
Community Discussion
No community discussion yet for this question.