The dmesg is to get all the kernel log when the system is booting into the kernel. Type those commands to extract the network status will help you to debug.
- dmesg | grep mdio Purpose: This command will let you know the mdio status.
- dmesg | grep link Purpose: This command will let you know the link status. When you plug/unplug the cable, you can use this command to know the detail.
- dmesg | grep cpsw Purpose: This command will let you know the cpsw status. For additional information about CPSW, please go to: Sitara Linux Dual Emac Mode
- dmesg | grep net Purpose: This command will let you know the network (IPV4/IPV6 status).