Linux Networking: Troubleshooting and Diagnostics/Show recent kernel network messages

Filter kernel ring buffer for common networking terms.

Section: System Files and Logs

Show recent kernel network messages

bash
bash
dmesg --color=always | egrep -i 'eth|ens|eno|link|mtu|tcp|udp|icmp'
Explanation

Filter kernel ring buffer for common networking terms.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing System Files and Logs
Show historical network counters
Inspect sar network statistics if sysstat is installed.
OpenIn sheetbashsame section
Show systemd-networkd logs
Inspect logs for systemd-networkd.
OpenIn sheetbashsame section
Show systemd-resolved logs
Inspect DNS resolver service logs.
OpenIn sheetbashsame section
Show NetworkManager logs
Inspect NetworkManager service logs.
OpenIn sheetbashsame section
Monitor link/address changes
Watch interfaces, addresses, and routes in real time.
OpenIn sheetbashsame section
Ping a host
Send ICMP echo requests to test basic reachability.