Solved

Changing ethernet setting permanently on Red Hat Linux

Posted on 2007-04-05
5
331 Views
Last Modified: 2013-12-06
I used the following command to change the settings on eth0:

ethtool -s eth0 autoneg off
ethtool -s eth0 speed 10
ethtool -s eth0 duplex full

This did indeed change my settings, but when the linux server was rebooted, it reverted back to:
autoneg on
duplex half

How do I make the change permanent?
0
Comment
Question by:mhorrocks
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:cheesygit182
ID: 18861531
What distro you are using?

~cheesygit182
0
 

Author Comment

by:mhorrocks
ID: 18920928
Question no longer valid.  Need to delete the question.

Would like to offer cheesygit182 100 points for at least responding to the question.
0
 
LVL 4

Accepted Solution

by:
cheesygit182 earned 500 total points
ID: 18927272
hi, to delete the question, you need make a request here:
http://www.experts-exchange.com/Community_Support/General/newQuestionWizard.jsp

Hope you got it sorted?
Thanks for the offer, but I failed to even read the title!... lol

Just in case you are still wondering, or for anybody else that finds this question:

You can use ethtool to set different variables on an NIC card from the command line, something like this:
ethtool -s eth0 speed 10 duplex full autoneg off
but this change is lost as soon as you deactivate the NIC card, or reboot.
The *proper* way to make this change "permanent" is by editing the ethtool configuration file.
To do what you want to do, you could try this:

#
# File: /etc/sysconfig/network-scripts/ifcfg-eth0
#
DEVICE=eth0
IPADDR=192.168.1.100
NETMASK=255.255.255.0
BOOTPROTO=static
ONBOOT=yes
ETHTOOL_OPTS="speed 10 duplex full autoneg off"

The *newbie* way to make something happen at every startup is to add this command in your /etc/rc.local file which is run at the end of every reboot:
ethtool -s eth0 speed 10 duplex full autoneg off

Hope this helps

~cheesygit182
0
 
LVL 4

Expert Comment

by:cheesygit182
ID: 18927755
ty :)
0
 

Author Comment

by:mhorrocks
ID: 18930884
A very informative answer.  Thank you for being clear and concise about the solution.  Your answer should help out others who are learning by doing.

Again, thank you!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question