Networking Forums

Networking Forums > Computer Networking > Linux Networking > newbie: setting NIC speed?

Reply
Thread Tools Display Modes

newbie: setting NIC speed?

 
 
Steven Wong
Guest
Posts: n/a

 
      12-26-2003, 04:14 AM
Hi,

I just installed Red hat 9 and I have a D-Link 538 100/10 NIC. In
order to connect to my router I need to set the NIC's speed to 10mbps.
I tried putting MEDIA=10baseT in ifcfg-eth0 (which has no effect) and
"ifconfig eth0 media 10baseT" which gives an "operation not permitted"
error. I can do it from winXP (dual boot) so I know the NIC is
capable of switching speeds...

Any hints?
 
Reply With Quote
 
 
 
 
Sasa S Baksa
Guest
Posts: n/a

 
      12-26-2003, 08:30 AM
On 25 Dec 2003 21:14:50 -0800, (E-Mail Removed) (Steven Wong)
wrote:

>Hi,
>
>I just installed Red hat 9 and I have a D-Link 538 100/10 NIC. In
>order to connect to my router I need to set the NIC's speed to 10mbps.
>I tried putting MEDIA=10baseT in ifcfg-eth0 (which has no effect) and
>"ifconfig eth0 media 10baseT" which gives an "operation not permitted"
>error. I can do it from winXP (dual boot) so I know the NIC is
>capable of switching speeds...
>
>Any hints?


