geplaatst door: Macceraar
Ik wil graag de snelheid van m'n netwerkkaart (in 'n iMac?:P) handmatig in kunnen stellen. De switch hier pakt m'n iMac namelijk als 100m/s full-duplex terwijl 't half-duplex is. (dat vertraagt flink! Ik haal vaak wel bijna 1m/s!)

Ik heb 't al met Cocktail (2.5) en ifconfig geprobeerd.

Cocktail geeft gewoon een error (zonder nuttige info:crazy:) dat ie niet aangepast kan worden, en ifconfig en0 media 100baseTX mediaopts full-duplex (ook half-duplex of niets) zegt ifconfig: SIOCSIFMEDIA: Operation not supported.
Maar volgens mij moet 't kunnen, want ifconfig en0 zegt (gedeelte ervan):
media: autoselect (100baseTX [half-duplex]) status: active
supported media: none autoselect 10baseT/UTP [half-duplex] 10baseT/UTP [full-duplex] 100baseTX [half-duplex] 100baseTX [full-duplex]

(waar ['s en ]'s staan horen <'s en >'s te staan, en [ code ] werkt niet)

Ik heb OS 10.2.8 (maar 't ging ook niet in 10.2.6)

(Bewerkt door Macceraar om 9:40, 29-09-2003)

Snelheid netwerkkaart handmatig instellen gaat niet
26 september 2003 - 11:17    reactie #1
geplaatst door: RVW
Lukt het ook niet wanneer je inlogt als root?
My new computer's got the clocks, it rocks! But it was obsolete before I opened the box.
You say you've had your desktop for over a week? Throw that junk away, man, it's an antique!
Your laptop is a month old? Well, that's great. If you could use a nice, heavy paperweight...
Snelheid netwerkkaart handmatig instellen gaat niet
26 september 2003 - 11:47    reactie #2
geplaatst door: jeffer
Ik heb dat probleem toen opgelost door de switch te herstarten.

Greetz,
Jeffer

Snelheid netwerkkaart handmatig instellen gaat niet
26 september 2003 - 15:27    reactie #3
geplaatst door: Macceraar
Geen van beiden:-(
(enne, die switch die hier is is 100m)

@RVW: In de Terminal heb ik su - gebruikt. (die min zorgt ervoor dat ie niet na 5 minuten ofzo stopt)
En Cocktail als een admin en later als root.

Inmiddels heb ik 'm met ifconfig ook al geprobeerd op 10 mbit te zetten (met die switch die natuurlijk 10m pakt en een hub van 10m. Cocktail geeft weer die zelfde melding en ifconfig zegt ifconfig: SIOCSIFMEDIA: Operation not supported als ik bij media 10baseT/UDP invul (bij alle duplex-mogelijkheden, inclusief niet opgeven).

P.S. Ik ben weg tot morgenavond.

Snelheid netwerkkaart handmatig instellen gaat niet
26 september 2003 - 15:59    reactie #4
geplaatst door: mediaddict
hoi,

ik denk dat ik een gelijkaardig probleem heb:
Ik zit nu achter een 10/100 router (switch) en op mijn powerbook (megabit ethernet) lukt het na een week proberen nog steeds niet een verbinding te maken. Soms heb ik een IP, soms niet, maar surfen, mail ophalen ed lukt niet. Als ik dezelfde kabel in mijn iMac steek, dan werkt alles perfect (behalve om de zoveel tijd een disconnect door de router ... valt daar niks aan te doen?).

Nu heb ik op een partitie van mijn PoBo een preview van Panther draaien en daar heb ik gemerkt dat de snelheid van ethernet gemakkelijk te regelen valt. Als het probleem tenminste daar ligt ...

Ik ben ten einde raad na een week frustratie. Ik major dit jaar in multimedia en een internetverbinding is toch wel een voorwaarde.

HELP?

Jeroen

Snelheid netwerkkaart handmatig instellen gaat niet
9 oktober 2003 - 10:50    reactie #5
geplaatst door: Macceraar
Er is hier inmiddels een andere switch en daar pakt autoselect probleemloos 100m en full-duplex.:thumbs-up:
Ik denk nu trouwens dat supported media (zie stukje terug) alleen aangeeft wat autoselect kan kiezen. Maar wat maakt dat uit; 't werkt nu!:thumbs-up:

@Jeroen (mediaddict): Hoe gaat 't nu met je probleem?

Snelheid netwerkkaart handmatig instellen gaat niet
9 oktober 2003 - 12:52    reactie #6
geplaatst door: Macgek
Beetje lange tekst. Deze werkt wel!

Groet,

Macgek
------------------------------------------------------------------------
Use the procedure below to create a startup item script that sets the Ethernet speed and duplex settings for your network interface(s).

DISCUSSION


Important:

*   This document discusses an advanced procedure, intended primarily for institutional networks on which certain third-party hardware precludes automatic negotiation of a full duplex connection. If you are not familiar with command line interface and manual configuration in general, you should seek assistance. If you do not follow these steps precisely, the script may not work, which could prevent the computer from starting up normally.
*   AppleCare does not offer any type of free technical support on setting up or creating Startup Items. Contract based support for setting up and creating Startup Items, and creating shell scripts is only offered by Apple Professional Services. For more information on Apple Professions Services see ( http://www.apple.com/services/ ).

Note: You may not be able to configure the available options on some Ethernet network interfaces and network connections. Use the ifconfig command to test a particular option before using it in the script. You cannot set the speed and duplex settings for AirPort Cards.

Follow these steps to create a script that is executed during startup, setting the speed and duplex settings:

1. Open Terminal (/Applications/Utilities).
2. Type: cd /Library
3. Press Return.
4. Type: mkdir StartupItems
5. Press Return. (If you encounter an error, continue to step 6.)
6. Type: cd StartupItems
7. Press Return.
8. Type: mkdir SpeedDuplex
9. Press Return.
10. Type: cd SpeedDuplex
11. Press Return.
12. Type: pico SpeedDuplex
13. Press Return.
14. In the pico editor, paste in the following text.

Begin copying below this line.
------------------------------------------------------------------------


#!/bin/sh

##
# Configure network interface speed and duplex settings
#
# Note: speed and duplex settings are not supported on AirPort cards
#
##

. /etc/rc.common

StartService ()
{
ConsoleMessage "Configuring Speed and Duplex"

##
# Speed and Duplex
##

if [ "${SPEEDDUPLEX:=-NO-}" = "-YES-" ]; then

# /sbin/ifconfig en0 media 10baseT/UTP mediaopt full-duplex
# /sbin/ifconfig en0 media 100baseTX mediaopt full-duplex
# /sbin/ifconfig en0 media 1000baseTX mediaopt full-duplex
#
# /sbin/ifconfig en0 media 10baseT/UTP mediaopt half-duplex
# /sbin/ifconfig en0 media 100baseTX mediaopt half-duplex
# /sbin/ifconfig en0 media 1000baseTX mediaopt half-duplex

fi

}

StopService ()
{
return 0
}

RestartService ()
{
return 0
}

RunService "$1"
------------------------------------------------------------------------

End copying above this line.

15. If you want to set the speed and duplex of an interface, uncomment one of the six speed lines (such as "/sbin/ifconfig en0 media 100baseTX mediaopt full-duplex") that you want for that interface. If you leave all six lines commented, then the interface remains in auto-select mode.

Note: Removing the number sign (#) from the beginning of a line uncomments it. Typically, en0 is the interface name for the Built-in Ethernet port, and en1 is interface name for the AirPort Card. This is not always the case. To confirm that a network port is associated with a particular interface name, note its Ethernet Address on the TCP/IP tab of the Network preference pane and compare that to the output of the ifconfig command when entered in the Terminal.

16. When you have finished customizing the file, save it (press Control-O), press Return, and exit pico (press Control-X).
17. Type: chmod 755 SpeedDuplex
18. Press Return.
19. Type: pico StartupParameters.plist
20. Press Return.
21. In the pico editor paste in the following text.

Begin copying below this line.
------------------------------------------------------------------------


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>Description</key>
   <string>Can set Speed and Duplex</string>
   <key>OrderPreference</key>
   <string>None</string>
   <key>Provides</key>
   <array>
      <string>SpeedDuplex</string>
   </array>
   <key>Requires</key>
   <array>
      <string>Network Configuration</string>
   </array>
</dict>
</plist>
------------------------------------------------------------------------

End copying above this line.

22. When you have finished customizing the file, save it (Control-O), press Return, and exit pico (Control-X).
23. Type: chmod 755 StartupParameters.plist
24. Press Return.
25. Type: sudo pico /etc/hostconfig
26. When prompted, enter your account password.
27. Press Return.
28. In the pico editor, add this line at the bottom:

SPEEDDUPLEX=-YES-

29. Save it (Control-O), press Return, and exit pico (Control-X).


When you restart the computer, speed and duplex settings are set for the interface that you specified.

Notes

1. The speed and duplex setting will be reset after changing a Location, waking the computer from sleep, or changing the state of the network interface. To use the script again without having to restart, enter the following command:

sudo SystemStarter start SpeedDuplex

2. If you experience any issues or do not want to set speed and duplex during startup, you can turn off the script by changing the SPEEDDUPLEX line in /etc/hostconfig to:

SPEEDDUPLEX =-NO-

Snelheid netwerkkaart handmatig instellen gaat niet
9 oktober 2003 - 19:50    reactie #7
geplaatst door: mediaddict
Ik heb een hub ertussen gehangen (10/100) en nu werkt het wel. Het werkt hier namelijk zo: modem > router > hub > PowerBook
Volgens mijn kotbaas is de hub een zeer oud model, dus ik denk wel dat het daar aan ligt, een 2de (recentere) hub ertussen en het werkt. Binnenkort komt hier een airport babsisstation en in denk (hoop) dat daarmee het probleem ook opgelost is. (modem > router > hub > babsisstation > PowerBook)

In panther kun je in systeemvoorkeuren de snelheid van je netwerkkaart instellen, maar dat werkt ook niet voor me.

_J_