LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-12-2006, 01:08 AM   #1
tijo.thomas
Member
 
Registered: Feb 2006
Location: bangalore
Posts: 34

Rep: Reputation: 15
configure the network speed and duplex settings


Hi All,

How do you configure the network speed and duplex setting of an ethernet in Linux?

Can somebody help me out in this? What are the possible ways to do this??

Appreciate your helps,
 
Old 06-12-2006, 01:13 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well normally it should all be done automatically, but you can use ethtool and mii-tool to force these things on most cards.
 
Old 06-12-2006, 04:54 AM   #3
penguintutor
Member
 
Registered: Jun 2006
Location: UK
Distribution: Ubuntu, Mandriva, Redhat and Fedora
Posts: 118

Rep: Reputation: 15
The following commands can be used to set eth0 to 100M Full-duplex

Using mii-tool

mii-tool -F 100baseTx-FD eth0

If you want this to be applied at system startup, then you would need to add the entry to your /etc/rc.local file (or into an init.d file if you don't have an rc.local).

Using ethtool

ethtool -s eth0 speed 100 duplex full autoneg off

This can be added to /etc/rc.local as mentioned above. Alternatively if you have the file:
/etc/sysconfig/network-script/ifcfg-eth0

You can add the entry:
ETHTOOL_OPTS="speed 100 duplex full autoneg off"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set network card Speed/duplex in Vector Linux? si-diablo Linux - Networking 1 06-20-2005 04:46 PM
Network Card Problem with Duplex/Link Speed Books Linux - Networking 1 08-28-2004 03:59 PM
fixed ethernet card duplex and speed settings at boot codeape Debian 2 02-14-2004 01:23 PM
how to configure network full duplex 100Mb ewlnxnewB Linux - Networking 1 01-28-2004 05:25 PM
Change my Network card link speed/duplex mode in Linux Salihou Linux - Networking 1 12-22-2003 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration