1833696 Members
2993 Online
110062 Solutions
New Discussion

Re: etho = 100/full

 
Kevin_194
Advisor

etho = 100/full

Hi,

I see with
ethtool eth0
the Duplex is "half".

I want to change it to full.
ethtool -s -eth0 autoneg off
ethtool -s eth0 duplex full

It is OK but after restarting the server the configuration go back to "half".

I try setting the options in /etc/sysconfig/networking/ifcfg-ethX

ETHTOOL_OPTS="speed 100 duplex full autoneg off"

After restart the configuration go still back tu "half".

What is wrong?

Thank you
Kevin

14 REPLIES 14
Sergejs Svitnevs
Honored Contributor

Re: etho = 100/full

Assuming you have Redhat OS and your network card device is identified as eth0, you should add the following line:
ETHTOOL_OPTS="speed 100 duplex full autoneg off"
at the end of the file:
/etc/sysconfig/network-scripts/ifcfg-eth0

Just my 2 cents.
Regards
Kevin_194
Advisor

Re: etho = 100/full

Hi,

It is SUSE 9.
I do not have
/etc/sysconfig/network-scripts

and under
/etc/sysconfig/network/scripts/
I do not have ifcfg-eth0


Regards
Kevin
Ivan Ferreira
Honored Contributor

Re: etho = 100/full

Not sure about suse, but you should check your /etc/modules.conf or modprobe.conf if there are some parameters that may be conflicting with ethtool, also you could set the ethtool command in /etc/rc.local, this is the last script executed instead of configuring the the interface file.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Sergejs Svitnevs
Honored Contributor

Re: etho = 100/full

Please check out the output of "ethtool -i eth0".
if Ethernet driver is "e100", then in the "/etc/modules.conf" file add the options lines:
alias eth0 e100
options e100 e100_speed_duplex=4

if "e1000", then add
alias eth0 e1000
options e1000 Speed=100 Duplex=2

if "bcm5700", the add
alias eth0 bcm5700
options bcm5700 line_speed=100 full_duplex=1 auto_speed=0

then reboot your pc

Regards
Kevin_194
Advisor

Re: etho = 100/full

Hi,


"ethtool -i eth0" = driver e1000

There is no entry inside of "/etc/modules.conf" . So it is empty.
But the "etc/modprobe.conf" hast a lot of entries.
Where do I have to put:

alias eth0 e1000
options e1000 Speed=100 Duplex=2


Regards
Kevin
Vipulinux
Respected Contributor

Re: etho = 100/full

Hi Kevin

Just add
ethtool -s -eth0 autoneg off
ethtool -s eth0 duplex full

to /etc/rc.local

Cheers
Kevin_194
Advisor

Re: etho = 100/full

Hi,

sorry but there is no:
/etc/rc.local

Regards
Kevin
Steven E. Protter
Exalted Contributor

Re: etho = 100/full

Shalom Kevin,

if the force code does not work, replace the NIC.

If that does not work, suspect the network switch port configuration, which has not been mentioned.

Many older switches default to half duplex.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vipulinux
Respected Contributor

Re: etho = 100/full

Hi
What distribution are u using?

You can create a script that executes the commands:
ethtool -s -eth0 autoneg off
ethtool -s eth0 duplex full

and put the script in /etc/rc.d/rc3.d/

This will work

Cheers

Sergejs Svitnevs
Honored Contributor

Re: etho = 100/full

you only need to add:

alias eth0 e1000
options e1000 Speed=100 Duplex=2

to the "/etc/modules.conf" file and restart.
Andrew Cowan
Honored Contributor

Re: etho = 100/full

Kevin,

The problem here is that everyone here except you is talking Redhat not Suse.

The files are there but have different names. They're normally in "/etc/init.d" and are linked to "/etc/init.d/rc.d" and "rc?.d" and so you could put the "ethtool" commands in here.

The easiest way to configure your devices is via Yast-2 from the GUI, then select networking devices, and your Ethernet card. This should show all the detected and configured device.
Assuming that your NIC is already in the list, simply select it and select "Configure", then add the duplex as an option. Once saved this should survive reboots.

Andrew Cowan
Honored Contributor

Re: etho = 100/full

Kevin,

Further Suse documentation is available at:http://www.novell.com/documentation/

Good luck,
Andrew
dipesh_2
Regular Advisor

Re: etho = 100/full

Hi kevin


Use the following command

#mii-tool -F 100baseTx-FD eth0 (For full Duplex Speed)
#mii-tool -F 100baseTx-HD eth0 (For Half Duplex Speed)
Subramaniyan.S
Advisor

Re: etho = 100/full

Hi,

Propably the following link may help you.

http://www.cyberciti.biz/faqs/2006/01/linux-lan-card-find-out-full.php

rgds,

SSN
The sole advantage of power is that you can do more good