Why setting speed manualy? Isn't your NIC auto-sense medium? It
should work perfectly well in auto-sense mode - it works for me with
lot diferent cards and routers (AlliedTelesyn, D-Link, 3-COM, Corega,
built-in cards and AlliedTelesyn, D-Link, Cisco routers & switche's)

S. Baksa
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      12-26-2003, 02:23 PM
On 25 Dec 2003 21:14:50 -0800, Steven Wong <(E-Mail Removed)> wrote:
> Hi,
>
> I just installed Red hat 9 and I have a D-Link 538 100/10 NIC. In
> order to connect to my router I need to set the NIC's speed to 10mbps.
> I tried putting MEDIA=10baseT in ifcfg-eth0 (which has no effect) and
> "ifconfig eth0 media 10baseT" which gives an "operation not permitted"
> error. I can do it from winXP (dual boot) so I know the NIC is
> capable of switching speeds...
>
> Any hints?


Not sure how to do that in ifconfig (maybe your syntax is incomplete or
needs quotes around value), or how to do it in /etc/modules.conf. Have
you tried using mii-tool (see 'man mii-tool). Try it from the shell first
(as root, or 'su -') and see if something like following works:

mii-tool -F 10baseT-HD eth0

or if either full or half duplex would work:

mii-tool -A 10baseT-FD,10baseT-HD eth0

If one of these work, you need to figure out where to put an
/sbin/mii-tool statement in an init script after that interface is brought
up.

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
Steven Wong
Guest
Posts: n/a

 
      12-26-2003, 09:56 PM
sasa-(E-Mail Removed) (Sasa S Baksa) wrote in message news:<(E-Mail Removed)>...
> On 25 Dec 2003 21:14:50 -0800, (E-Mail Removed) (Steven Wong)
> wrote:
>
> >Hi,
> >
> >I just installed Red hat 9 and I have a D-Link 538 100/10 NIC. In
> >order to connect to my router I need to set the NIC's speed to 10mbps.
> >I tried putting MEDIA=10baseT in ifcfg-eth0 (which has no effect) and
> >"ifconfig eth0 media 10baseT" which gives an "operation not permitted"
> >error. I can do it from winXP (dual boot) so I know the NIC is
> >capable of switching speeds...
> >
> >Any hints?

>
> Why setting speed manualy? Isn't your NIC auto-sense medium? It
> should work perfectly well in auto-sense mode - it works for me with
> lot diferent cards and routers (AlliedTelesyn, D-Link, 3-COM, Corega,
> built-in cards and AlliedTelesyn, D-Link, Cisco routers & switche's)
>
> S. Baksa


My router only works at 10 mbps, so I need to lower the speed
 
Reply With Quote
 
Neil Horman
Guest
Posts: n/a

 
      12-26-2003, 11:59 PM
Steven Wong wrote:
> Hi,
>
> I just installed Red hat 9 and I have a D-Link 538 100/10 NIC. In
> order to connect to my router I need to set the NIC's speed to 10mbps.
> I tried putting MEDIA=10baseT in ifcfg-eth0 (which has no effect) and
> "ifconfig eth0 media 10baseT" which gives an "operation not permitted"
> error. I can do it from winXP (dual boot) so I know the NIC is
> capable of switching speeds...
>
> Any hints?

ethtool is the tool to use to do this over the (IIRC) now depricated
mii-tool. If you want to make the settings permanent, then use the
ETHTOOL_OPTS setting in the ifcfg file to select the ethtool options you
want set on a given interface when its brought up.
HtH
Neil

--
Neil Horman
Red Hat, Inc., http://people.redhat.com/nhorman
gpg keyid: 1024D / 0x92A74FA1, http://www.keyserver.net

 
Reply With Quote
 
Steven Wong
Guest
Posts: n/a

 
      12-27-2003, 04:20 AM
(E-Mail Removed) (David Efflandt) wrote in message news:<(E-Mail Removed)>...
> On 25 Dec 2003 21:14:50 -0800, Steven Wong <(E-Mail Removed)> wrote:
> > Hi,
> >
> > I just installed Red hat 9 and I have a D-Link 538 100/10 NIC. In
> > order to connect to my router I need to set the NIC's speed to 10mbps.
> > I tried putting MEDIA=10baseT in ifcfg-eth0 (which has no effect) and
> > "ifconfig eth0 media 10baseT" which gives an "operation not permitted"
> > error. I can do it from winXP (dual boot) so I know the NIC is
> > capable of switching speeds...
> >
> > Any hints?

>
> Not sure how to do that in ifconfig (maybe your syntax is incomplete or
> needs quotes around value), or how to do it in /etc/modules.conf. Have
> you tried using mii-tool (see 'man mii-tool). Try it from the shell first
> (as root, or 'su -') and see if something like following works:
>
> mii-tool -F 10baseT-HD eth0
>
> or if either full or half duplex would work:
>
> mii-tool -A 10baseT-FD,10baseT-HD eth0
>
> If one of these work, you need to figure out where to put an
> /sbin/mii-tool statement in an init script after that interface is brought
> up.



I get:
SIOCGMIIPHY on 'eth0' failed: Invalid argument

Is it possible that the current driver does not support setting the
speed of the NIC?

The driver cd that came with my NIC has a linux driver (A C file)
written for Red Hat 6, and I get all sorts of errors trying to compile
it.
 
Reply With Quote
 
Steven Wong
Guest
Posts: n/a

 
      12-27-2003, 04:24 AM
(E-Mail Removed) (Steven Wong) wrote in message news:<(E-Mail Removed). com>...
> sasa-(E-Mail Removed) (Sasa S Baksa) wrote in message news:<(E-Mail Removed)>...
> > On 25 Dec 2003 21:14:50 -0800, (E-Mail Removed) (Steven Wong)
> > wrote:
> >
> > >Hi,
> > >
> > >I just installed Red hat 9 and I have a D-Link 538 100/10 NIC. In
> > >order to connect to my router I need to set the NIC's speed to 10mbps.
> > >I tried putting MEDIA=10baseT in ifcfg-eth0 (which has no effect) and
> > >"ifconfig eth0 media 10baseT" which gives an "operation not permitted"
> > >error. I can do it from winXP (dual boot) so I know the NIC is
> > >capable of switching speeds...
> > >
> > >Any hints?

> >
> > Why setting speed manualy? Isn't your NIC auto-sense medium? It
> > should work perfectly well in auto-sense mode - it works for me with
> > lot diferent cards and routers (AlliedTelesyn, D-Link, 3-COM, Corega,
> > built-in cards and AlliedTelesyn, D-Link, Cisco routers & switche's)
> >
> > S. Baksa

>
> My router only works at 10 mbps, so I need to lower the speed



Sorry, I just re-read your post and I get what you mean now.
My router does switch between 100/10 mbps, but it is broken in that
connecting at 100 mbps does not work properly. I can connect fine at
10 mbps from WinXP so I know it is possible to use the router.
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      12-27-2003, 07:04 AM
On 26 Dec 2003 21:20:53 -0800, Steven Wong <(E-Mail Removed)> wrote:
> (E-Mail Removed) (David Efflandt) wrote in message news:<(E-Mail Removed)>...
>> On 25 Dec 2003 21:14:50 -0800, Steven Wong <(E-Mail Removed)> wrote:
>> > Hi,
>> >
>> > I just installed Red hat 9 and I have a D-Link 538 100/10 NIC. In
>> > order to connect to my router I need to set the NIC's speed to 10mbps.
>> > I tried putting MEDIA=10baseT in ifcfg-eth0 (which has no effect) and
>> > "ifconfig eth0 media 10baseT" which gives an "operation not permitted"
>> > error. I can do it from winXP (dual boot) so I know the NIC is
>> > capable of switching speeds...
>> >
>> > Any hints?

>>
>> Not sure how to do that in ifconfig (maybe your syntax is incomplete or
>> needs quotes around value), or how to do it in /etc/modules.conf. Have
>> you tried using mii-tool (see 'man mii-tool). Try it from the shell first
>> (as root, or 'su -') and see if something like following works:
>>
>> mii-tool -F 10baseT-HD eth0
>>
>> or if either full or half duplex would work:
>>
>> mii-tool -A 10baseT-FD,10baseT-HD eth0
>>
>> If one of these work, you need to figure out where to put an
>> /sbin/mii-tool statement in an init script after that interface is brought
>> up.

>
>
> I get:
> SIOCGMIIPHY on 'eth0' failed: Invalid argument
>
> Is it possible that the current driver does not support setting the
> speed of the NIC?
>
> The driver cd that came with my NIC has a linux driver (A C file)
> written for Red Hat 6, and I get all sorts of errors trying to compile
> it.


RH 9 (or any 2.4 kernel) should have already had 8139too module that
should work for your nic. You should have checked that before compiling
your own older module. Hope you did not mess anything up. Some systems
that try to recognize the nic, try to use rtl8139 module, which did not
work for my DFE-530TX+ nics, which I think have same chip as your 538.
But 8139too works fine. Maybe the newer module would work better
automatically with your router without having to do anything.

The older module might not have supported 'mii-tool' or other methods of
easily changing settings. Someone mentioned 'ethtool', but I do not know
what that is because it is not on any of my SuSE systems (maybe RH
specific or something very new).

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
Sasa S Baksa
Guest
Posts: n/a

 
      12-28-2003, 09:47 AM
On 26 Dec 2003 21:24:45 -0800, (E-Mail Removed) (Steven Wong)
wrote:

>(E-Mail Removed) (Steven Wong) wrote in message news:<(E-Mail Removed). com>...
>> sasa-(E-Mail Removed) (Sasa S Baksa) wrote in message news:<(E-Mail Removed)>...
>> > On 25 Dec 2003 21:14:50 -0800, (E-Mail Removed) (Steven Wong)
>> > wrote:
>> > Why setting speed manualy? Isn't your NIC auto-sense medium? It
>> > should work perfectly well in auto-sense mode - it works for me with
>> > lot diferent cards and routers (AlliedTelesyn, D-Link, 3-COM, Corega,
>> > built-in cards and AlliedTelesyn, D-Link, Cisco routers & switche's)
>> >
>> > S. Baksa

>>
>> My router only works at 10 mbps, so I need to lower the speed

>
>
>Sorry, I just re-read your post and I get what you mean now.
>My router does switch between 100/10 mbps, but it is broken in that
>connecting at 100 mbps does not work properly. I can connect fine at
>10 mbps from WinXP so I know it is possible to use the router.


Can you force your router NIC to be only 10BaseT then your card can
autosens wich speed is on other end of connection. This works for
Cisco router and firewall interfaces but for other routers I didn't
have oportunity or nead to try. Which brand/model is your router?

Sasa Baksa
 
Reply With Quote
 
Ken Hoffman
Guest
Posts: n/a

 
      12-28-2003, 09:49 AM
Neil Horman <(E-Mail Removed)> wrote in message news:<gM4Hb.57287$(E-Mail Removed) >...
> Steven Wong wrote:
> > Hi,
> >
> > I just installed Red hat 9 and I have a D-Link 538 100/10 NIC. In
> > order to connect to my router I need to set the NIC's speed to 10mbps.
> > I tried putting MEDIA=10baseT in ifcfg-eth0 (which has no effect) and
> > "ifconfig eth0 media 10baseT" which gives an "operation not permitted"
> > error. I can do it from winXP (dual boot) so I know the NIC is
> > capable of switching speeds...
> >
> > Any hints?

> ethtool is the tool to use to do this over the (IIRC) now depricated
> mii-tool. If you want to make the settings permanent, then use the
> ETHTOOL_OPTS setting in the ifcfg file to select the ethtool options you
> want set on a given interface when its brought up.
> HtH
> Neil


Do you have example syntax?

I tried this and can't get it to work. I too have a screwed up router
that only talkes to cards aet to 10 with autoneg off.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie: Acceptable LAN speed? PJ Home Networking 3 11-23-2006 07:39 PM
newbie question on speed Tippi Wireless Internet 0 01-31-2006 02:32 AM
Newbie help setting up dsl on verizon Dale Linux Networking 1 09-19-2005 04:23 AM
Network Newbie - Help in setting up ylonestar Wireless Internet 3 09-17-2004 08:23 PM
Newbie setting up wireless admiral giles Wireless Internet 1 04-26-2004 09:52 AM



1 2 3 4 5 6 7 8 9 10 11