# Set NIC Speed in rc.local

**URL:** <https://forums.thehomestack.io/t/set-nic-speed-in-rc-local/55>\
**Category:** Linux - General\
**Created:** [February 16, 2003, 10:00am UTC](https://forums.thehomestack.io/t/set-nic-speed-in-rc-local/55 "2003-02-16T10:00:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robinhood1995](https://forums.thehomestack.io/letter_avatar_proxy/v4/letter/r/48db29/32.png) [@robinhood1995](https://forums.thehomestack.io/u/robinhood1995)\
**Post date:** [February 16, 2003, 10:00am UTC](https://forums.thehomestack.io/t/set-nic-speed-in-rc-local/55/1 "2003-02-16T10:00:56Z")

</div>

You have to use mii-tool to set the speed of your NIC.

Just a the line that appley to you in /etc/rc.d/rc.local file.

mii-tool -F 100baseTx-HD eth0  
mii-tool -F 100baseTx-FD eth0  
mii-tool -F 10baseT-HD eth0  
mii-tool -F 10baseT-FD eth0

Or

For example:

Assuming we are using the eepro100 driver you need to make the following entries in /etc/modules.conf

alias eth0 eepro100  
options eepro100 options=0x30

The various options are:  
Hex Decimal Meaning  
0x10 16 Force Full-Duplex operation (must be used with 0x20 or 0x40)  
0x20 32 Force 100mbps-only operation  
0x30 48 Force 100mbps-only with Full Duplex  
0x40 64 Force 10mbps-only  
0x50 80 Force 10mpps-only with Full Duplex

This information for a particular driver can usually be found in the doucmentation for that driver.
