How to change the network speed
From Wiki-UX.info
1. Check the available network cards.
# lanscan Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI Path Address In# State NamePPA ID Type Support Mjr# 0/1/2/0 0x00156004A2FA 0 UP lan0 snap0 1 ETHER Yes 119 0/1/2/1 0x00156004A2FB 1 UP lan1 snap1 2 ETHER Yes 119 0/4/1/0/6/0 0x0016353E5012 2 UP lan2 snap2 3 ETHER Yes 119
2. Check the associated lan driver to help determinate the appropiate network card configuration file.
# ioscan -fnkH 0/4/1/0/6/0 Class I H/W Path Driver S/W State H/W Type Description ====================================================================== lan 2 0/4/1/0/6/0 igelan CLAIMED INTERFACE HP A9784-60002 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter
3. Check the card current speed.
# lanadmin -x 2
4. Modify the network speed on the fly from the command line.
# lanadmin -X 100FD 2
5. If you want to made the change permanently, modify the pertinent network card configuration file hp<driver_name>conf. You can reboot the system or restart the netd daemon.
Example:
# grep IGELAN /etc/rc.config.d/hpigelanconf. # HP_IGELAN_INTERFACE_NAME Name of interface (lan0, lan1...) # HP_IGELAN_VMTU Change the virtual maximum transmission unit. # (HP_IGELAN_SEND_CKO) must be enabled for TCP # HP_IGELAN_STATION_ADDRESS Station address of interface # HP_IGELAN_SPEED Change the speed/duplexity for 1000Base-T cards # HP_IGELAN_MTU Change the size of maximum transmission unit. # HP_IGELAN_FLOW_CONTROL Enable or Disable the card's flow control # HP_IGELAN_AUTONEG Enable or Disable auto negotiation for 1000Base-SX # HP_IGELAN_SEND_COAL_TICKS Change the number of send coalesced ticks. # HP_IGELAN_RECV_COAL_TICKS Change the number of receive coalesced ticks. # HP_IGELAN_SEND_MAX_BUFS Change the number of send buffer descriptors # HP_IGELAN_RECV_MAX_BUFS Change the number of receive buffer descriptors # HP_IGELAN_SEND_CKO Enable/Disable hardware TCP/UDP (IPv4) # HP_IGELAN_RECV_CKO Enable/Disable hardware TCP/UDP (IPv4) # HP_IGELAN_DIAG_THRESH Set the inbound packet rate threshold # The HP_IGELAN_INIT_ARGS are reserved by HP. They are NOT user changable. HP_IGELAN_INIT_ARGS="HP_IGELAN_STATION_ADDRESS HP_IGELAN_SPEED HP_IGELAN_MTU HP_IGELAN_FLOW_CONTROL HP_IGELAN_AUTONEG HP_IGELAN_SEND_COAL_TICKS HP_IGELAN_RECV_COAL_TICKS HP_IGELAN_SEND_MAX_BUFS HP_IGELAN_RECV_MAX_BUFS HP_IGELAN_VMTU" HP_IGELAN_INTERFACE_NAME[0]= HP_IGELAN_STATION_ADDRESS[0]= HP_IGELAN_SPEED[0]= HP_IGELAN_MTU[0]=100FD HP_IGELAN_FLOW_CONTROL[0]= HP_IGELAN_AUTONEG[0]= HP_IGELAN_SEND_COAL_TICKS[0]= HP_IGELAN_RECV_COAL_TICKS[0]= HP_IGELAN_SEND_MAX_BUFS[0]= HP_IGELAN_RECV_MAX_BUFS[0]= HP_IGELAN_VMTU[0]= HP_IGELAN_SEND_CKO[0]= HP_IGELAN_RECV_CKO[0]= HP_IGELAN_DIAG_THRESH[0]= # /sbin/init.d/inetd start
Note:
- Common network card configuartion files are: hpbase100, hpbtlanconf, hpgelanconf, hpigelanconf.