Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-17-2002, 04:22 PM
|
#1
|
LQ Newbie
Registered: Apr 2002
Location: Indiana
Distribution: Mandrake
Posts: 7
Rep:
|
How do I force speed and duplex?
I've installed Mandrake 8.2 and autodection of my hardware has everything up and running fine. However when I try to perform a backup of the Linux box across the network, tons of errors start showing up cisco switch port it's plugged into.
On our Windows and Netware servers, this is easily fixed by forcing speed to 100 and duplex to full both at the switch port and at the NIC of the server. This often has to be done to optimize client connections as well, so we just manually set everything to avoid problems.
In Linux however I don't see anything in netconf that allows me to put in the parameters for speed and duplex. Can someone please explain how I can do this? 
|
|
|
04-17-2002, 04:55 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
what cards are you using? are you sure it's not starting in the correct mode? restart the interface and check the end of the dmesg output. You might want to try mii-diag to force a mode. have a search for it, but i'm not sure what cards it will work with
|
|
|
04-17-2002, 05:11 PM
|
#3
|
LQ Newbie
Registered: Apr 2002
Location: Indiana
Distribution: Mandrake
Posts: 7
Original Poster
Rep:
|
I've got a 3com 3c905 10/100 adapter.
In know the port on the cisco switch where I'm pulgged in is forced to 100/full. I don't know how to check or set this in Linux which is why I'm asking. Surely it's not any harder to set this than what it would be on a Netware or NT box is it?
I'm a newbie to linux, so the previous suggestion went right over my head. I've never heard of dmesg and the only way I currently know to restart the card is to restart the workstation.
Need input! 
|
|
|
04-17-2002, 05:36 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
just run "service network restart" and then run "dmesg | tail" and check the last few lines, which will say what mode each NIC is running in. I'm fairly sure that the 3com cards do have a dos utility to edit the permanent settings on the card, have a search.
|
|
|
04-17-2002, 10:59 PM
|
#5
|
LQ Newbie
Registered: Apr 2002
Location: Indiana
Distribution: Mandrake
Posts: 7
Original Poster
Rep:
|
I'll look to see what I can find for a DOS utiliy.
So are you say "No you can't set the speed/duplex from the Linux OS as you can in other OS's"?
|
|
|
04-17-2002, 11:35 PM
|
#6
|
Member
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986
Rep:
|
Quote:
Originally posted by daveherrmann
So are you say "No you can't set the speed/duplex from the Linux OS as you can in other OS's"?
|
Yes, you can. You'll probably need the mii-diag tools, which can be found at scyld. Read the rest of the relevant info on the site for more information.
|
|
|
04-18-2002, 09:44 AM
|
#8
|
LQ Newbie
Registered: Apr 2002
Location: Indiana
Distribution: Mandrake
Posts: 7
Original Poster
Rep:
|
OK here's what I get:
The "service network restart" returns and invaild command message.
The "dmesg | tail" command returned a bunch of hex stuff that didn't mean anything to me.
I tried dmesh by itself and got a whole bunch of stuff, and one line kept repearing regularly:
eth0: Transmit error, Tx status register 82.
Probably a duplex mismatch. See Documentation/networking/vortex.txt
Flags; bus-master 1, dirty 986484(4) current 986485(5)
That would confirm to me I do have a duplex problem which is what we usually see on other platforms when NIC's are set to auto.
I've not yet found a DOS utility to set it permantly so I'm still looking for a solution.
Quote:
Originally posted by acid_kewpie
just run "service network restart" and then run "dmesg | tail" and check the last few lines, which will say what mode each NIC is running in. I'm fairly sure that the 3com cards do have a dos utility to edit the permanent settings on the card, have a search.
|
|
|
|
04-18-2002, 09:56 AM
|
#9
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
You can pass options to the network module when loading it. You said you had a 3c905 so the following page should explain enough:
http://www.scyld.com/network/vortex.html
Read the 'Special Usage Instructions' section.
|
|
|
04-18-2002, 01:39 PM
|
#10
|
LQ Newbie
Registered: Apr 2002
Location: Indiana
Distribution: Mandrake
Posts: 7
Original Poster
Rep:
|
Well that's a lot of good info, too bad it's all over my head. I guess I'm bewildered because there's no text or GUI menu where I can just go select the speed and duplex I want. Why is this such a hard thing to do in Linux when it's so easy in other OS's?
|
|
|
04-18-2002, 01:55 PM
|
#11
|
LQ Newbie
Registered: Apr 2002
Location: Indiana
Distribution: Mandrake
Posts: 7
Original Poster
Rep:
|
I did finally get "service network restart" to work. You didn't mention I had to be logged into the console as root (su) and as a relative newbie I didn't think about it for some time.
|
|
|
All times are GMT -5. The time now is 01:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|