102-400 · Question #181
Which of the following commands can be used to activate a specific network interface?
The correct answer is B. ifup. See the full explanation below for the reasoning.
Question
Options
- Aipup
- Bifup
- Cnet
- Dnetup
How the community answered
(51 responses)- A14% (7)
- B76% (39)
- C8% (4)
- D2% (1)
Community Discussion
3B is correct. ifup is the standard command for bringing a network interface up, reading its configuration from /etc/network/interfaces (or the distro equivalent) and applying settings like IP address and gateway, while the other choices, ipup, net, and netup, are not valid Linux networking commands.
ifup is your answer, no contest. Think of it as "Interface Function UP" and once you see ifup in a terminal it brings the whole card online by reading /etc/network/interfaces for its config.
ifup is the right call here, though on any system running NetworkManager or systemd-networkd you are more likely to reach for nmcli or ip link set eth0 up in practice. The distractor ipup does not exist as a standard command, so do not let that invented option shake your confidence when B is sitting right there.