Packet loss is suspected on enp1s0.
Use net-tools to inspect RX/TX packets, errors, and drops without changing state.
Which command is appropriate?
ifconfig INTERFACE displays address, state, and RX/TX counters such as errors and dropped packets. Watching counters over time helps isolate problems.
Detailed explanation
ifconfig enp1s0Correct. ifconfig enp1s0 displays the requested interface counters.
Correct. ifconfig enp1s0 displays the requested interface counters.
ifup enp1s0Incorrect. ifup changes state by bringing the interface up.
Incorrect. ifup changes state by bringing the interface up.
hostname enp1s0Incorrect. hostname changes or displays host naming, not interface counters.
Incorrect. hostname changes or displays host naming, not interface counters.
route add enp1s0Incorrect. This is an incomplete route-add form, not a statistics query.
Incorrect. This is an incomplete route-add form, not a statistics query.
Try it yourself
An example you can run in a temporary verification environment.
ifconfig lo 2>/dev/null | sed -n '1,8p' || printf '%s
' 'ifconfig is not installed'Expected result
loの状態、アドレス、RX/TX統計、またはnet-tools未導入メッセージKey points
- RX/TX statistics
- errors and dropped
- Read-only inspection
Notes
- Environment: net-tools ifconfig / 読み取り専用
- 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.