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.
ifup enp1s0Incorrect. ifup changes state by bringing the interface up.
hostname enp1s0Incorrect. hostname changes or displays host naming, not interface counters.
route add enp1s0Incorrect. 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
Interface counters
Kernel-maintained counts of packets, errors, and drops at an interface.
Socket
A local or remote endpoint associated with a transport protocol and process.
Path tracing
A diagnostic method that observes hops and path limits toward a destination.