Ok at the moment I have a hub whit 5 computers connected to it. It's a 10/100 NetGear hub.
Ok I heard that there is some command I can run or a file I edit or something like that. But what the command/file/script/whatever does is tells you what connect speed it's connecting to the hub to.
I can force all ports to be fullduplex but doesn't mean it's going to connect at that.
What would be the best way to see what connection speed it would be running at the hub to the computer?
so far i know are hubs always half-duplex (switches are most tiems full duplex).this is because they make your network that way that it looks like that all connections are on the same line. if you send with one computer something to the hub they all recieve it.
Here is some stuff from my SunOS notes. Note that other OS'es will probably handle stuff like this differently.
You can see the settings for the interface card with:
ndd -get /dev/hme link_speed
(0=10 mb and 1=100 mb)
ndd -get /dev/hme link_mode
(0=half and 1 = full)
But this doesn't mean that the hub port is in agreement. Hubs that can switch speeds and duplexes with have some way to check the port.
You want 100 mb and full-duplex. Usually the speed will be right. But often the duplex is wrong. You don't want to use autonegotiation, it fails too often.
If your interface card has the wrong settings, you can fix without a reboot by doing:
ndd -set /dev/hme instance 0
ndd -set /dev/hme adv_100T4_cap 0
ndd -set /dev/hme adv_100fdx_cap 1
ndd -set /dev/hme adv_100hdx_cap 0
ndd -set /dev/hme adv_10hdx_cap 0
ndd -set /dev/hme adv_autoneg_cap 0
(The last one will take a few seconds.)
The permanent fix so things will be cool after next reboot is to add some lines to /etc/system:
set hme:hme_adv_autoneg_cap=0
set hme:hme_adv_100T4_cap=0
set hme:hme_adv_100fdx_cap=1
set hme:hme_adv_100hdx_cap=0
set hme:hme_adv_10fdx_cap=0
set hme:hme_adv_10hdx_cap=0