
12-23-2005, 11:41 AM
|
|
Remote hands for Los Angeles
|
|
Join Date: Feb 2003
Location: Los Angeles, CA
Posts: 2,487
|
|
Force full duplex, this how?
ifcfg-eth0
ETHTOOL_OPTS="speed 100 duplex full autoneg off"
then restart the network?
For some reason i totally forgot.. I'm getting some slow speeds on a Cisco 2900 switch (on the switch).
-dmesg-
Code:
eth0: network connection up using port A
speed: 100
autonegotiation: yes
duplex mode: half
flowctrl: none
irq moderation: disabled
scatter-gather: enabled
thx 
__________________
Remote Hands and Your Local Tech for the Los Angeles area.
(310) 573-8050 - LinkedIn
|

12-23-2005, 02:53 PM
|
|
Remote hands for Los Angeles
|
|
Join Date: Feb 2003
Location: Los Angeles, CA
Posts: 2,487
|
|
hmm well that didn't work..
I did a full reboot dmesg shows the same, any ideas?
logs say this..
Code:
Dec 23 07:56:43 webby ifup: Cannot get current device settings: Operation not supported
Dec 23 07:56:43 webby ifup: not setting speed
Dec 23 07:56:43 webby ifup: not setting duplex
Dec 23 07:56:43 webby ifup: not setting autoneg
is it the switch?
MotherBoard Asus P4P-800-E Deluxe
__________________
Remote Hands and Your Local Tech for the Los Angeles area.
(310) 573-8050 - LinkedIn
Last edited by Jeremy; 12-23-2005 at 03:00 PM.
|

12-23-2005, 08:14 PM
|
|
Telecommunication operator
|
|
Join Date: May 2002
Location: Russia, Moscow
Posts: 1,425
|
|
on linux you can use mii-tools as i remember for check what happen with your nic (include his capabilities)
__________________
Robobill.net Dedicated server since 2002, RIPE NCC member, LIR, AS25478
|

12-23-2005, 09:55 PM
|
|
Disabled
|
|
Join Date: Dec 2004
Posts: 227
|
|
You can either as someone suggested use mii-tool
# mii-tool
No opitions, tells you the status of the link
# mii-tool eth0 -F 100baseTx-FD
will force 100Mb Full Duplex .. won't always work though
# mii-tool eth0 -A 100baseTx
Will advertise both full and half duplex. If your switch link is locked at half duplex, then you need to make the switch port full duplex as well.
You can use ethtool from command line too
# ethtool -s eth0 speed 100 duplex full autoneg off
or
# ethtool eth0
to see the supported options, no need to restart the network when changing the interface via mii-tool or ethtool.
# mii-tool
Will tell you where you are at and where you finish up.
Last edited by DigitalN; 12-23-2005 at 09:59 PM.
|

12-24-2005, 01:37 AM
|
|
Web Hosting Master
|
|
Join Date: Feb 2003
Location: Detroit
Posts: 795
|
|
Both ends of the connection need to have the same setting. Set the switch to 100/full first then the machine. most of the time, auto does work well. If your switch is not set to auto right now try that first.
|

12-24-2005, 02:59 AM
|
|
Predatory Poster
|
|
Join Date: Jul 2003
Location: Goleta, CA
Posts: 5,550
|
|
Auto negotiate can cause a lot of problems though. I agree with setting both sides as the above poster stated.
__________________
Patron: I'd like my free lunch please.
Cafe Manager: Free lunch? Did you read the fine print stating it was an April Fool's joke.
Patron: I read the same way I listen, I ignore the parts I don't agree with. I'm suing you for false advertising.
Cafe Owner: Is our lawyer still working pro bono?
|

12-24-2005, 03:17 AM
|
|
Web Hosting Master
|
|
Join Date: Feb 2003
Location: Detroit
Posts: 795
|
|
Quote:
|
Originally Posted by pixelized
Auto negotiate can cause a lot of problems though. I agree with setting both sides as the above poster stated.
|
Setting both sides also applies to 'auto'. most of the problems with using auto negotiate that I have seen is one side was not set the same.
You have a machine set to auto and the switch set to 100/full you may have problems.
|

