Bring up enp1s0 using the distribution's registered network configuration.
Use ifup.
Which command is appropriate?
ifup INTERFACE activates an interface using distribution-managed configuration. The exact configuration files and implementation vary by system.
Detailed explanation
ifup enp1s0Correct. ifup enp1s0 activates the configured interface.
ifdown enp1s0Incorrect. ifdown stops the interface.
ifconfig enp1s0Incorrect. ifconfig without an assignment primarily displays information.
nmcli connection show enp1s0Incorrect. nmcli connection show displays a profile rather than activating it.
Try it yourself
An example you can run in a temporary verification environment.
command -V ifup 2>/dev/null || printf '%s
' 'ifup is not installed'Expected result
ifupのコマンド情報、または未導入を示すメッセージKey points
- ifup brings an interface up
- It reads persistent configuration
- ifdown stops it
Notes
- Environment: POSIX shell / 状態変更なし
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Network interface
A host attachment whose link state and addresses can be managed.
Connection profile
Saved settings used to activate a persistent network connection.
Routing table
Rules that select the next hop for each destination network.