linux查看网卡速度和模式调整
2016-08-02 16:05
501 查看
[root@c02b03 ~]# ethtool eth0 Settings for eth0: Supported ports: [ FIBRE ] Supported link modes: 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 1000baseT/Full Advertised pause frame use: Symmetric Advertised auto-negotiation: Yes Speed: Unknown! Duplex: Unknown! (255) Port: FIBRE PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: pumbg Wake-on: g Current message level: 0x00000003 (3) Link detected: no [root@c02b03 ~]# ethtool eth1 Settings for eth1: Supported ports: [ FIBRE ] Supported link modes: 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 1000baseT/Full Advertised pause frame use: Symmetric Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: FIBRE PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: d Wake-on: d Current message level: 0x00000003 (3) Link detected: yes
或者老的mii-tool命令(但是该命令似乎只能识别100M及以下网卡)亦可。
其中, Duplex: Full表示全双工(FD),half表示半双工(HD), Auto-negotiation
后边表示是否自动协商
可以通过修改/etc/sysconfig/network-scripts/ifcfg-eth0文件中的
ETHTOOL_OPTS="speed 100 duplex full autoneg off"
参数进行设置,使用ifup和ifdown来测试
相关文章推荐
- Linux 命令
- linux下创建临时文件
- linux之cat命令详解
- linux sheel重复执行上条命令
- LINUX如何查看其他用户的操作
- 初窥Linux 之 我最常用的20条命令
- kali linux 2016.1下安装VMware12.1.1打不开的处理过程
- linux之tmp文件夹
- 【linux】玩转awk一
- android selinux
- AWK seq
- Linux命令:ping
- linux中关于原子操作
- 阿里云centos安装svn和submin
- linux命令之ifconfig
- High Memory in the Linux Kernel
- Linux清除木马minerd
- Linux 用Mail发送邮件文字变成AXXX.bin的问题解决方法
- linux
- Linux学习总结(10)——Linux查看CPU和内存使用情况