ITS UNIX Systems
Changing Ethernet Media Speed for AIX
First you need to find out the device name of your ethernet card. It should be ent0 if the machine has only 1 ethernet card. Otherwise, it may be a higher number.
You can determine the legal values for the media speed of the card by running the following command (where the value of ent0 may be different if you machine has multiple ethernet cards).
lsattr -R -l ent0 -a media_speed
If this command results in the following error—
lsattr: 0514-528 The "media_speed" attribute does not exist in the predefined device configuration database.
—then the ethernet card is a 10Mbps card that will only do 10Mbps/half duplex
If you do have a 100Mbps card, the lsattr command will return something like this:
10_Half_Duplex 10_Full_Duplex 100_Half_Duplex 100_Full_Duplex Auto_Negotiation
These are the media speeds the card will understand. To see the cards current media speed setting you can run
lsattr -EH -l ent0 -a media_speed
To change the media speed, run:
chdev -P -l ent0 -a media_speed=100_Half_Duplex
The value for media_speed can be any of the values listed by the lsattr -R command above. The change does not take effect until you reboot the machine.
本文介绍在AIX系统中如何查找并更改以太网卡的介质速度。首先确定网卡设备名,通常为ent0。使用lsattr命令查看合法的介质速度值,如遇到特定错误则表明网卡仅支持10Mbps半双工。对于100Mbps网卡,lsattr将显示多种速度选项。通过lsattr-EH命令查看当前设置,使用chdev修改速度,需重启系统使更改生效。

被折叠的 条评论
为什么被折叠?



