Solved

Changing ethernet setting permanently on Red Hat Linux

Posted on 2007-04-05
5
314 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
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:cheesygit182
Comment Utility
What distro you are using?

~cheesygit182
0
 

Author Comment

by:mhorrocks
Comment Utility
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
Comment Utility
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
Comment Utility
ty :)
0
 

Author Comment

by:mhorrocks
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now