LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-13-2002, 12:28 AM   #1
billy998168
LQ Newbie
 
Registered: Sep 2002
Location: philippines
Posts: 10

Rep: Reputation: 0
how to set half/full duplex on a lan card


hello out there any one there who knows how i can configure a lan card to operate at 10mbps half duplex, since my lan card on a win98 machine is operating in that mode since its a old card i cannot change that, i'm hoping that i can change the one on the linux since it states it is a 10/100mbps card
thanks for the help
 
Old 09-13-2002, 06:53 AM   #2
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
mii-tool -A 10baseT-HD #Sets what your card is advertizing
mii-tool -F 10baseT-HD #Forces your card to work at 10mbs half duplex.

You can try either of these commands.
I use the first one but have mine doing full duplex, I have to do this because I have a bad port on my router that only operates at 10mbs.

If it works then put it in your rc.local or S99local, which ever you use to do this at boot.
 
Old 09-13-2002, 10:13 AM   #3
billy998168
LQ Newbie
 
Registered: Sep 2002
Location: philippines
Posts: 10

Original Poster
Rep: Reputation: 0
sorry but please explain how do i do this since i am just 6 days into the linux thing and i dont really know that much in command line commands


mi-tool -A 10baseT -HD
mi-tool -F 10baseT-HD

i am using mandrake linux 8.2 and in what they call the kde window thanks
 
Old 09-13-2002, 10:48 AM   #4
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
open a terminal, any will do
su to root: su -
type: mii-tool -A 10baseT-HD or mii-tool -F 10baseT-HD

You should see a "Restarting auto negotiation"
And now everything should be good to dgo.

or the second way:
Find out where mii-tool is located:
find / -name mii*
the * is because I have seen it named differently

It should find it in /sbin/mii-tool
Now that you know where it is located, you need to find out what runlevel you are in:
type runlevel
If you bootup into X then more than likely it is going to be runlevel 5.
Now that you know what runlevel you are in you can edit the appropriate file.
/etc/rc.d/rc5.d/S99local

you can edit this file by any editor you are comfortable with.
You are going to add just one line:
/sbin/mii-tool -A 10baseT-HD

there is no space between 10base and -HD, so it'll be 10baseT-HD.

Now when you bootup it will always set your network speed to 10 baseT at half duplex.
 
Old 09-13-2002, 11:17 AM   #5
billy998168
LQ Newbie
 
Registered: Sep 2002
Location: philippines
Posts: 10

Original Poster
Rep: Reputation: 0
thanks hanzerik i did not see in your first message that is was mii-tool finally got it to swith over to half duplex 10mbs oh by the way i have been using the linux for 6 days and would like to know what do you call the command mii-tool and also i have asked a couple of guys in another site with about the same setup about how to connect my linux to the internet thru my win98 internet connection sharing machine my question is what gateway address do i put in my linux machine hey thanks again
 
Old 09-13-2002, 11:40 AM   #6
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
I think win98se's ICS uses 192.168.0.1 as the gateway for the clients. You should be able to run winipcfg on your win98 box and look at the properties of you ICS connection to find out. I havnt used 98 in a while.
 
Old 09-13-2002, 11:41 AM   #7
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
http://www.practicallynetworked.com/sharing/
 
Old 09-14-2002, 04:47 AM   #8
billy998168
LQ Newbie
 
Registered: Sep 2002
Location: philippines
Posts: 10

Original Poster
Rep: Reputation: 0
thanks i am able to connect to the net, and now studying how to use samba and my last topic would be how to connect to the internet thru modem connection to my lan, which is better dial up to a networked windows machine or server itself or thru the linux .
 
Old 03-19-2004, 05:33 PM   #9
sir_September
LQ Newbie
 
Registered: Mar 2004
Location: Australia
Distribution: Debian
Posts: 5

Rep: Reputation: 0
I too am having a problem with getting my nics running at the right speed, I have two Realtek cards connecting two Debian computers via a cross-over cable.

when I run the mii-tool I get the following

eth0: negotiated 100baseTx-FD flow-control, link ok
eth1: 10 Mbit, half duplex, no link
eth2: 10 Mbit, half duplex, no link


eth1 is the link between the two both of which is using the same nic, and the link is working but as you can see at 10 HD, regardsless if I connect eth1 to my 10/100 switch is claims the same thing.

Now I'm considering that it is the nic/drivers, so I am going to try purchasing a better nic, so if anyone could help me getting the RealTek 8139 chip set working at 100 FD, that would be great.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto half/full duplex eth0 mickeyboa Fedora 2 02-25-2009 07:36 AM
How to set Lan card to 10Mb full duplex in FC2 rickronn Linux - Networking 11 11-08-2004 03:41 AM
Half and Full Duplex in Debian swmok Linux - Networking 1 07-23-2004 12:46 AM
Full/Half Duplex??? LupusNebula Linux - Networking 8 02-04-2003 03:33 PM
nic - 10/100mbit - full/half-duplex aaronluke Slackware 2 10-17-2002 11:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:25 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
Open Source Consulting | Domain Registration