简书链接:openwrt显示网卡信息
文章字数:78,阅读全文大约需要1分钟
dmesg | grep -i eth

ethtool -i eth0

查看主板型号 dmidecode |grep -A 8 “System Information”

查看 cpu 型号,主频 cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

查看内存 free -m

内存总大小 grep “MemTotal” /proc/meminfo | awk ‘{print $2}’

查看内存条数 dmidecode -t memory|grep Size

查看硬盘大小,分区 df -h

查看 raid 卡 dmesg |grep -i raid

查看网卡 lspci | grep -i ‘eth’

查看板载显示信息 dmidecode |grep -A 5 “On Board Device Information”
其它有意思的命令

1
2
3
uci show network
ip addr
ifconfg -a