?
Solved

Changing ethernet setting permanently on Red Hat Linux

Posted on 2007-04-05
5
Medium Priority
?
336 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 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Creating a Samba server for a small office. Ubuntu Linux and Samba can breathe new life into a retired PC and save an office money on new hardware/software. Our example server will have two hard disks, one exclusively for storing shared data. …
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

777 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