AIX changing ethernet Media Speed - On the Fly
This reads the configuration parameters for this device from the ODM.
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.
If you select a value other than Auto_Negotiation the switch port the machine is connected to must have the same configuration. If the switch and the machine do not match you may get no network connectivity or poor performance.
You must specify one of the following flags with the lsattr command:
-D
Displays default values.
-E
Displays effective values (valid only for customized devices specified with the -l flag).
-F Format
Specifies the user-defined format.
-R
Displays the range of legal values.
## Returns Driver statistics
root@monster:~# netstat -v | egrep "(ETHERNET|Media)"
ETHERNET STATISTICS (ent0) :
Media Speed Selected: 100 Mbps Full Duplex
Media Speed Running: 100 Mbps Full Duplex
root@monster:~# entstat -d ent0 | egrep "(ETHERNET|Media)"
ETHERNET STATISTICS (ent0) :
Media Speed Selected: 100 Mbps Full Duplex
Media Speed Running: 100 Mbps Full Duplex
root@monster:~# lsattr -R -l ent0 -a media_speed
Auto_Negotiation
100_Full_Duplex
root@monster:~# lsattr -EH -l ent0 -a media_speed
attribute value description user_settable
media_speed 100_Full_Duplex Media speed True
root@monster:~# lsattr -El ent0 | grep media_speed
media_speed 100_Full_Duplex Media speed True
* Source Article from : Internet