12-24-2005, 07:30 AM
|
|
Disabled
|
|
Join Date: Dec 2004
Posts: 227
|
|
The problems I have seen setting network connection parameters with mii-tool has been due to a crappy switch, that advertises either half or full duplex.. no autoneg
In these cases, ethtool saves the day by making your interface not try to autonegotiate. (mii-tool does not work in these cases I find)
So imho, you really need to look at your switch first, as that is likely the cause of the problem.
|

12-24-2005, 07:51 AM
|
|
Remote hands for Los Angeles
|
|
Join Date: Feb 2003
Location: Los Angeles, CA
Posts: 2,487
|
|
Hmmm the ports are forced 100mbps/fd.
i still get the error
Code:
Dec 23 07:56:43 webby ifup: Cannot get current device settings: Operation not supported
Dec 23 07:56:43 webby ifup: not setting speed
Dec 23 07:56:43 webby ifup: not setting duplex
Dec 23 07:56:43 webby ifup: not setting autoneg
__________________
Remote Hands and Your Local Tech for the Los Angeles area.
(310) 573-8050 - LinkedIn
|

12-24-2005, 07:57 AM
|
|
Disabled
|
|
Join Date: Dec 2004
Posts: 227
|
|
What does
# mii-tool
reveal?
What is your switch set to?
|

12-24-2005, 11:26 AM
|
|
Remote hands for Los Angeles
|
|
Join Date: Feb 2003
Location: Los Angeles, CA
Posts: 2,487
|
|
Code:
[root@webby ~]# mii-tool eth0
SIOCGMIIPHY on 'eth0' failed: Bad address
also trying doesnt work
Code:
[root@webby ~]# mii-tool -F 100baseTx-FD eth0
SIOCGMIIPHY on 'eth0' failed: Bad address
NIC - Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet Controller
my route table looks fine, i can shell in and out of it.
__________________
Remote Hands and Your Local Tech for the Los Angeles area.
(310) 573-8050 - LinkedIn
|

12-25-2005, 07:48 AM
|
|
Remote hands for Los Angeles
|
|
Join Date: Feb 2003
Location: Los Angeles, CA
Posts: 2,487
|
|
Thank you all for your help so far.
on the switch the command out puts this:
Code:
interface FastEthernet0/9
description LAX09-DM
duplex full
speed 100
switchport access vlan 30
spanning-tree portfast
dmesg
Code:
eth0: network connection up using port A
speed: 100
autonegotiation: yes
duplex mode: half
flowctrl: none
irq moderation: disabled
scatter-gather: enabled
-------
divert: allocating divert_blk for eth0
eth0: Yukon Gigabit Ethernet 10/100/1000Base-T Adapter
PrefPort:A RlmtMode:Check Link State
mii-tool - out puts
Code:
[root@webby ~]# mii-tool
SIOCGMIIPHY on 'eth0' failed: Bad address
no MII interfaces found
__________________
Remote Hands and Your Local Tech for the Los Angeles area.
(310) 573-8050 - LinkedIn
|

12-27-2005, 04:44 AM
|
|
Disabled
|
|
Join Date: Dec 2004
Posts: 227
|
|
Try
# ethtool -s eth0 speed 100 duplex full autoneg off
Does that work for you?
Failing that, I would look at changing the switch port and then the network card interface.
|

12-28-2005, 05:44 AM
|
|
Remote hands for Los Angeles
|
|
Join Date: Feb 2003
Location: Los Angeles, CA
Posts: 2,487
|
|
Code:
[root@webby ~]# ethtool -s eth0 speed 100 duplex full autoneg off
Cannot get current device settings: Operation not supported
not setting speed
not setting duplex
not setting autoneg
O no...
__________________
Remote Hands and Your Local Tech for the Los Angeles area.
(310) 573-8050 - LinkedIn
|

12-28-2005, 05:48 AM
|
|
Disabled
|
|
Join Date: Dec 2004
Posts: 227
|
|
It might be best to try setting your switch to 'autonegotiate' rather than forcing full duplex, then set the interface to 'autonegotiate' too.
Try another network card if all fails, looks like your card doesn't want to be played around with, maybe a driver issue or just the card won't take the changes.
I'd try autonegotiate both ends, different switch port, then try another nic card.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|