linux下网卡相关命令

来源:互联网 发布:佛山市软件行业协会 编辑:程序博客网 时间:2024/06/01 15:32

网卡相关设置命令
 ifconfig
 ethtool eth0
 dmidecode
dmidecode |grep Serial
ifconfig
ethtool eth0
ethtool -h|grep do
ethtool eth0
ethtool -h|grep Duplex
ethtool -h|grep uplex
ethtool -s duplex full eth0

mii-tool
eth0: no link
eth1: no autonegotiation, 100baseTx-HD, link ok
Linux:~ # mii-tool -F 100baseTx-HD
 
//切换网卡得状态为半双工状态
 
Linux:~ # mii-tool
eth0: 100 Mbit, half duplex, no link
eth1: 100 Mbit, half duplex, link ok

ethtool -s eth0 autoneg off

0 0
原创粉丝点击