Apply the defined eth0 configuration with the ifup/ifdown method.
Do not stop the interface.
Which command is appropriate?
ifup reads distribution-specific interface settings and brings the named interface up. The stopping counterpart is ifdown.
Detailed explanation
ifdown eth0Incorrect. ifdown processes the interface in the stopping direction.
Incorrect. ifdown processes the interface in the stopping direction.
ifup eth0Correct. ifup eth0 starts eth0 using its defined configuration.
Correct. ifup eth0 starts eth0 using its defined configuration.
ifup --down eth0Incorrect. This is not standard ifup syntax for switching between up and down.
Incorrect. This is not standard ifup syntax for switching between up and down.
ifdown --up eth0Incorrect. ifdown does not use an --up form to start an interface.
Incorrect. ifdown does not use an --up form to start an interface.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'ifup eth0 -> configure up' 'ifdown eth0 -> configure down'Expected result
ifup eth0 -> configure up
ifdown eth0 -> configure downKey points
- ifup starts an interface
- ifdown stops an interface
- Match the command to the configuration method
Notes
- Environment: 操作対応表の表示のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.