Use legacy net-tools netstat to list each interface's MTU, RX/TX packets, and errors.
Which command is appropriate?
netstat -i displays interface-level kernel statistics such as MTU, packets, errors, and flags.
Detailed explanation
netstat -rnIncorrect. -rn displays the numeric routing table.
Incorrect. -rn displays the numeric routing table.
netstat -lntIncorrect. -lnt displays listening TCP sockets.
Incorrect. -lnt displays listening TCP sockets.
netstat -sIncorrect. -s displays protocol statistics.
Incorrect. -s displays protocol statistics.
netstat -iCorrect. -i shows per-interface statistics.
Correct. -i shows per-interface statistics.
Try it yourself
An example you can run in a temporary verification environment.
netstat -i 2>/dev/null | sed -n '1,5p' || printf '%s
' 'netstat is not installed'Expected result
Iface、MTU、RX-OK、RX-ERR、TX-OKなどの表、または未導入メッセージKey points
- -i means interface
- RX/TX counters
- Different from routes and sockets
Notes
- Environment: net-tools netstat / 読み取り専用
- 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.