A way to set link speed and Duplex Programatically?

M

Mark

Hey All-


Is there a way to set link speed and duplex with a setup script using
c++ or vbs, or anything at all? I'm trying to make a setup program that
will automatically set IP, link speed and duple, PC name, and a couple
other things. It seems link speed and duplex is a tough one. I know on
linux you can force it using mii-tools, anything similar in XP/2k?

Very Respectfully,

Mark Roman
 
G

Guest

Well you dont say what hardware you run,if its intel,then download the
software.
With intel,in xp,network connections,open properties for the adapter,select,
configure,then an intel window pops up and in that you can set "link speed"
and
duplex...
 
A

Adam Leinss

Well you dont say what hardware you run,if its intel,then
download the
software.
With intel,in xp,network connections,open properties for the
adapter,select, configure,then an intel window pops up and in
that you can set "link speed"
and
duplex...

The problem is he wants to do it via a script. Check out the web site
below for the blog entry "Disabling Sound During Sysprep". I think
that will point you in the right direction.

Adam
 
G

Guest

Mark,
Some time ago I was looking into doing the same thing but ended up not
having to complete the project since our entire enterprise standardized on
Auto switching. I didn't complete the code but I did have it figured out!

Check out the following Reg keys:

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0008]
"TxPacketDescCnt"="200"
"RxStdDescCnt"="200"
"RxCoalescingTicks"="10"
"TxCoalescingTicks"="30"
"RxMaxCoalescedFrames"="5"
"TxMaxCoalescedFrames"="200"
"Characteristics"=dword:00000084
"BusType"="5"
"ComponentId"="pci\\ven_14e4&dev_165e&subsys_0890103c"
"Enable8021p"="0"
"FlowControlCap"="2147483648"
"LargeSendOffload"="1"
"RequestedMediaType"="6"
"TaskOffloadCap"="63"
"WakeUpModeCap"="3"
"WolSpeed"="0"
"InfPath"="oem27.inf"
"InfSection"="BCM5705MA2.XpInst"
"InfSectionExt"=".NTx86"
"ProviderName"="Broadcom"
"DriverDateData"=hex:00,40,00,ec,2b,1f,c3,01
"DriverDate"="5-21-2003"
"DriverVersion"="6.64.0.0"
"MatchingDeviceId"="pci\\ven_14e4&dev_165e&subsys_0890103c"
"DriverDesc"="Broadcom NetXtreme Gigabit Ethernet"
"NetCfgInstanceId"="{13B14DD4-AA31-4A55-9735-B821CD207A8B}"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0008\Ndi\Params\RequestedMediaType]
"ParamDesc"="Speed & Duplex"
"default"="0"
"type"="enum"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0008\Ndi\Params\RequestedMediaType\enum]
"0"="Auto"
"3"="10 Mb Half"
"4"="10 Mb Full"
"5"="100 Mb Half"
"6"="100 Mb Full"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}
is consistent across all NICs that I tested but from there the actual keys
varied slightly so you will need to allow for the diferences in your code.

Hope this helps you get where you need to go.
Matt L.
 
M

Mark

-Matt

Thanks very much, it has given me a direction. I obviously have a
little work ahead, however most people have told me it simply can't be
done. Thanks again!!!!



Mark,
Some time ago I was looking into doing the same thing but ended up not
having to complete the project since our entire enterprise standardized on
Auto switching. I didn't complete the code but I did have it figured out!

Check out the following Reg keys:

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0008]
"TxPacketDescCnt"="200"
"RxStdDescCnt"="200"
"RxCoalescingTicks"="10"
"TxCoalescingTicks"="30"
"RxMaxCoalescedFrames"="5"
"TxMaxCoalescedFrames"="200"
"Characteristics"=dword:00000084
"BusType"="5"
"ComponentId"="pci\\ven_14e4&dev_165e&subsys_0890103c"
"Enable8021p"="0"
"FlowControlCap"="2147483648"
"LargeSendOffload"="1"
"RequestedMediaType"="6"
"TaskOffloadCap"="63"
"WakeUpModeCap"="3"
"WolSpeed"="0"
"InfPath"="oem27.inf"
"InfSection"="BCM5705MA2.XpInst"
"InfSectionExt"=".NTx86"
"ProviderName"="Broadcom"
"DriverDateData"=hex:00,40,00,ec,2b,1f,c3,01
"DriverDate"="5-21-2003"
"DriverVersion"="6.64.0.0"
"MatchingDeviceId"="pci\\ven_14e4&dev_165e&subsys_0890103c"
"DriverDesc"="Broadcom NetXtreme Gigabit Ethernet"
"NetCfgInstanceId"="{13B14DD4-AA31-4A55-9735-B821CD207A8B}"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0008\Ndi\Params\RequestedMediaType]
"ParamDesc"="Speed & Duplex"
"default"="0"
"type"="enum"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0008\Ndi\Params\RequestedMediaType\enum]
"0"="Auto"
"3"="10 Mb Half"
"4"="10 Mb Full"
"5"="100 Mb Half"
"6"="100 Mb Full"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}
is consistent across all NICs that I tested but from there the actual keys
varied slightly so you will need to allow for the diferences in your code.

Hope this helps you get where you need to go.
Matt L.



Mark said:
Hey All-


Is there a way to set link speed and duplex with a setup script using
c++ or vbs, or anything at all? I'm trying to make a setup program that
will automatically set IP, link speed and duple, PC name, and a couple
other things. It seems link speed and duplex is a tough one. I know on
linux you can force it using mii-tools, anything similar in XP/2k?

Very Respectfully,

Mark Ro
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top