重庆思庄Oracle、Redhat认证学习论坛
标题:
linux下修改网卡传输速率
[打印本页]
作者:
miss_puff
时间:
2018-9-7 15:50
标题:
linux下修改网卡传输速率
要求:将ens33网卡的传输速率由1000m/s修改为100m/s
1、查看ens33网卡传输速率
[root@18c expdp]# ethtool ens33
Settings for ens33:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: off (auto)
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
2、修改网卡传输速率为100m/s
[root@18c expdp]# ethtool -s ens33 speed 100 duplex full autoneg off
3、查看
[root@18c expdp]# ethtool ens33
Settings for ens33:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
MDI-X: off (auto)
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
[root@18c expdp]#
要想永久生效需要写到配置文件/etc/sysconfig/network-scripts/ifcfg-ens33
[root@18c network-scripts]# tail -2 ifcfg-ens33
IPV6_PEERROUTES=yes
ETHTOOL_OPTS="speed 100 duplex full autoneg off"
欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/)
Powered by Discuz! X3.2