LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-09-2003, 07:53 AM   #1
dunkyb
Member
 
Registered: Nov 2002
Distribution: Debian testing.
Posts: 143

Rep: Reputation: 15
ifconfig + full duplex


hey

i want to STOP my network cards in linux (RealTek 8139 based cards) from doing auto negotiation, with my cable modem and 10/100 switch. I want to force them both to use 100mb/s full duplex.

I know i can do with this with mii-diag tool, mii-diag -F 100baseTx-FD eth0, etc .. but this only works on interfaces already initialised.

Is there any way you can use ifconfig to set the link speed, and turn off auto negotiation? There is little point in the card negotiating, then forcing it to switch off negotiation, as far as i can see...

Cheers

Duncan
 
Old 04-14-2003, 03:37 PM   #2
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Dude, hate to be a twerp, but:

ifconfig eth0 media 10baseT

Its in the man page, bout halfway down.

Cheers,

Finegan
 
Old 04-14-2003, 06:26 PM   #3
dunkyb
Member
 
Registered: Nov 2002
Distribution: Debian testing.
Posts: 143

Original Poster
Rep: Reputation: 15
nice try ..

nice try, but unfortunately it says port: operation not permitted.
 
Old 04-16-2003, 06:30 AM   #4
malcidragon
Member
 
Registered: Feb 2002
Location: Leeds UK
Distribution: Fedora Core 3
Posts: 67

Rep: Reputation: 15
If you have a look at the Documenation for the module you load
you should be able to pass it "option=0x200" or something like
that, for my eepro100 cards this works, and sets 100Mbit/Full duplex.
This is going to be different for different cards/drivers, but if you
look for the docs. for that module in the kernel source it
should (hopefully) tell you what option to use, and what others
are avaliable, they are often interesting to read (in a very sad
geeky way )
Auto negotiate rarely works anyway in real world use, and
rarely sets to FULL duplex, usu. to 1/2 duplex.
It's slightly easier to use mii-tool/mii-diag (easier NOT better)
rather than using passing options to modules.
 
Old 04-16-2003, 06:58 AM   #5
dunkyb
Member
 
Registered: Nov 2002
Distribution: Debian testing.
Posts: 143

Original Poster
Rep: Reputation: 15
?

ok i don't think i understood all of that... my network drivers (ne2kpci) are compiled into the kernel
 
Old 05-10-2003, 05:04 PM   #6
malcidragon
Member
 
Registered: Feb 2002
Location: Leeds UK
Distribution: Fedora Core 3
Posts: 67

Rep: Reputation: 15
ah

If its compiled into the kernel then you will have to
pass the parameters to the driver at boot time with grub/lilo
I am not sure what to pass here though, there should be something
on google, I'll have a look and get back to you.
I have been using RH 7.2 at work and set the cards to
100Mbit/Full Duplex using mii-tool and this seems to have
stuck even after reboot
It isn't possible to configure a network card before it's initalised
(I would imagine that ifconfig starts the eth0 interface and then
applies parameters afterwards [just afterwards] )
Using mii-diag you might be able to change the default settings
though?
Never used mii-diag much, you'll have to search for this one.
Its a hard program to get hold of (not that hard really)
Neat though solved a problem on my eepro cards though.

Cheers,

Malcolm
 
Old 05-10-2003, 05:18 PM   #7
saturn_vk
Member
 
Registered: Feb 2003
Location: Sofia
Distribution: slackware
Posts: 104

Rep: Reputation: 15
what exactly are the advantages of full duplex compared to half?
 
Old 05-10-2003, 05:55 PM   #8
dunkyb
Member
 
Registered: Nov 2002
Distribution: Debian testing.
Posts: 143

Original Poster
Rep: Reputation: 15
as far as i understand it, in full duplex mode data can be sent in both directions at the same time (up and down), where as in half duplex, data can only be sent in one direction at a time.

Think of a telephone call.. This is full duplex, as you can both talk and be heard at the same time. However, a walkie-talke radio is half duplex, since only one person can speak at any one time.

Hope this makes it clear.

Getting back on topic, I can successfully force the cards into a certain mode, but only once already auto-negotiated.. I dont think this is my problem any more.. I think it is more to do with NTL's UBR, although not 100% sure. The settings didn't seem to save after a reboot for me, either..

Duncan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
full duplex chazzwozzer Linux - Networking 1 02-07-2005 02:11 PM
OSS and Full duplex !!!! OneManArmy Debian 1 06-25-2004 09:00 PM
Full duplex sound InSane103 Linux - Hardware 15 05-12-2004 11:58 PM
full duplex with two NICs seriv Linux - Networking 1 11-09-2003 01:52 AM
Full/Half Duplex??? LupusNebula Linux - Networking 8 02-04-2003 03:33 PM


All times are GMT -5. The time now is 01:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration