Solved

eth0 startup options

Posted on 2000-03-30
11
385 Views
Last Modified: 2013-12-16
How do I supply a command-line option to the startup network scripts for the eth0 interface?  What I'm trying to do it have eth0 come up with "txqueuelen=35" instead of the default setting of 100.

Any ideas?
0
Comment
Question by:pogga
11 Comments
 
LVL 4

Expert Comment

by:kiffney
ID: 2669967
You should be able to just add a line  to /etc/conf.modules saying

options eth0 txqueuelen=35
0
 
LVL 1

Author Comment

by:pogga
ID: 2683217
That didn't work.  In fact that screws things up!!!
0
 
LVL 4

Expert Comment

by:kiffney
ID: 2686413
The way you figure out these things is by reporting the EXACT error message you saw when it 'didn't work', what it screws up and what happens that tells you it screws up.  You might also chip in with what ethernet driver you are  using and how you were doing it manually.  
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 1

Author Comment

by:pogga
ID: 2686625
I screws up because the eth0 card comes up with txqueuelen=100 (default) and I've noticed that I have no network access what-so-ever. I check my routing table and its as it should be. I checked (using ifconfig) eth0 and everything appears ok.

Any other ideas I should try?
0
 
LVL 4

Expert Comment

by:kiffney
ID: 2688319
You still didn't mention which ethernet driver you use.  If you installed the kernel source, you could look in /usr/src/linux/Documentation/network, find the type of driver you're using, and check the .txt file to see if that's a valid option - that, or the source for the driver in /usr/src/linux/drivers/net.  What driver is being loaded?  'lsmod' will tell you if it's a module.  Also post the contents of ifconfig with and without th option - also look through the output of 'dmesg' for info  about the ethernet card and any messages that appear when it's loaded.
0
 
LVL 1

Expert Comment

by:Sokka
ID: 2695924
When U install linux it will ask you for option for any parameters to pass. Eighther u can give there

or


U can give it in LILO boot
0
 
LVL 1

Author Comment

by:pogga
ID: 2699526
I may be wrong but lilo boot is not a place I'm gonna start throwing parameters at!
This is simply the network card I want to tweak, can I do this at the lilo prompt? (Apologies if I sound sceptical.)

Yes, you're correct. I could (and should) have entered the eth0 options at install time.  However, this is a development server and I cant just re-install 'cos I wanna tweak the network card.

Keep the help coming ...
0
 
LVL 1

Author Comment

by:pogga
ID: 2699530
Adjusted points from 100 to 150
0
 
LVL 4

Expert Comment

by:kiffney
ID: 2714533
OK, I finally understand your question.  I was thinking the txqueulen parameter was some driver parameter that you set with the module that drives your network card, when in fact it's set by 'ifconfig'.  All you need to do then (if you're using a  RedHat-like linux) is edit /etc/rc.d/rc.local and at the end of that file add the line

ifconfig eth0 txqueulen 35

since by that time the eth0 device will be up.   There is an if-up script in /sbin on redhat systems that you would think could handle this, but it looks to me like it won't.  
0
 

Accepted Solution

by:
roundst earned 150 total points
ID: 2756515
could you not put the options into the appropriate box in 'kernelcfg'?
0
 
LVL 1

Author Comment

by:pogga
ID: 2758467
That looks like the place to put it.
Thanks for the help everyone.
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

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

808 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